luobisheng
2022-11-29 6e88bdd3848904ef55ec03714c9b2770b5195b50
消息修改
4个文件已修改
34 ■■■■ 已修改文件
src/App.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/message/myIndex/update/index.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/sms/smsTemplate/createTemplate/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/operate/sms/smsTemplate/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -81,6 +81,7 @@
.button-addition {
  background-color: #eb5d01 !important;
  border: 1px solid #eb5d01 !important;
  color: #ffffff;
}
/*定义滚动条高宽及背景
src/views/operate/message/myIndex/update/index.vue
@@ -40,7 +40,7 @@
                  </el-option>
                </el-select>
              </div>
              <span class="message-add button-addition" @click="dialogCreate = true">
              <span class="message-add" @click="dialogCreate = true">
                添加栏目</span
              >
            </div>
@@ -66,6 +66,7 @@
                    show-checkbox
                    @check="handleCheck"
                    default-expand-all
                    :default-checked-keys="checkedList"
                    node-key="id"
                  >
                  </el-tree>
@@ -196,7 +197,10 @@
      getMessageById(this.myDataRow.id)
          .then(res => {
            this.role = res;
            this.role.targetTo = `${this.role.targetTo.split(',').length}人`;
            if (res.targetTo) {
              this.checkedList = res.targetTo.split(',');
              this.role.targetTo = `${this.checkedList}人`;
            }
          })
          .catch(err => this.$message.error(`${err}`))
    }
@@ -265,13 +269,10 @@
    // 选中id
    handleCheck(data, node) {
      node.checkedNodes.forEach((item) => {
        if (!item.hasOwnProperty("departType")) {
          this.checkedList.push(item.id);
          this.tempNameArr.push(item.departName);
        }
      });
      this.role.targetTo = this.checkedList.length + "人";
      const checkedNodes = node.checkedNodes.filter(item => !item.children);
      this.checkedList = checkedNodes.map(item => item.id);
      this.tempNameArr = checkedNodes.map(item => item.departName);
      this.role.targetTo = this.checkedList.length ? this.checkedList.length + "人" : null;
    },
    // 新建/保存消息(1:新建,0保存消息)
src/views/operate/sms/smsTemplate/createTemplate/index.vue
@@ -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) {
src/views/operate/sms/smsTemplate/index.vue
@@ -551,7 +551,6 @@
    &::v-deep .el-dialog__close {
        width: 20px;
        height: 20px;
        // color: #fff;
    }
    &::v-deep .el-dialog__body {