From 9ff66017debadfc89bc0c1b796684a4d1dbe2bc3 Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期五, 16 十二月 2022 10:00:02 +0800 Subject: [PATCH] 已上报到市批量操作按钮隐藏 --- src/views/operate/message/myIndex/update/index.vue | 17 ++++++----------- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/views/operate/message/myIndex/update/index.vue b/src/views/operate/message/myIndex/update/index.vue index ed4ba27..fe819ed 100644 --- a/src/views/operate/message/myIndex/update/index.vue +++ b/src/views/operate/message/myIndex/update/index.vue @@ -9,7 +9,7 @@ :model="role" :rules="createRoleRules" label-position="right" - :disabled="edit" + :disabled="type === 'view'" > <!-- 鎻愰啋鏂瑰紡 --> <el-form-item class="optionItem" label="鎻愰啋鏂瑰紡:" prop="channelCode" > @@ -85,24 +85,24 @@ type="primary" @click.native.prevent="handleSubmit(0)" class="btn save" - v-if="this.type=='update'||this.type=='create'" + v-if="type !== 'view'" >淇濆瓨 </el-button> <el-button type="primary" @click.native.prevent="handleSubmit(1)" class="btn submit" - v-if="this.type=='update'||this.type=='create'" + v-if="type !== 'view'" >鍙戝竷 </el-button> <el-button type="primary" @click.native.prevent="handleView" class="btn submit" - v-if="this.type=='update'||this.type=='create'" + v-if="type !== 'view'" >棰勮 </el-button> - <el-button class="btn cancel" @click.native.prevent="handleReset" v-if="this.type=='update'||this.type=='create'" + <el-button class="btn cancel" @click.native.prevent="handleReset" v-if="type !== 'view'" >閲嶇疆</el-button > </div> @@ -178,7 +178,6 @@ }, ], }, - edit: false, colList: [], departList: [], typeList: [], @@ -198,16 +197,13 @@ this.getColumnList(); this.getDepartList(); this.getLoginUserInfo(); - if(this.type=="view"){ - this.edit=true; - } if (this.type !== "create" && this.myDataRow) { getMessageById(this.myDataRow.id) .then(res => { this.role = res; if (res.targetTo) { this.checkedList = res.targetTo.split(','); - this.role.targetTo = `${this.checkedList}浜篳; + this.role.targetTo = `${this.checkedList.length}浜篳; } }) .catch(err => this.$message.error(`${err}`)) @@ -245,7 +241,6 @@ } }, getType(){ - debugger return this.type; }, // 鑾峰彇閮ㄩ棬鏍� -- Gitblit v1.8.0