diff --git a/yudao-admin-ui/src/utils/generator/drawingDefalut.js b/yudao-admin-ui/src/utils/generator/drawingDefalut.js index 09f133ca1..c1469c694 100644 --- a/yudao-admin-ui/src/utils/generator/drawingDefalut.js +++ b/yudao-admin-ui/src/utils/generator/drawingDefalut.js @@ -1,29 +1,29 @@ export default [ { - layout: 'colFormItem', - tagIcon: 'input', - label: '手机号', - vModel: 'mobile', - formId: 6, - tag: 'el-input', - placeholder: '请输入手机号', - defaultValue: '', - span: 24, - style: { width: '100%' }, - clearable: true, - prepend: '', - append: '', - 'prefix-icon': 'el-icon-mobile', - 'suffix-icon': '', - maxlength: 11, - 'show-word-limit': true, - readonly: false, - disabled: false, - required: true, - changeTag: true, - regList: [{ - pattern: '/^1(3|4|5|7|8|9)\\d{9}$/', - message: '手机号格式错误' - }] + // layout: 'colFormItem', + // tagIcon: 'input', + // label: '手机号', + // vModel: 'mobile', + // formId: 6, + // tag: 'el-input', + // placeholder: '请输入手机号', + // defaultValue: '', + // span: 24, + // style: { width: '100%' }, + // clearable: true, + // prepend: '', + // append: '', + // 'prefix-icon': 'el-icon-mobile', + // 'suffix-icon': '', + // maxlength: 11, + // 'show-word-limit': true, + // readonly: false, + // disabled: false, + // required: true, + // changeTag: true, + // regList: [{ + // pattern: '/^1(3|4|5|7|8|9)\\d{9}$/', + // message: '手机号格式错误' + // }] } ] diff --git a/yudao-admin-ui/src/views/bpm/form/build/index.vue b/yudao-admin-ui/src/views/bpm/form/build/index.vue index 92291e981..21b35a00c 100644 --- a/yudao-admin-ui/src/views/bpm/form/build/index.vue +++ b/yudao-admin-ui/src/views/bpm/form/build/index.vue @@ -72,6 +72,21 @@ + + + + + + + + {{dict.label}} + + + + + + @@ -177,7 +192,7 @@ export default { return { logo, idGlobal: 100, - formConf, + formConf, // inputComponents, selectComponents, layoutComponents, @@ -190,7 +205,16 @@ export default { dialogVisible: false, generateConf: null, showFileName: false, - activeData: drawingDefalut[0] + activeData: drawingDefalut[0], + + // 表单参数 + form: {}, + // 表单校验 + rules: { + name: [{ required: true, message: "表单名不能为空", trigger: "blur" }], + status: [{ required: true, message: "开启状态不能为空", trigger: "blur" }], + fields: [{ required: true, message: "表单配置不能为空", trigger: "blur" }], + } } }, computed: {