wl
2023-01-03 e1ac04b42be89ca26ff5f94c17c4e2eebe52a0a2
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}`))
@@ -217,7 +213,7 @@
    if (this.type !== 'create') {
      this.$refs.edit.editor.txt.append(this.myDataRow.body);
    }
  },
  methods: {
    // 关闭弹窗
@@ -384,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 {
@@ -431,7 +427,7 @@
        span {
          margin-left: 20px;
          color: #4b9bb7;
          color: #606266;
        }
      }
@@ -443,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;
@@ -480,4 +476,4 @@
    }
  }
}
</style>
</style>