From 2103a99b803a34c1284acb20917e86f1625b117e Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期二, 22 四月 2025 17:32:11 +0800 Subject: [PATCH] 增加列表按钮权限控制 --- src/views/eam/maintenance/modules/EamInspectionOrderModal.vue | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue index 49776ee..4c49a93 100644 --- a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue +++ b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue @@ -61,6 +61,21 @@ </a-col> </a-row> <a-row :gutter="24"> + <a-col :span="8"> + <a-form-model-item + label="鐓х墖鏂囦欢" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + prop="imageFiles"> + <lx-upload :returnUrl="false" + :multiple="false" + v-model="model.imageFiles" + biz="EamMaintenanceStandard"> + </lx-upload> + </a-form-model-item> + </a-col> + </a-row> + <a-row :gutter="24"> <a-col :span="24"> <a-form-model-item label="澶囨敞" :labelCol="{span:1}" :wrapperCol="{span:22}" prop="remark"> <a-textarea v-model="model.remark" rows="3" placeholder="璇疯緭鍏ュ娉�" /> @@ -140,6 +155,7 @@ }, maintenanceCategory: 'POINT_INSPECTION', standardId:"", + standardType:false, detail: { loading: false, dataSource: [], @@ -186,13 +202,16 @@ this.detail.dataSource = []; this.visible = true this.editable = false + this.standardType=false; }, edit(record) { console.log(record) this.model = Object.assign({}, record) this.standardId=record.standardId + this.standardType=true; this.visible = true this.editable = true + this.detail.dataSource = [] if (record && record.referenceFile) { let obj = JSON.parse(record.referenceFile) this.model.fileList = [obj] @@ -255,7 +274,7 @@ this.model.standardName = selectObj.standardName this.model.maintenancePeriod=selectObj.maintenancePeriod this.model.standardCode=selectObj.standardCode - if (this.standardId===undefined || this.standardId==="") { + if (!this.standardType) { this.standardId=selectObj.id this.loadDetail(selectObj.id) } @@ -273,17 +292,16 @@ }, //鍔犺浇璇︽儏鏁版嵁 loadDetail(standardId) { - this.detail.dataSource = [] if (standardId) { getAction(this.url.detail, { standardId: standardId }).then(res => { if (res.success) { this.detail.dataSource = [...res.result] + this.standardType=false; } }) } }, loadDetailOrder(orderId){ - this.detail.dataSource = [] if (orderId) { getAction(this.url.detailOrder, { orderId: orderId }).then(res => { if (res.success) { -- Gitblit v1.9.3