| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请选择对象部门'" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_equipment,use_id,id,status!='0' and del_flag!='1' and use_id!='null'" |
| | | v-decorator="['useId', validatorRules.useId]" |
| | | /> --> |
| | | <a-input-search |
| | | <!-- <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="请选择对象部门" |
| | | enter-button |
| | | @search="onDepartList()" |
| | | :read-only="true" |
| | | v-decorator="['useDepartName', validatorRules.useDepartName]" |
| | | /> --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择对象部门" |
| | | tree-default-expand-all |
| | | v-decorator="['useId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="对象部门Id" |
| | | :labelCol="labelCol" |
| | |
| | | v-decorator="['useId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | |
| | | isRevise: false, |
| | | model: {}, |
| | | inspectionCycles: {}, |
| | | treeData: [], |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | |
| | | getInspectionCycle: "/eam/inspectionStandardDetail/getInspectionCycle", |
| | | revise: '/eam/inspectionStandard/revise', |
| | | getReviseVersion: "/eam/inspectionStandard/getReviseVersion", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | |
| | | dataSource: [], |
| | |
| | | edit(record) { |
| | | let that = this; |
| | | that.getInspectionCycle() |
| | | that.initOptions(); |
| | | that.dataSource = []; |
| | | that.form.resetFields(); |
| | | that.model = Object.assign({}, record); |
| | |
| | | } |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | onEquipmentList() { |
| | | let data = this.form.getFieldsValue(['useId']); |
| | | this.$refs.EquipmentList.list(data.useId); |