From 702eec26f73ced524cba807aad2b20a58734113e Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期五, 30 十二月 2022 16:14:20 +0800
Subject: [PATCH] 开关修改
---
src/views/operate/message/myIndex/update/index.vue | 39 +++++++++++++++++++++++----------------
1 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/src/views/operate/message/myIndex/update/index.vue b/src/views/operate/message/myIndex/update/index.vue
index 9b7265b..68d0f04 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="type === 'view'"
>
<!-- 鎻愰啋鏂瑰紡 -->
- <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="type !== 'view'"
>淇濆瓨
</el-button>
<el-button
type="primary"
@click.native.prevent="handleSubmit(1)"
class="btn submit"
+ v-if="type !== 'view'"
>鍙戝竷
</el-button>
<el-button
type="primary"
@click.native.prevent="handleView"
class="btn submit"
+ v-if="type !== 'view'"
>棰勮
</el-button>
- <el-button class="btn cancel" @click.native.prevent="handleReset"
+ <el-button class="btn cancel" @click.native.prevent="handleReset" v-if="type !== 'view'"
>閲嶇疆</el-button
>
</div>
@@ -199,7 +203,7 @@
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}`))
@@ -209,6 +213,7 @@
if (this.type !== 'create') {
this.$refs.edit.editor.txt.append(this.myDataRow.body);
}
+
},
methods: {
// 鍏抽棴寮圭獥
@@ -235,7 +240,9 @@
this.getColumnList();
}
},
-
+ getType(){
+ return this.type;
+ },
// 鑾峰彇閮ㄩ棬鏍�
async getDepartList() {
await this.$axios({
@@ -373,28 +380,28 @@
<style lang="scss" scoped>
.createUser {
border-radius: 1px;
- background-color: #09152f;
+ background-color: white;
main {
text-align: left;
padding: 0 55px;
- background-color: #09152f;
+ background-color: white;
.mainContent {
display: flex;
justify-content: center;
padding-top: 50px;
&:deep(.el-dialog__title) {
- color: #4b9bb7;
+ //color: #4b9bb7;
}
&::v-deep .el-form-item__label {
- color: #4b9bb7;
+ //color: #4b9bb7;
}
&::v-deep .el-input__inner {
width: 400px;
- background-color: #09152f;
- border: 1px solid #17324c;
+ //background-color: #09152f;
+ //border: 1px solid #17324c;
}
.message-item__left {
@@ -420,7 +427,7 @@
span {
margin-left: 20px;
- color: #4b9bb7;
+ color: #606266;
}
}
@@ -432,10 +439,10 @@
width: 400px;
}
- &::v-deep .el-textarea__inner {
- background-color: #09152f;
- border: 1px solid #17324c;
- }
+ // &::v-deep .el-textarea__inner {
+ // //background-color: #09152f;
+ // //border: 1px solid #17324c;
+ // }
.el-form-item__content {
width: 400px;
@@ -469,4 +476,4 @@
}
}
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.8.0