From 1772fc5e211f9e9e0ab4cdc6c29b436aac178c2a Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期五, 23 二月 2024 12:19:55 +0800 Subject: [PATCH] 修改 --- web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue b/web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue index ca1a338..8af0f48 100644 --- a/web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue +++ b/web/src/views/modules/configItemOutbound/ConfigItemOutbound-AddOrUpdate.vue @@ -34,7 +34,7 @@ </div> <div class="el-border-left acceptDate" style="width: 90%;"> <el-form-item style="width: 100%;padding-left:20px;margin:0;"> - <el-input :disabled="!(dataForm.disabled && stepMarker=='pzxck_first')" type="textarea" :rows="2" v-model="dataForm.configItemOutbound.outboundReason" placeholder="鍑哄簱鍘熷洜..."></el-input> + <el-input :disabled="stepMarker!=='pzxck_first'" type="textarea" :rows="2" v-model="dataForm.configItemOutbound.outboundReason" placeholder="鍑哄簱鍘熷洜..."></el-input> <!-- <span v-else>{{dataForm.configItemOutbound.outboundReason}}</span>--> </el-form-item> </div> @@ -162,7 +162,7 @@ <script> import AddOrUpdateCheck from '../testCheckOrder/TestCheckOrder-AddOrUpdate' - import ConfigItemList from './configItemList.vue' + import ConfigItemList from '../configItemChange/configItemList.vue' import qs from "qs"; import Cookies from "js-cookie"; @@ -211,10 +211,10 @@ }, created() { const roleName = localStorage.getItem('roleName') - if (roleName && roleName.includes('QA')) { + if (roleName && roleName.includes('瀹℃牳浜哄憳')) { this.showColumn = true; } - if (roleName && roleName.includes('娴嬭瘯鍛�')) { + if (roleName && roleName.includes('妫�娴嬩汉鍛�')) { this.showAddAndEdit = true; } }, @@ -260,7 +260,7 @@ this.$nextTick(()=>{ console.log(this.dataForm.projectId,'this.dataForm.projectId') this.ids = this.dataForm.configOutboundList.map(item=>item.selectId).join(',') - this.$refs.configItemList.$refs.dialog.init(this.dataForm.projectId,this.ids) + this.$refs.configItemList.$refs.dialog.init(this.dataForm.projectId,{ids:this.ids,pageCode:this.pageCode}) }) // this.dataForm.configItemList.push({}) // this.$nextTick(() => { @@ -331,6 +331,17 @@ }, // 琛ㄥ崟鎻愪氦 async formSubmit(submitType) { + let flag = true; + console.log(this.dataForm, "this.dataForm11111") + this.dataForm.configOutboundList.forEach(item => { + if (parseInt(item.secretClass) > localStorage.getItem('userSecretClass')) { + this.$alert("褰撳墠椤圭洰璁剧疆鐨勫瘑绾ч珮浜庡綋鍓嶇敤鎴风殑瀵嗙骇锛岃閲嶆柊璁剧疆") + flag =false + } + }) + if (!flag){ + return + } if (this.showColumn && submitType == 'bl') { for (let item of this.dataForm.configItemList) { if (item) { -- Gitblit v1.9.1