From 6f16458f60a9ec0ff921757df9f57b319e06f185 Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期二, 29 十一月 2022 15:50:27 +0800
Subject: [PATCH] 141
---
src/views/operate/message/myIndex/update/index.vue | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/views/operate/message/myIndex/update/index.vue b/src/views/operate/message/myIndex/update/index.vue
index 9b7265b..ed4ba27 100644
--- a/src/views/operate/message/myIndex/update/index.vue
+++ b/src/views/operate/message/myIndex/update/index.vue
@@ -9,9 +9,10 @@
:model="role"
:rules="createRoleRules"
label-position="right"
+ :disabled="edit"
>
<!-- 鎻愰啋鏂瑰紡 -->
- <el-form-item class="optionItem" label="鎻愰啋鏂瑰紡:" prop="channelCode">
+ <el-form-item class="optionItem" label="鎻愰啋鏂瑰紡:" prop="channelCode" >
<el-radio-group v-model="role.channelCode">
<el-radio label="01">绔欏唴淇�</el-radio>
<el-radio label="03">閭欢</el-radio>
@@ -84,21 +85,24 @@
type="primary"
@click.native.prevent="handleSubmit(0)"
class="btn save"
+ v-if="this.type=='update'||this.type=='create'"
>淇濆瓨
</el-button>
<el-button
type="primary"
@click.native.prevent="handleSubmit(1)"
class="btn submit"
+ v-if="this.type=='update'||this.type=='create'"
>鍙戝竷
</el-button>
<el-button
type="primary"
@click.native.prevent="handleView"
class="btn submit"
+ v-if="this.type=='update'||this.type=='create'"
>棰勮
</el-button>
- <el-button class="btn cancel" @click.native.prevent="handleReset"
+ <el-button class="btn cancel" @click.native.prevent="handleReset" v-if="this.type=='update'||this.type=='create'"
>閲嶇疆</el-button
>
</div>
@@ -174,6 +178,7 @@
},
],
},
+ edit: false,
colList: [],
departList: [],
typeList: [],
@@ -193,6 +198,9 @@
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 => {
@@ -209,6 +217,7 @@
if (this.type !== 'create') {
this.$refs.edit.editor.txt.append(this.myDataRow.body);
}
+
},
methods: {
// 鍏抽棴寮圭獥
@@ -235,7 +244,10 @@
this.getColumnList();
}
},
-
+ getType(){
+ debugger
+ return this.type;
+ },
// 鑾峰彇閮ㄩ棬鏍�
async getDepartList() {
await this.$axios({
--
Gitblit v1.8.0