From 1db4810d1792ce215d3e5e4b1bb71ad0abc69860 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期六, 19 八月 2023 10:12:19 +0800 Subject: [PATCH] 部门信息 --- src/views/eam/modules/equipment/EquipmentModel.vue | 46 ++++++++++++++++++++++++++++++++++------------ 1 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/views/eam/modules/equipment/EquipmentModel.vue b/src/views/eam/modules/equipment/EquipmentModel.vue index 60e502a..726a235 100644 --- a/src/views/eam/modules/equipment/EquipmentModel.vue +++ b/src/views/eam/modules/equipment/EquipmentModel.vue @@ -249,14 +249,22 @@ placeholder="璇疯緭鍏ョ鐞嗙粍缁�" v-decorator="['manageId', validatorRules.manageId]" /> --> - <a-select + <!-- <a-select :placeholder="disableSubmit?'':'璇烽�夋嫨绠$悊缁勭粐'" :options="this.departs" style="width: 100%" :disabled="disableSubmit" v-decorator="['manageId', validatorRules.manageId]" - /> + /> --> <!-- @change="(e)=>handle3Change(e)" --> + <a-tree-select + style="width: 100%" + :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" + :tree-data="treeData" + placeholder="璇烽�夋嫨绠$悊缁勭粐" + tree-default-expand-all + v-decorator="['manageId', validatorRules.manageId]" + /> </a-form-item> </a-col> <a-col :span="24 / 3"> @@ -299,23 +307,23 @@ :wrapperCol="wrapperCol" label="浣跨敤閮ㄩ棬" > - <!-- <j-dict-select-tag - allow-clear - :disabled="disableSubmit" - :placeholder="disableSubmit?'':'璇烽�夋嫨浣跨敤缁勭粐'" - :triggerChange="true" - dictCode="sys_depart,depart_name,id,version = '7' and del_flag!='1'" + <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-select + /> + <!-- <a-select :placeholder="disableSubmit?'':'璇烽�夋嫨浣跨敤閮ㄩ棬'" :options="this.departs" style="width: 100%" :disabled="disableSubmit" v-decorator="['useId', validatorRules.useId]" - /> - <!-- @change="(e)=>handle2Change(e)" --> + /> --> </a-form-item> + </a-col> <a-col :span="24 / 3"> @@ -609,6 +617,7 @@ precisionParametersTemplateId: '', equipmentPhoto: '', departs: [], + treeData: [], model: {}, headers: {}, labelCol: { @@ -661,6 +670,7 @@ add: "/eam/equipment/add", edit: "/eam/equipment/edit", getSysDeparts: "/eam/equipment/getSysDeparts", + loadOptions: '/sys/sysDepart/loadDepartTreeOptions', }, //鏂板銆佺紪杈戙�佸垹闄ゃ�佹壒閲忓垹闄ゆ搷浣滄敼鍙樻暟鎹悗鍒锋柊鍏宠仈鐨勭粍浠剁殑鐩戝惉灞炴�� alterFlag: "", @@ -668,6 +678,7 @@ }, created() { this.getSysDeparts() + }, methods: { moment, @@ -682,6 +693,7 @@ this.visible = true; this.disableSubmit = false; this.fileList = []; + this.initOptions(); this.precisionParametersTemplateId = record.precisionParametersTemplateId this.processParametersTemplateId = record.processParametersTemplateId this.$nextTick(() => { @@ -936,6 +948,16 @@ } }, + initOptions() { + getAction(this.url.loadOptions).then(res => { + if (res.success) { + this.treeData = res.result + } else { + this.$message.warning(res.message) + } + }) + }, + onSearchProcessParametersTemplate() { this.$refs.ProcessParametersTemplateList.list(); -- Gitblit v1.9.3