| | |
| | | export const optionParent = { |
| | | height: "auto", |
| | | calcHeight: 30, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 10, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | viewBtn: true, |
| | | menuWidth: 250, |
| | | dialogWidth: 880, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | label: "分类编号", |
| | | prop: "code", |
| | | search: true, |
| | | slot: true, |
| | | span: 24, |
| | | rules: [ |
| | | height: "auto", |
| | | calcHeight: 30, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 10, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | viewBtn: true, |
| | | menuWidth: 250, |
| | | dialogWidth: 880, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | { |
| | | 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: 100, |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入分类排序", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "封存", |
| | | prop: "isSealed", |
| | | type: "switch", |
| | | align: "center", |
| | | width: 100, |
| | | dicData: [ |
| | | { |
| | | label: "否", |
| | | value: 0, |
| | | label: "分类编号", |
| | | prop: "code", |
| | | search: true, |
| | | slot: true, |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入分类编号", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "是", |
| | | value: 1, |
| | | label: "分类名称", |
| | | prop: "dictValue", |
| | | search: true, |
| | | align: "center", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入分类名称", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | value: 0, |
| | | slot: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择封存", |
| | | trigger: "blur", |
| | | label: "分类排序", |
| | | prop: "sort", |
| | | type: "number", |
| | | align: "right", |
| | | width: 100, |
| | | hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入分类排序", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "分类备注", |
| | | prop: "remark", |
| | | hide: true, |
| | | }, |
| | | ], |
| | | }; |
| | | { |
| | | label: "封存", |
| | | prop: "isSealed", |
| | | type: "switch", |
| | | align: "center", |
| | | width: 100, |
| | | 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, |
| | | tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | viewBtn: true, |
| | | dialogWidth: 880, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | // { |
| | | // label: "排序", |
| | | // prop: "sort", |
| | | // // addDisabled: true, |
| | | // // editDisabled: true, |
| | | // // search: true, |
| | | // span: 24, |
| | | // // display:false, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请输入分类编号", |
| | | // trigger: "blur" |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | label: "分类名称", |
| | | prop: "dictValue", |
| | | searchSpan: 4, |
| | | search: true, |
| | | align: "center", |
| | | rules: [ |
| | | height: "auto", |
| | | calcHeight: 95, |
| | | tip: false, |
| | | tree: true, |
| | | border: true, |
| | | index: true, |
| | | selection: true, |
| | | viewBtn: true, |
| | | dialogWidth: 880, |
| | | dialogClickModal: false, |
| | | column: [ |
| | | // { |
| | | // label: "排序", |
| | | // prop: "sort", |
| | | // // addDisabled: true, |
| | | // // editDisabled: true, |
| | | // // search: true, |
| | | // span: 24, |
| | | // // display:false, |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请输入分类编号", |
| | | // trigger: "blur" |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | required: true, |
| | | message: "请输入分类名称", |
| | | trigger: "blur", |
| | | label: "分类名称", |
| | | prop: "dictValue", |
| | | searchSpan: 4, |
| | | search: true, |
| | | searchLabelWidth: 76, |
| | | 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", |
| | | align: "center", |
| | | // width: 80, |
| | | rules: [ |
| | | // { |
| | | // label: "上级分类", |
| | | // prop: "parentId", |
| | | // type: "tree", |
| | | // dicData: [], |
| | | // hide: true, |
| | | // props: { |
| | | // label: "title" |
| | | // }, |
| | | // addDisabled: true, |
| | | // editDisabled: true, |
| | | // rules: [ |
| | | // { |
| | | // required: false, |
| | | // message: "请选择上级分类", |
| | | // trigger: "click" |
| | | // } |
| | | // ] |
| | | // }, |
| | | { |
| | | required: true, |
| | | message: "请输入分类键值", |
| | | trigger: "blur", |
| | | label: "分类键值", |
| | | prop: "dictKey", |
| | | align: "center", |
| | | // width: 80, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入分类键值", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "分类排序", |
| | | prop: "sort", |
| | | type: "number", |
| | | align: "center", |
| | | // hide: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入分类排序", |
| | | trigger: "blur", |
| | | label: "分类排序", |
| | | prop: "sort", |
| | | type: "number", |
| | | align: "center", |
| | | // 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", |
| | | align: "center", |
| | | // hide: true |
| | | }, |
| | | ], |
| | | }; |
| | | // { |
| | | // 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", |
| | | align: "center", |
| | | // hide: true |
| | | }, |
| | | ], |
| | | } |