bladex前端ui项目,基于avue-cli2.0开发
包含基础工作流,不包含表单设计器
https://git.javablade.com/blade/Saber
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
211 lines
3.7 KiB
211 lines
3.7 KiB
export const optionParent = { |
|
height: 'auto', |
|
calcHeight: 95, |
|
tip: false, |
|
searchShow: true, |
|
searchMenuSpan: 10, |
|
tree: true, |
|
border: true, |
|
index: true, |
|
selection: true, |
|
viewBtn: true, |
|
menuWidth: 150, |
|
dialogWidth: 880, |
|
dialogClickModal: false, |
|
column: [ |
|
{ |
|
label: "字典编号", |
|
prop: "code", |
|
search: true, |
|
span: 24, |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请输入字典编号", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "字典名称", |
|
prop: "dictValue", |
|
search: true, |
|
align: "center", |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请输入字典名称", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "字典排序", |
|
prop: "sort", |
|
type: "number", |
|
align: "right", |
|
width: 80, |
|
hide: true, |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请输入字典排序", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "封存", |
|
prop: "isSealed", |
|
type: "switch", |
|
align: "center", |
|
width: 80, |
|
dicData: [ |
|
{ |
|
label: "否", |
|
value: 0 |
|
}, |
|
{ |
|
label: "是", |
|
value: 1 |
|
} |
|
], |
|
value: 0, |
|
slot: true, |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请选择封存", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "字典备注", |
|
prop: "remark", |
|
hide: true |
|
} |
|
] |
|
}; |
|
|
|
export const optionChild = { |
|
height: 'auto', |
|
calcHeight: 95, |
|
tip: false, |
|
searchShow: true, |
|
searchMenuSpan: 10, |
|
tree: true, |
|
border: true, |
|
index: true, |
|
selection: true, |
|
viewBtn: true, |
|
menuWidth: 150, |
|
dialogWidth: 880, |
|
dialogClickModal: false, |
|
column: [ |
|
{ |
|
label: "字典编号", |
|
prop: "code", |
|
addDisabled: true, |
|
editDisabled: true, |
|
search: true, |
|
span: 24, |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请输入字典编号", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "字典名称", |
|
prop: "dictValue", |
|
search: true, |
|
align: "center", |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请输入字典名称", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "上级字典", |
|
prop: "parentId", |
|
type: "tree", |
|
dicData: [], |
|
hide: true, |
|
props: { |
|
label: "title" |
|
}, |
|
addDisabled: true, |
|
editDisabled: true, |
|
rules: [ |
|
{ |
|
required: false, |
|
message: "请选择上级字典", |
|
trigger: "click" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "字典键值", |
|
prop: "dictKey", |
|
width: 80, |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请输入字典键值", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "字典排序", |
|
prop: "sort", |
|
type: "number", |
|
align: "right", |
|
width: 80, |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请输入字典排序", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "封存", |
|
prop: "isSealed", |
|
type: "switch", |
|
align: "center", |
|
width: 80, |
|
dicData: [ |
|
{ |
|
label: "否", |
|
value: 0 |
|
}, |
|
{ |
|
label: "是", |
|
value: 1 |
|
} |
|
], |
|
value: 0, |
|
slot: true, |
|
rules: [ |
|
{ |
|
required: true, |
|
message: "请选择封存", |
|
trigger: "blur" |
|
} |
|
] |
|
}, |
|
{ |
|
label: "字典备注", |
|
prop: "remark", |
|
hide: true |
|
} |
|
] |
|
};
|
|
|