From 4641a877cd6a94e4d35dca7f7f14bc1443e2d2ad Mon Sep 17 00:00:00 2001 From: luobisheng <727299681@qq.com> Date: 星期二, 29 十一月 2022 17:59:55 +0800 Subject: [PATCH] 上传处置类型修改 --- src/views/operate/sms/smsTemplate/index.vue | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/views/operate/sms/smsTemplate/index.vue b/src/views/operate/sms/smsTemplate/index.vue index 52cfe25..cd54a9b 100644 --- a/src/views/operate/sms/smsTemplate/index.vue +++ b/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" @@ -53,7 +53,7 @@ <el-table-column prop="operation" label="鎿嶄綔" min-width="15"> <template slot-scope="scope"> <div class="operation"> - <el-link icon="el-icon-view" :underline="false" @click="handleView(scope.row)">鏌ョ湅</el-link> + <el-link icon="el-icon-view" :underline="false" @click="handleView(scope.row, 'view')">鏌ョ湅</el-link> <el-link icon="el-icon-edit" class="leftPx" :underline="false" @click="handleEdit(scope.row)">缂栬緫</el-link> <el-link class="leftPx" icon="el-icon-delete-solid" :underline="false" @click="handleDelete([scope.row.id])">鍒犻櫎</el-link> @@ -62,9 +62,10 @@ </el-table-column> </el-table> <!-- 鏂板缓娑堟伅 --> - <el-dialog :title="dialogType === 'create' ? '鏂板缓鐭俊妯℃澘' : '鏌ョ湅鐭俊妯℃澘'" :visible.sync="isShowDialog" width="80%" + <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 { -- Gitblit v1.8.0