donghaolin 5 months ago
parent
commit
87f6273738
  1. 9
      vue/gold-system/src/views/audit/rechargeAudit.vue
  2. 19
      vue/gold-system/src/views/audit/refundAudit.vue
  3. 5
      vue/gold-system/src/views/recharge/adminRecharge.vue
  4. 5
      vue/gold-system/src/views/recharge/allRecharge.vue
  5. 6
      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);

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

@ -246,6 +246,24 @@ const getArea = async function () {
//
}
};
//
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") {
@ -378,6 +396,7 @@ onMounted(async function () {
await get();
getProduct();
await getArea();
await getArea();
});
</script>

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

@ -248,6 +248,7 @@ const getActivity = async function () {
}
};
//
//
const getArea = async function () {
try {
// POST
@ -257,9 +258,9 @@ const getArea = async function () {
);
//
console.log("请求成功", result);
//
//
area.value = result.data;
console.log("allData", allData.value);
console.log("地区", area.value);
} catch (error) {
console.log("请求失败", error);
//

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

@ -229,6 +229,7 @@ const getActivity = async function () {
}
};
//
//
const getArea = async function () {
try {
// POST
@ -238,9 +239,9 @@ const getArea = async function () {
);
//
console.log("请求成功", result);
//
//
area.value = result.data;
console.log("allData", allData.value);
console.log("地区", area.value);
} catch (error) {
console.log("请求失败", error);
//

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

@ -97,7 +97,6 @@ const reset = function () {
detail.value.area = "";
detail.value.startDate = "";
detail.value.endDate = "";
get();
};
//
const getToday = function () {
@ -191,6 +190,7 @@ const handleClick = function (tab, event) {
adminReject();
}
};
//
const getArea = async function () {
try {
@ -201,9 +201,9 @@ const getArea = async function () {
);
//
console.log("请求成功", result);
//
//
area.value = result.data;
console.log("allData", allData.value);
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