| | |
| | | </div> |
| | | <div class="status"> |
| | | <span>短信状态:</span> |
| | | <el-radio-group v-model="status"> |
| | | <el-radio-group v-model="status" @input="getMessageAuditList"> |
| | | <el-radio :label="0">待审核</el-radio> |
| | | <el-radio :label="1">已审核</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | <div class="btns"> |
| | | <el-button type="primary" icon="el-icon-search" @click="handleSearch" |
| | | <el-button type="primary" icon="el-icon-search" @click="getMessageAuditList" |
| | | >查询</el-button |
| | | > |
| | | <el-button icon="el-icon-delete-solid" @click="handleReset" |
| | |
| | | :visible.sync="dialogCheckSms" |
| | | width="80%" |
| | | title="消息详情" |
| | | v-if="dialogCheckSms" |
| | | :before-close="handleClose" |
| | | > |
| | | <MyCheckSms |
| | | :messageData="messageData" |
| | | @closeDialog="closeDialog" |
| | | v-if="dialogCheckSms" |
| | | :messageData="messageData" |
| | | @closeDialog="closeDialog" |
| | | ></MyCheckSms> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | const { setTableData } = this; |
| | | this.setTableData(); |
| | | this.getMessageAuditList() |
| | | }, |
| | | methods: { |
| | | handleSearch() { |
| | | this.setTableData(); |
| | | }, |
| | | // 重置 |
| | | handleReset() {}, |
| | | // 设置表格数据 |
| | | async setTableData() { |
| | | const arr = await this.getMessageAuditList(); |
| | | this.tableData = arr.records; |
| | | this.totalNum = arr.total; |
| | | handleReset() { |
| | | this.context = ''; |
| | | this.status = 0; |
| | | this.getMessageAuditList(); |
| | | }, |
| | | // 获取消息数据 |
| | | async getMessageAuditList() { |
| | | let arr = []; |
| | | const { currentPage, pageSize, context, status } = this; |
| | | await this.$axios({ |
| | | getMessageAuditList() { |
| | | this.$axios({ |
| | | method: "post", |
| | | url: "sccg/message_audit/list", |
| | | data: { |
| | | messageId: context, |
| | | auditId:this.auditId, |
| | | auditStatus: status, |
| | | current: currentPage, |
| | | pageSize: pageSize, |
| | | messageId: this.context, |
| | | auditId: this.auditId, |
| | | auditStatus: this.status, |
| | | current: this.currentPage, |
| | | pageSize: this.pageSize, |
| | | }, |
| | | }).then((res) => { |
| | | arr = res.data; |
| | | }); |
| | | return arr; |
| | | const { records, total } = res.data; |
| | | this.tableData = records; |
| | | this.totalNum = total; |
| | | }).catch(err => this.$message.error(err)) |
| | | |
| | | }, |
| | | // 弹窗关闭 |
| | | handleClose(done) { |
| | |
| | | // 当前页改变触发事件 |
| | | changeCurrentPage(page) { |
| | | this.currentPage = page; |
| | | this.setTableData(); |
| | | this.getMessageAuditList(); |
| | | }, |
| | | // 去审核 |
| | | handleCheckSms(info) { |
| | | this.messageData = info; |
| | | if (this.messageData.info.row.auditStatus === 1) { |
| | | this.messageData = info.info.row; |
| | | if (info.info.row.auditStatus === 1) { |
| | | this.$message({ message: "该消息已被审核!" }); |
| | | this.dialogCheckSms = false; |
| | | } else { |
| | |
| | | |
| | | header { |
| | | background-color: #09152f; |
| | | border: 1pox solid #fff; |
| | | .header-title { |
| | | line-height: 40px; |
| | | padding: 0 20px; |
| | |
| | | background-color: #09152f; |
| | | margin-top: 20px; |
| | | padding-bottom: 50px; |
| | | border: 1pox solid #fff; |
| | | |
| | | .main-title { |
| | | line-height: 60px; |