新增退款明细后台错误提示

This commit is contained in:
dragon
2024-11-28 17:57:37 +08:00
parent e58363371c
commit fda1a6aacb

View File

@@ -57,7 +57,7 @@
<el-option
v-for="item in inquire.countryArr"
:key="item.id"
:label="jsonFun(item.name).zh"
:label="item.regionDesc"
:value="item.id"
></el-option>
</el-select>
@@ -235,7 +235,9 @@ export default {
sortedMapObj() {
const entries = Object.entries(this.mapObj);
// 将 "总充值{USD}" 的键排到第一位
entries.sort(([keyA], [keyB]) => (keyA === "总充值{USD}" ? -1 : keyB === "总充值{USD}" ? 1 : 0));
entries.sort(([keyA], [keyB]) =>
keyA === "总充值{USD}" ? -1 : keyB === "总充值{USD}" ? 1 : 0
);
return Object.fromEntries(entries);
},
},
@@ -320,9 +322,17 @@ export default {
beginDate: startTime,
endDate: endTime,
}).then((res) => {
this.total = res.total;
this.tableData = res.rows;
this.mapObj = res.totalMap;
if (res.code == 200) {
this.total = res.data.total;
this.tableData = res.data.rows;
this.mapObj = res.data.totalMap;
} else {
ElMessage({
showClose: true,
message: res.message,
type: "error",
});
}
this.loading = false;
});
},