From 8611a1ba1696e76cced04ff5d658ba138a05dafd Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期六, 19 八月 2023 14:37:32 +0800 Subject: [PATCH] 设备管理前端代码提交 截止 20230819 13:55 分 --- src/views/eam/modules/equipment/EquipmentModel.vue | 47 +++++++++++++---------------------------------- 1 files changed, 13 insertions(+), 34 deletions(-) diff --git a/src/views/eam/modules/equipment/EquipmentModel.vue b/src/views/eam/modules/equipment/EquipmentModel.vue index 726a235..6cb5f72 100644 --- a/src/views/eam/modules/equipment/EquipmentModel.vue +++ b/src/views/eam/modules/equipment/EquipmentModel.vue @@ -249,22 +249,14 @@ 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]" /> + <!-- @change="(e)=>handle3Change(e)" --> </a-form-item> </a-col> <a-col :span="24 / 3"> @@ -307,23 +299,23 @@ :wrapperCol="wrapperCol" label="浣跨敤閮ㄩ棬" > - <a-tree-select - style="width: 100%" - :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" - :tree-data="treeData" - placeholder="璇烽�夋嫨閮ㄩ棬" - tree-default-expand-all + <!-- <j-dict-select-tag + allow-clear + :disabled="disableSubmit" + :placeholder="disableSubmit?'':'璇烽�夋嫨浣跨敤缁勭粐'" + :triggerChange="true" + dictCode="sys_depart,depart_name,id,version = '7' and del_flag!='1'" 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"> @@ -561,6 +553,7 @@ 鍏抽棴 </a-button> <a-button + hidden v-if="!this.model.id" :disabled="disableSubmit || confirmLoading" :loading="confirmLoading" @@ -617,7 +610,6 @@ precisionParametersTemplateId: '', equipmentPhoto: '', departs: [], - treeData: [], model: {}, headers: {}, labelCol: { @@ -670,7 +662,6 @@ add: "/eam/equipment/add", edit: "/eam/equipment/edit", getSysDeparts: "/eam/equipment/getSysDeparts", - loadOptions: '/sys/sysDepart/loadDepartTreeOptions', }, //鏂板銆佺紪杈戙�佸垹闄ゃ�佹壒閲忓垹闄ゆ搷浣滄敼鍙樻暟鎹悗鍒锋柊鍏宠仈鐨勭粍浠剁殑鐩戝惉灞炴�� alterFlag: "", @@ -678,7 +669,6 @@ }, created() { this.getSysDeparts() - }, methods: { moment, @@ -693,7 +683,6 @@ this.visible = true; this.disableSubmit = false; this.fileList = []; - this.initOptions(); this.precisionParametersTemplateId = record.precisionParametersTemplateId this.processParametersTemplateId = record.processParametersTemplateId this.$nextTick(() => { @@ -946,16 +935,6 @@ // object-key琛ㄧず浠嶰SS涓嬭浇鏂囦欢鏃堕渶瑕佹寚瀹氬寘鍚枃浠跺悗缂�鍦ㄥ唴鐨勫畬鏁磋矾寰勶紝渚嬪abc/efg/123.jpg銆� return client.signatureUrl(record.path) } - }, - - initOptions() { - getAction(this.url.loadOptions).then(res => { - if (res.success) { - this.treeData = res.result - } else { - this.$message.warning(res.message) - } - }) }, -- Gitblit v1.9.3