From f5e8a1a00baf276c281d4a6335b2d39a8beba91a Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期一, 21 八月 2023 10:27:46 +0800 Subject: [PATCH] 点检 保养 调整 --- src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue | 34 +++++++++++++++++++++++----------- 1 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue b/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue index 355f36c..4c933fc 100644 --- a/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue +++ b/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue @@ -35,21 +35,21 @@ :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> @@ -104,7 +104,7 @@ /> </a-form-item> </a-col> - <a-col :span="12"> + <!-- <a-col :span="12"> <a-form-item label="瀵硅薄閮ㄩ棬Id" :labelCol="labelCol" @@ -117,7 +117,7 @@ v-decorator="['useId', validatorRules.useId ]" /> </a-form-item> - </a-col> + </a-col> --> </a-row> <a-row :gutter="24"> <a-col :span="12"> @@ -372,6 +372,7 @@ isRevise: false, model: {}, inspectionCycles: {}, + treeData: [], labelCol: { xs: { span: 24 }, sm: { span: 6 }, @@ -416,6 +417,7 @@ getInspectionCycle: "/eam/inspectionStandardDetail/getInspectionCycle", revise: '/eam/inspectionStandard/revise', getReviseVersion: "/eam/inspectionStandard/getReviseVersion", + loadOptions: '/sys/sysDepart/loadDepartTreeOptions', }, dataSource: [], @@ -461,6 +463,7 @@ edit(record) { let that = this; that.getInspectionCycle() + that.initOptions(); that.dataSource = []; that.form.resetFields(); that.model = Object.assign({}, record); @@ -491,6 +494,15 @@ } }, + 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); -- Gitblit v1.9.3