fangyuan
2022-12-16 9ff66017debadfc89bc0c1b796684a4d1dbe2bc3
src/views/operate/sms/smsTemplate/createTemplate/index.vue
@@ -24,7 +24,7 @@
                    </el-form-item>
                    <!-- 消息内容 -->
                    <el-form-item class="optionItem" label="消息内容:" prop="body">
                        <MyEditor ref="edit" :readOnly="formDisabled" @getMyBody="getMyBody"></MyEditor>
                        <MyEditor ref="edit" :readOnly="formDisabled"></MyEditor>
                    </el-form-item>
                    <el-form-item v-if="!formDisabled">
                        <div class="optionBtn">
@@ -50,7 +50,6 @@
          if (!value) {
            callback(new Error('请输入短信内容'));
          } else {
            this.$refs.user.clearValidate('body');
            callback();
          }
        }
@@ -74,14 +73,16 @@
            colList: [{ id: 1, columnName: "验证码模板"}, {id: 2, columnName: "活动模板"}],
        }
    },
    mounted(){
        this.$refs.edit.editor.txt.html(this.role.body)
    },
    created() {
      if (this.tableRowData) {
        this.role = deepClone(this.tableRowData);
      }
    },
  mounted(){
    this.$refs.edit.editor.txt.html(this.role.body);
  },
  computed: {
      formDisabled() {
@@ -181,10 +182,6 @@
                    margin-left: 20px;
                    color: #4b9bb7;
                }
            }
            .message-tip {
                margin-left: 20px;
            }
            :deep(.el-input--suffix) {