功能变化: 字段外键改为删除保护
parent
256635cc91
commit
0770704a97
|
@ -4,13 +4,13 @@ export function GetList (query) {
|
|||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
code: 0,
|
||||
code: 2000,
|
||||
msg: 'success',
|
||||
data: {
|
||||
total: 99,
|
||||
current: query.current,
|
||||
size: 20,
|
||||
records: [
|
||||
data: [
|
||||
{ id: 1, select1: '1', select2: 'sz,wh' },
|
||||
{ id: 2, select1: '1', select2: 'sz,sh' },
|
||||
{ id: 3, select1: '0', select2: 'sz,gz' },
|
||||
|
|
|
@ -102,6 +102,7 @@ export const crudOptions = (vm) => {
|
|||
title: '上级部门',
|
||||
key: 'parent',
|
||||
type: 'tree-selector',
|
||||
minWidth:200,
|
||||
dict: {
|
||||
isTree: true,
|
||||
label: 'name',
|
||||
|
@ -126,6 +127,7 @@ export const crudOptions = (vm) => {
|
|||
key: 'name',
|
||||
sortable: true,
|
||||
treeNode: true, // 设置为树形列
|
||||
minWidth:180,
|
||||
search: {
|
||||
disabled: false,
|
||||
component: {
|
||||
|
@ -157,6 +159,7 @@ export const crudOptions = (vm) => {
|
|||
title: '部门标识',
|
||||
key: 'key',
|
||||
sortable: true,
|
||||
minWidth:100,
|
||||
form: {
|
||||
component: {
|
||||
props: {
|
||||
|
@ -173,6 +176,7 @@ export const crudOptions = (vm) => {
|
|||
title: '负责人',
|
||||
key: 'owner',
|
||||
sortable: true,
|
||||
minWidth:100,
|
||||
form: {
|
||||
component: {
|
||||
span: 12,
|
||||
|
@ -187,6 +191,7 @@ export const crudOptions = (vm) => {
|
|||
title: '联系电话',
|
||||
key: 'phone',
|
||||
sortable: true,
|
||||
minWidth:100,
|
||||
form: {
|
||||
component: {
|
||||
span: 12,
|
||||
|
@ -201,6 +206,7 @@ export const crudOptions = (vm) => {
|
|||
title: '邮箱',
|
||||
key: 'email',
|
||||
sortable: true,
|
||||
minWidth:100,
|
||||
form: {
|
||||
component: {
|
||||
span: 12,
|
||||
|
|
|
@ -92,7 +92,7 @@ export const crudOptions = (vm) => {
|
|||
{
|
||||
title: '字典名称',
|
||||
key: 'label',
|
||||
|
||||
minWidth:100,
|
||||
search: {
|
||||
disabled: false,
|
||||
component: {
|
||||
|
@ -121,6 +121,7 @@ export const crudOptions = (vm) => {
|
|||
{
|
||||
title: '字典编号',
|
||||
key: 'value',
|
||||
minWidth:100,
|
||||
search: {
|
||||
disabled: true,
|
||||
component: {
|
||||
|
@ -197,8 +198,8 @@ export const crudOptions = (vm) => {
|
|||
}
|
||||
].concat(vm.commonEndColumns({
|
||||
description: {
|
||||
showForm: true,
|
||||
showTable: true
|
||||
showForm: false,
|
||||
showTable: false
|
||||
}
|
||||
}))
|
||||
}
|
||||
|
|
|
@ -96,6 +96,7 @@ export const crudOptions = (vm) => {
|
|||
title: '角色名称',
|
||||
key: 'name',
|
||||
sortable: true,
|
||||
minWidth:120,
|
||||
search: {
|
||||
disabled: false,
|
||||
component: {
|
||||
|
@ -125,6 +126,7 @@ export const crudOptions = (vm) => {
|
|||
title: '权限标识',
|
||||
key: 'key',
|
||||
sortable: true,
|
||||
minWidth:100,
|
||||
form: {
|
||||
rules: [ // 表单校验规则
|
||||
{ required: true, message: '权限标识必填项' }
|
||||
|
@ -157,6 +159,7 @@ export const crudOptions = (vm) => {
|
|||
key: 'admin',
|
||||
sortable: true,
|
||||
type: 'radio',
|
||||
minWidth:120,
|
||||
dict: {
|
||||
data: vm.dictionary('button_whether_bool')
|
||||
},
|
||||
|
@ -178,6 +181,7 @@ export const crudOptions = (vm) => {
|
|||
disabled: false
|
||||
},
|
||||
type: 'radio',
|
||||
minWidth:100,
|
||||
dict: {
|
||||
data: vm.dictionary('button_status_bool')
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue