| | |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | placeholder="请输入参数分类编号" |
| | | placeholder="将由系统自动生成" |
| | | v-decorator="['num', validatorRules.num ]" |
| | | disabled |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | add: "/eam/precisionParametersCategory/add", |
| | | edit: "/eam/precisionParametersCategory/edit", |
| | | loadPrecisionParametersCategoryTree: '/eam/precisionParametersCategory/loadTree', |
| | | getNum: '/eam/sysIdentity/getNumNew', |
| | | }, |
| | | precisionParametersCategoryTree: [], |
| | | } |
| | |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'parentId', 'num', 'name', 'remark')); |
| | | }); |
| | | if (!record.id) { |
| | | this.$nextTick(() => { |
| | | getAction(this.url.getNum, { type: 'PrecisionParametersCategory', length: '4' }).then((res) => { |
| | | if (res.success) { |
| | | this.form.setFieldsValue({ num: res.message }); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | handleOk() { |