From 32a95699e59c5c65e18c08643266c9cbfa380ee4 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期五, 07 六月 2024 09:56:05 +0800 Subject: [PATCH] 优化设备明细、检验任务附件权限 --- src/components/view/b1-inspection-order.vue | 21 ++++++++++++++------- 1 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue index 558a287..b81c76c 100644 --- a/src/components/view/b1-inspection-order.vue +++ b/src/components/view/b1-inspection-order.vue @@ -120,17 +120,17 @@ <div class="search_thing" style="width: 20%;" v-if="more"> <div class="search_label">涓嬪崟浜猴細</div> <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable - v-model="componentData.entity.value1" @keyup.enter.native="refreshTable()"></el-input></div> + v-model="componentData.entity.name" @keyup.enter.native="refreshTable()"></el-input></div> </div> <div class="search_thing" style="width: 20%;" v-if="more"> <div class="search_label">宸ョ▼鍚嶇О锛�</div> <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable - v-model="componentData.entity.value2" @keyup.enter.native="refreshTable()"></el-input></div> + v-model="componentData.entity.engineering" @keyup.enter.native="refreshTable()"></el-input></div> </div> <div class="search_thing" style="width: 20%;" v-if="more"> <div class="search_label">鐢熶骇鍗曚綅锛�</div> <div class="search_input"><el-input size="small" placeholder="璇疯緭鍏�" clearable - v-model="componentData.entity.value3" @keyup.enter.native="refreshTable()"></el-input></div> + v-model="componentData.entity.production" @keyup.enter.native="refreshTable()"></el-input></div> </div> </el-col> <el-col :span="4"> @@ -227,7 +227,7 @@ </el-dialog> </div> <div style="width: 100%;height: 100%;" v-if="active >0"> - <Add :active="active" :currentId="currentId" /> + <Add :active="active" :currentId="currentId" v-if="active<4" /> </div> </div> </template> @@ -269,9 +269,9 @@ sampleModel: null, sampleCode: null, state: 0, - value1:null, - value2:null, - value3:null, + name:null, + engineering:null, + production:null, orderBy: { field: 'id', order: 'asc' @@ -492,6 +492,7 @@ let up = false let del = false let add = false + let revoke = false for (var i = 0; i < power.length; i++) { if (power[i].menuMethod == 'upInsOrder') { up = true @@ -499,10 +500,16 @@ if (power[i].menuMethod == 'addInsOrder') { add = true } + if (power[i].menuMethod == 'updateStatus') { + revoke = true + } } if (!up) { this.componentData.do.splice(4, 1) } + if (!revoke) { + this.componentData.do.splice(3, 1) + } this.addPower = add }, handleClose() { -- Gitblit v1.9.3