From 5b36a7e896276c4e468d6b0ef29b237eb6fc5663 Mon Sep 17 00:00:00 2001 From: mg <maokecheng@163.com> Date: 星期四, 27 十月 2022 18:26:27 +0800 Subject: [PATCH] 联调消息 --- src/views/operate/management/message/index.vue | 43 +++++++++++++++++++++++++++++-------------- 1 files changed, 29 insertions(+), 14 deletions(-) diff --git a/src/views/operate/management/message/index.vue b/src/views/operate/management/message/index.vue index bf74671..97fa692 100644 --- a/src/views/operate/management/message/index.vue +++ b/src/views/operate/management/message/index.vue @@ -16,7 +16,7 @@ </div> <div class="btns"> <el-button type="primary" icon="el-icon-search" @click="handleSearch">鏌ヨ</el-button> - <el-button icon="el-icon-delete-solid">閲嶇疆</el-button> + <el-button icon="el-icon-delete-solid" @click="handleReset">閲嶇疆</el-button> </div> </div> </header> @@ -28,7 +28,7 @@ <!-- 鏁版嵁灞曠ず --> <MyTable :tableOption="tableOption" :tableData="tableData" :pageShow="false"> <template #operation="info"> - <el-link :underline="false" style="color:#4b9bb7">缂栬緫</el-link> + <el-link :underline="false" style="color:#4b9bb7" @click="handleCheckSms(info)">瀹℃牳</el-link> </template> </MyTable> <div class="tools"> @@ -49,7 +49,11 @@ </el-pagination> </div> </div> - + <!-- 瀹℃牳椤甸潰 --> + <el-dialog :visible.sync="dialogCheckSms" width="80%" title="娑堟伅璇︽儏" v-if="dialogCheckSms" + :before-close="handleClose"> + <MyCheckSms :messageData="messageData" @closeDialog="closeDialog"></MyCheckSms> + </el-dialog> </div> </main> <footer> @@ -59,16 +63,16 @@ </template> <script> import MyTable from '@/components/Table'; -import { myDownLoad } from '@/utils/helper'; -import { createNamespacedHelpers } from "vuex"; -const { mapActions } = createNamespacedHelpers("shortMessage"); +import MyCheckSms from './checkSms'; export default { components: { - MyTable + MyTable,MyCheckSms }, data() { return { tableData: [], + dialogCheckSms:false, + messageData:{}, totalNum: null, context: "", status:0, @@ -130,14 +134,17 @@ } }, created() { - const { setTableData } = this; - setTableData(); + const {setTableData} = this + this.setTableData(); }, methods: { - handleSearch(){ - const {setTableData} = this - setTableData(); - }, + handleSearch(){ + this.setTableData(); + }, + // 閲嶇疆 + handleReset(){ + + }, // 璁剧疆琛ㄦ牸鏁版嵁 async setTableData() { const arr = await this.getMessageAuditList(); @@ -170,12 +177,20 @@ done(); }) }, - ...mapActions(['getMessageList']), // 褰撳墠椤垫敼鍙樿Е鍙戜簨浠� changeCurrentPage(page) { this.currentPage = page; this.setTableData(); }, + // 鍘诲鏍� + handleCheckSms(info) { + this.messageData = info; + this.dialogCheckSms = true; + }, + // 鍏抽棴dialog + closeDialog({flag}){ + this.dialogCheckSms = flag; + }, } } </script> -- Gitblit v1.8.0