luobisheng
2022-11-29 4641a877cd6a94e4d35dca7f7f14bc1443e2d2ad
src/views/operate/sms/smsTemplate/index.vue
@@ -26,7 +26,7 @@
            <div class="mainContent">
                <div class="main-nav">
                    <span>数据列表</span>
                    <el-button type="primary" icon="el-icon-plus" @click="isShowDialog = true; dialogType = 'create'">添加</el-button>
                    <el-button class="button-addition" type="primary" icon="el-icon-plus" @click="isShowDialog = true; dialogType = 'create'">添加</el-button>
                </div>
                <!-- 数据展示 -->
                <el-table ref="multipleTable"
@@ -64,7 +64,8 @@
                <!-- 新建消息 -->
                <el-dialog :title="dialogType === 'view' ? '查看短信模板' : '更新短信模板'" :visible.sync="isShowDialog" width="80%"
                    :before-close="handleConfirmClose">
                    <MyCreate v-if="isShowDialog" @closeMyDialog="handleConfirmClose" :dialogType="dialogType" :tableRowData="messageTemplateData"></MyCreate>
                    <MyCreate v-if="isShowDialog" @closeMyDialog="handleConfirmClose" @closeDialog="closeDialog"
                              :dialogType="dialogType" :tableRowData="messageTemplateData"></MyCreate>
                </el-dialog>
                <div class="tools">
                    <div class="funs">
@@ -181,6 +182,9 @@
        },
        // 重置
        handleReset(){
            this.context="";
            this.messageStatus=0;
            this.getMessageList();
        },
        // 查看
        handleView(data){
@@ -210,7 +214,7 @@
        },
        // 获取消息数据
        getMessageList() {
            SMS.getSMSTemplateList({ current: this.currentPage, pageSize: this.pageSize, context: this.context, type: this.messageType })
            SMS.getSMSTemplateList({ current: this.currentPage, pageSize: this.pageSize, title: this.context, type: this.messageStatus })
                .then(({ records, total }) => {
                  this.tableData = records;
                  this.totalNum = total;
@@ -305,7 +309,10 @@
                .then(() => {
                    done();
                })
        }
        },
      closeDialog() {
          this.isShowDialog = false;
      }
    }
}
</script>
@@ -547,7 +554,6 @@
    &::v-deep .el-dialog__close {
        width: 20px;
        height: 20px;
        // color: #fff;
    }
    &::v-deep .el-dialog__body {