zhanghua
2022-11-29 24712d1fa40f157892f3d0546572953ca696ebc2
src/views/operate/message/myIndex/update/index.vue
@@ -9,6 +9,7 @@
          :model="role"
          :rules="createRoleRules"
          label-position="right"
          :disabled="edit"
        >
          <!-- 提醒方式 -->
          <el-form-item class="optionItem" label="提醒方式:" prop="channelCode">
@@ -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({