Browse Source

更换了搜索地区getArea的接口

Hongxilin
hongxilin 5 months ago
parent
commit
07435c133f
  1. 9
      vue/gold-system/src/views/audit/rechargeAudit.vue
  2. 41
      vue/gold-system/src/views/audit/refundAudit.vue
  3. 10
      vue/gold-system/src/views/recharge/adminRecharge.vue
  4. 10
      vue/gold-system/src/views/recharge/allRecharge.vue
  5. 10
      vue/gold-system/src/views/refund/allRefund.vue
  6. 2
      vue/gold-system/src/views/workspace/index.vue

9
vue/gold-system/src/views/audit/rechargeAudit.vue

@ -251,16 +251,13 @@ const getArea = async function () {
try {
// POST
const result = await API.post(
"http://192.168.8.93:10010/recharge/recharge",
"http://192.168.8.93:10010/recharge/user/search",
{}
);
//
console.log("请求成功", result);
//
allData.value = result.data;
console.log("allData", allData.value);
//
area.value = [...new Set(allData.value.map((item) => item.area))];
//
area.value = result.data;
console.log("地区", area.value);
} catch (error) {
console.log("请求失败", error);

41
vue/gold-system/src/views/audit/refundAudit.vue

@ -228,27 +228,24 @@ const getProduct = async function () {
//
}
};
// //
// const getArea = async function () {
// try {
// // POST
// const result = await API.post(
// "http://192.168.8.93:10010/recharge/recharge",
// {}
// );
// //
// console.log("", result);
// //
// allData.value = result.data;
// console.log("allData", allData.value);
// //
// area.value = [...new Set(allData.value.map((item) => item.area))];
// console.log("", area.value);
// } catch (error) {
// console.log("", error);
// //
// }
// };
//
const getArea = async function () {
try {
// POST
const result = await API.post(
"http://192.168.8.93:10010/recharge/user/search",
{}
);
//
console.log("请求成功", result);
//
area.value = result.data;
console.log("地区", area.value);
} catch (error) {
console.log("请求失败", error);
//
}
};
//
const checkNumber = function () {
if (typeof parseInt(getObj.value.pageNum) === "number") {
@ -380,7 +377,7 @@ const rules = reactive({
onMounted(async function () {
await get();
getProduct();
// await getArea();
await getArea();
});
</script>

10
vue/gold-system/src/views/recharge/adminRecharge.vue

@ -248,20 +248,18 @@ const getActivity = async function () {
}
};
//
//
const getArea = async function () {
try {
// POST
const result = await API.post(
"http://192.168.8.93:10010/recharge/recharge",
"http://192.168.8.93:10010/recharge/user/search",
{}
);
//
console.log("请求成功", result);
//
allData.value = result.data;
console.log("allData", allData.value);
//
area.value = [...new Set(allData.value.map((item) => item.area))];
//
area.value = result.data;
console.log("地区", area.value);
} catch (error) {
console.log("请求失败", error);

10
vue/gold-system/src/views/recharge/allRecharge.vue

@ -229,20 +229,18 @@ const getActivity = async function () {
}
};
//
//
const getArea = async function () {
try {
// POST
const result = await API.post(
"http://192.168.8.93:10010/recharge/recharge",
"http://192.168.8.93:10010/recharge/user/search",
{}
);
//
console.log("请求成功", result);
//
allData.value = result.data;
console.log("allData", allData.value);
//
area.value = [...new Set(allData.value.map((item) => item.area))];
//
area.value = result.data;
console.log("地区", area.value);
} catch (error) {
console.log("请求失败", error);

10
vue/gold-system/src/views/refund/allRefund.vue

@ -191,21 +191,19 @@ const handleClick = function (tab, event) {
adminReject();
}
};
//
const getArea = async function () {
try {
// POST
const result = await API.post(
"http://192.168.8.93:10010/recharge/recharge",
"http://192.168.8.93:10010/recharge/user/search",
{}
);
//
console.log("请求成功", result);
//
allData.value = result.data;
console.log("allData", allData.value);
//
area.value = [...new Set(allData.value.map((item) => item.area))];
//
area.value = result.data;
console.log("地区", area.value);
} catch (error) {
console.log("请求失败", error);

2
vue/gold-system/src/views/workspace/index.vue

@ -94,7 +94,7 @@ const get = async function () {
{}
);
const result2 = await API.post(
"http://192.168.8.174:10010/statistics/a",
"http://192.168.8.93:10010/statistics/a",
{}
);
const result3 = await API.post(

Loading…
Cancel
Save