From 52da7460a26b0f99d2f72ff4dc61765daca30e50 Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期二, 03 一月 2023 09:47:03 +0800
Subject: [PATCH] 跨域配置修改
---
src/views/operate/management/message/index.vue | 74 ++++++++++++++++--------------------
1 files changed, 33 insertions(+), 41 deletions(-)
diff --git a/src/views/operate/management/message/index.vue b/src/views/operate/management/message/index.vue
index df8baf6..44041c6 100644
--- a/src/views/operate/management/message/index.vue
+++ b/src/views/operate/management/message/index.vue
@@ -9,13 +9,13 @@
</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"
@@ -66,14 +66,14 @@
<!-- 瀹℃牳椤甸潰 -->
<el-dialog
:visible.sync="dialogCheckSms"
- width="80%"
+ width="60%"
title="娑堟伅璇︽儏"
- v-if="dialogCheckSms"
:before-close="handleClose"
>
<MyCheckSms
- :messageData="messageData"
- @closeDialog="closeDialog"
+ v-if="dialogCheckSms"
+ :messageData="messageData"
+ @closeDialog="closeDialog"
></MyCheckSms>
</el-dialog>
</div>
@@ -156,39 +156,33 @@
};
},
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) {
@@ -199,12 +193,12 @@
// 褰撳墠椤垫敼鍙樿Е鍙戜簨浠�
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 {
@@ -246,8 +240,7 @@
color: #4b9bb7;
header {
- background-color: #09152f;
- border: 1pox solid #fff;
+ background-color: white;
.header-title {
line-height: 40px;
padding: 0 20px;
@@ -273,7 +266,7 @@
color: #1d3f57;
&::v-deep .el-input__inner {
- background-color: #09152f;
+ // background-color: #09152f;
border: 1px solid #17324c;
}
}
@@ -282,10 +275,9 @@
}
main {
- background-color: #09152f;
+ background-color: #ffffff;
margin-top: 20px;
padding-bottom: 50px;
- border: 1pox solid #fff;
.main-title {
line-height: 60px;
@@ -321,7 +313,7 @@
&::v-deep .el-input__inner {
border: none;
- background-color: #09152f;
+ // background-color: #09152f;
}
&:hover {
@@ -344,7 +336,7 @@
&::v-deep li,
&::v-deep .btn-prev,
&::v-deep .btn-next {
- background-color: #071f39;
+ // background-color: #071f39;
color: #4b9bb7;
}
@@ -357,8 +349,8 @@
}
.el-table {
- color: #4b9bb7;
- font-size: 10px;
+ // color: #4b9bb7;
+ // font-size: 10px;
.operation {
display: flex;
--
Gitblit v1.8.0