zhanghua
2022-11-29 759ed15af8f9d423dc882337f8536d4bb76e7f57
src/views/operate/sms/smsTemplate/createTemplate/index.vue
@@ -70,8 +70,11 @@
                  { required: true, trigger: ['blur', 'change'], validator: validateMessageContent }
                ]
            },
            colList: [{ id: "1", columnName: "验证码模板"}, {id: "2",columnName: "活动模板"}],
            colList: [{ id: 1, columnName: "验证码模板"}, {id: 2, columnName: "活动模板"}],
        }
    },
    mounted(){
        this.$refs.edit.editor.txt.html(this.role.body)
    },
    created() {
      if (this.tableRowData) {
@@ -81,12 +84,13 @@
  computed: {
      formDisabled() {
        return this.dialogType !== 'create';
        return this.dialogType === 'view';
      }
  },
    methods: {
        // 新建/保存消息(1:新建,0保存消息)
        handleSubmit() {
            this.role.body = this.$refs.edit.editor.txt.html();
            this.$refs.user.validate((valid) => {
                if (valid) {
                  if (this.dialogType === 'create') {