diff --git a/gold-system/src/views/audit/rechargeAudit.vue b/gold-system/src/views/audit/rechargeAudit.vue
index 3c629f4..4dcea5e 100644
--- a/gold-system/src/views/audit/rechargeAudit.vue
+++ b/gold-system/src/views/audit/rechargeAudit.vue
@@ -19,7 +19,7 @@ const adminData = ref({});
const getAdminData = async function () {
try {
const result = await API.post(
- "/hwjb/admin/userinfo",
+ "http://54.251.137.151:10702/admin/userinfo",
{}
);
adminData.value = result;
@@ -42,7 +42,7 @@ const rechargeVo = ref({
// 搜索对象
const getObj = ref({
pageNum: 1,
- pageSize: 50,
+ pageSize: 10,
});
//分页总条目
const total = ref(100);
@@ -120,7 +120,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/recharge",
+ "http://54.251.137.151:10702/recharge/recharge",
{ ...getObj.value, rechargeVo: { ...rechargeVo.value } }
);
@@ -250,7 +250,7 @@ const getActivity = async function () {
try {
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/activity/select",
+ "http://54.251.137.151:10702/recharge/activity/select",
{}
);
@@ -269,7 +269,7 @@ const getArea = async function () {
try {
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/user/search",
+ "http://54.251.137.151:10702/recharge/user/search",
{}
);
// 将响应结果存储到响应式数据中
@@ -334,7 +334,7 @@ const passConfirm = async function () {
console.log("通过对象", passObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/audit/audit/goldedit",
+ "http://54.251.137.151:10702/audit/audit/goldedit",
passObj.value
);
@@ -381,7 +381,7 @@ const rejectConfirm = async function () {
console.log("驳回对象", rejectObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/audit/audit/goldedit",
+ "http://54.251.137.151:10702/audit/audit/goldedit",
rejectObj.value
);
diff --git a/gold-system/src/views/audit/refundAudit.vue b/gold-system/src/views/audit/refundAudit.vue
index 3504f40..19fc67b 100644
--- a/gold-system/src/views/audit/refundAudit.vue
+++ b/gold-system/src/views/audit/refundAudit.vue
@@ -22,7 +22,7 @@ const detail = ref({});
// 搜索对象
const getObj = ref({
pageNum: 1,
- pageSize: 50,
+ pageSize: 10,
});
//分页总条目
const total = ref(100);
@@ -88,7 +88,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/audit/audit/refund",
+ "http://54.251.137.151:10702/audit/audit/refund",
{ ...getObj.value, detail: { ...detail.value } }
);
@@ -216,7 +216,7 @@ const handleClick = function (tab, event) {
const getProduct = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/product", {});
+ const result = await API.post("http://54.251.137.151:10702/product", {});
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
@@ -234,7 +234,7 @@ const getArea = async function () {
try {
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/user/search",
+ "http://54.251.137.151:10702/recharge/user/search",
{}
);
// 将响应结果存储到响应式数据中
@@ -285,8 +285,8 @@ const pass = function (row) {
passObj.value.status = 1;
passObj.value.refundId = row.refundId;
passObj.value.adminName = row.adminName;
- passObj.value.username=row.username;
- passObj.value.area=row.area;
+ passObj.value.username = row.username;
+ passObj.value.area = row.area;
console.log("通过对象", passObj.value);
};
@@ -296,7 +296,7 @@ const passConfirm = async function () {
console.log("通过对象", passObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/audit/audit/edit",
+ "http://54.251.137.151:10702/audit/audit/edit",
passObj.value
);
@@ -342,7 +342,7 @@ const rejectConfirm = async function () {
console.log("驳回对象", rejectObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/audit/audit/edit",
+ "http://54.251.137.151:10702/audit/audit/edit",
rejectObj.value
);
diff --git a/gold-system/src/views/consume/addConsume.vue b/gold-system/src/views/consume/addConsume.vue
index b6c99f1..2bb60b0 100644
--- a/gold-system/src/views/consume/addConsume.vue
+++ b/gold-system/src/views/consume/addConsume.vue
@@ -7,14 +7,14 @@ import axios from "axios";
import { ElMessageBox } from "element-plus";
import API from "../../api/index.js";
import moment from "moment";
-import _ from 'lodash';
+import _ from "lodash";
//这是获取用户信息的接口
const adminData = ref({});
const getAdminData = async function () {
try {
const result = await API.post(
- "/hwjb/admin/userinfo",
+ "http://54.251.137.151:10702/admin/userinfo",
{}
);
adminData.value = result;
@@ -40,7 +40,7 @@ const add = async function () {
try {
// 发送POST请求
const result = await API.post(
- "/hwjb/consume/add",
+ "http://54.251.137.151:10702/consume/add",
addConsume.value
);
if (result.code === 0) {
@@ -138,7 +138,7 @@ const user = ref({
const getUser = async function (jwcode) {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/user", {
+ const result = await API.post("http://54.251.137.151:10702/recharge/user", {
jwcode: jwcode,
});
@@ -168,7 +168,7 @@ const goods = ref([]);
const getGoods = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/product", {});
+ const result = await API.post("http://54.251.137.151:10702/product", {});
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
@@ -188,7 +188,7 @@ const userGold = ref({});
const getUserGold = async function (jwcode) {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/user", {
+ const result = await API.post("http://54.251.137.151:10702/recharge/user", {
jwcode: jwcode,
});
// 将响应结果存储到响应式数据中
diff --git a/gold-system/src/views/consume/allConsume.vue b/gold-system/src/views/consume/allConsume.vue
index 061fd99..ab06f86 100644
--- a/gold-system/src/views/consume/allConsume.vue
+++ b/gold-system/src/views/consume/allConsume.vue
@@ -14,7 +14,7 @@ const detailVo = ref({});
// 搜索对象
const getObj = ref({
pageNum: 1,
- pageSize: 50,
+ pageSize: 10,
});
//分页总条目
const total = ref(100);
@@ -81,10 +81,13 @@ const get = async function (val) {
}
console.log("搜索参数", getObj.value);
// 发送POST请求
- const result = await API.post("/hwjb/consume/select", {
- ...getObj.value,
- consumeDetail: { ...detailVo.value },
- });
+ const result = await API.post(
+ "http://54.251.137.151:10702/consume/select",
+ {
+ ...getObj.value,
+ consumeDetail: { ...detailVo.value },
+ }
+ );
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
@@ -218,7 +221,7 @@ const goods = ref([]);
const getGoods = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/product", {});
+ const result = await API.post("http://54.251.137.151:10702/product", {});
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
// 存储全部数据
diff --git a/gold-system/src/views/index.vue b/gold-system/src/views/index.vue
index 77e0477..bfcf628 100644
--- a/gold-system/src/views/index.vue
+++ b/gold-system/src/views/index.vue
@@ -19,7 +19,7 @@ const adminData = ref({
const getAdminData = async function () {
try {
const result = await API.post(
- "/hwjb/admin/userinfo",
+ "http://54.251.137.151:10702/admin/userinfo",
{}
);
adminData.value = result;
@@ -64,7 +64,7 @@ onMounted(async function () {
alt="logo"
style="width: 30px; height: 30px"
/>
-
海外金币管理系统
+ 财务金币管理系统
-
+
diff --git a/gold-system/src/views/login.vue b/gold-system/src/views/login.vue
index 962e344..026d1f5 100644
--- a/gold-system/src/views/login.vue
+++ b/gold-system/src/views/login.vue
@@ -16,7 +16,7 @@ const form = ref({ jwcode: "", password: "", token: "" });
const login = async function () {
try {
const result = await axios.post(
- "/hwjb/admin/login",
+ "http://54.251.137.151:10702/admin/login",
form.value
);
if (result.data.code == 200) {
diff --git a/gold-system/src/views/managerecharge/activity.vue b/gold-system/src/views/managerecharge/activity.vue
index a231145..b96182d 100644
--- a/gold-system/src/views/managerecharge/activity.vue
+++ b/gold-system/src/views/managerecharge/activity.vue
@@ -5,14 +5,14 @@ import { ElMessage, ElMessageBox } from "element-plus";
import axios from "axios";
import moment from "moment";
import API from "../../api/index.js";
-import _ from 'lodash';
+import _ from "lodash";
//这是获取用户信息的接口
const adminData = ref({});
const getAdminData = async function () {
try {
const result = await API.post(
- "/hwjb/admin/userinfo",
+ "http://54.251.137.151:10702/admin/userinfo",
{}
);
adminData.value = result;
@@ -75,7 +75,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/activity/select",
+ "http://54.251.137.151:10702/recharge/activity/select",
{ ...getObj.value, activity: { ...activity.value } }
);
@@ -138,7 +138,7 @@ const add = async function () {
console.log("添加对象", addObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/activity/add",
+ "http://54.251.137.151:10702/recharge/activity/add",
addObj.value
);
@@ -169,7 +169,7 @@ const add = async function () {
// 使用 _.throttle 并设置 trailing 为 false 实现严格节流,只执行一次
const throttledAdd = _.throttle(add, 5000, { trailing: false });
// 新增一个标志,用于控制是否执行函数
-// let onceFunction = true;
+// let onceFunction = true;
// 改进后的手动节流函数
// const throttledAdd = (...args) => {
// if (onceFunction) {
@@ -193,7 +193,7 @@ const delConfirm = async function () {
console.log("delObj", delObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/activity/edit",
+ "http://54.251.137.151:10702/recharge/activity/edit",
delObj.value
);
// 将响应结果存储到响应式数据中
@@ -341,9 +341,16 @@ onMounted(async function () {
-
+
- {{ scope.$index + 1+(getObj.pageNum-1)*getObj.pageSize }}
+ {{
+ scope.$index + 1 + (getObj.pageNum - 1) * getObj.pageSize
+ }}
diff --git a/gold-system/src/views/managerecharge/rate.vue b/gold-system/src/views/managerecharge/rate.vue
index 6e4b1d2..8f4073b 100644
--- a/gold-system/src/views/managerecharge/rate.vue
+++ b/gold-system/src/views/managerecharge/rate.vue
@@ -14,7 +14,7 @@ const adminData = ref({
const getAdminData = async function () {
try {
const result = await API.post(
- "/hwjb/admin/userinfo",
+ "http://54.251.137.151:10702/admin/userinfo",
{}
);
adminData.value = result;
@@ -74,7 +74,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value);
// 发送POST请求
- const result = await API.post("/hwjb/rates/search", {
+ const result = await API.post("http://54.251.137.151:10702/rates/search", {
...getObj.value,
rate: { ...time.value },
});
@@ -120,7 +120,7 @@ const addRate = async function () {
console.log("搜索参数", getObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/rates/add",
+ "http://54.251.137.151:10702/rates/add",
rateAdd.value
);
if (result.code == 0) {
@@ -170,7 +170,7 @@ const getEditData = async function (row) {
console.log("搜索参数", getObj.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/rates/searchById?rateId=" + row.rateId,
+ "http://54.251.137.151:10702/rates/searchById?rateId=" + row.rateId,
{}
);
@@ -205,7 +205,7 @@ const editRate = async function () {
console.log("搜索参数", rateEdit.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/rates/update",
+ "http://54.251.137.151:10702/rates/update",
rateEdit.value
);
// 将响应结果存储到响应式数据中
@@ -232,7 +232,7 @@ const deleteRate = async function (row) {
try {
// 发送POST请求
const result = await API.post(
- "/hwjb/rates/delete/ " + row.rateId,
+ "http://54.251.137.151:10702/rates/delete/ " + row.rateId,
{}
);
// 将响应结果存储到响应式数据中
@@ -388,7 +388,7 @@ const delConfirm = async function (row) {
try {
// 发送POST请求
const result = await API.post(
- "/hwjb/rates/delete/ " + row.rateId,
+ "http://54.251.137.151:10702/rates/delete/ " + row.rateId,
{}
);
// 将响应结果存储到响应式数据中
diff --git a/gold-system/src/views/permissions/index.vue b/gold-system/src/views/permissions/index.vue
index 1cce23c..d7a672c 100644
--- a/gold-system/src/views/permissions/index.vue
+++ b/gold-system/src/views/permissions/index.vue
@@ -18,7 +18,7 @@ const admin = ref({});
// 搜索对象
const getObj = ref({
pageNum: 1,
- pageSize: 50,
+ pageSize: 10,
});
// 新增用户权限弹窗
const permissionAddVisible = ref(false);
@@ -42,13 +42,13 @@ const get = async function (val) {
}
console.log("搜索参数", getObj.value);
// 发送POST请求
- const result = await API.post("/hwjb/admin/search", {
+ const result = await API.post("http://54.251.137.151:10702/admin/search", {
...getObj.value,
admin: { ...admin.value },
});
tableData.value = result.data.list;
total.value = result.data.total;
- } catch (error) { }
+ } catch (error) {}
};
// 搜索
const search = function () {
@@ -63,23 +63,26 @@ const reset = function () {
// 获取地区
const getArea = async function () {
try {
- const result = await API.post("/hwjb/admin/area", {});
+ const result = await API.post("http://54.251.137.151:10702/admin/area", {});
area.value = result.data;
} catch (error) {
console.log("请求失败", error);
// 在这里可以处理错误逻辑,比如显示错误提示等
}
-}
+};
// 获取部门
const getStore = async function () {
try {
- const result = await API.post("/hwjb/admin/store", {});
+ const result = await API.post(
+ "http://54.251.137.151:10702/admin/store",
+ {}
+ );
store.value = result.data;
} catch (error) {
console.log("请求失败", error);
// 在这里可以处理错误逻辑,比如显示错误提示等
}
-}
+};
// 验证跳转输入框的数字是否合法
const checkNumber = function () {
@@ -113,24 +116,27 @@ const checkNumber = function () {
// 打开新增用户权限弹窗
const openPermissionAddVisible = function () {
permissionAddVisible.value = true;
-}
+};
// 关闭新增用户权限弹窗
const closePermissionAddVisible = function () {
permissionAddVisible.value = false;
-}
+};
// 新增用户权限初始化
const permissionAddInit = function () {
permissionAddObj.value = {};
openPermissionAddVisible();
-}
+};
// 通过精网号查询没有权限的用户
const getAdminByJwcodeWithoutPermission = async function () {
try {
- const result = await API.post("/hwjb/admin/selectNo", permissionAddObj.value);
+ const result = await API.post(
+ "http://54.251.137.151:10702/admin/selectNo",
+ permissionAddObj.value
+ );
if (result.code == 200) {
permissionAddObj.value = result.data[0];
ElMessage.success("精网号查询成功");
- }else{
+ } else {
ElMessage.error(result.msg);
}
console.log("精网号查询没有权限的用户", permissionAddObj.value);
@@ -138,7 +144,7 @@ const getAdminByJwcodeWithoutPermission = async function () {
console.log("请求失败", error);
// 在这里可以处理错误逻辑,比如显示错误提示等
}
-}
+};
// 新增用户权限提交
const permissionAdd = async function () {
try {
@@ -149,15 +155,15 @@ const permissionAdd = async function () {
} finally {
closePermissionAddVisible();
}
-}
+};
// 打开编辑用户权限弹窗
const openPermissionEditVisible = function () {
permissionEditVisible.value = true;
-}
+};
// 关闭编辑用户权限弹窗
const closePermissionEditVisible = function () {
permissionEditVisible.value = false;
-}
+};
// 编辑用户权限初始化
const permissionEditInit = function (row) {
permissionEditObj.value = {};
@@ -168,7 +174,7 @@ const permissionEditInit = function (row) {
permissionEditObj.value.permission = row.permission;
console.log("编辑用户权限", permissionEditObj.value);
openPermissionEditVisible();
-}
+};
// 编辑用户权限提交
const permissionEdit = async function () {
try {
@@ -179,7 +185,7 @@ const permissionEdit = async function () {
} finally {
closePermissionEditVisible();
}
-}
+};
// 挂载
onMounted(async function () {
@@ -196,19 +202,44 @@ onMounted(async function () {
精网号:
-
+
所属地区:
-
-
+
+
所属部门:
-
-
+
+
@@ -225,11 +256,24 @@ onMounted(async function () {
- 新增用户权限
+ 新增用户权限
-
-
+
+
{{
scope.$index + 1 + (getObj.pageNum - 1) * getObj.pageSize
@@ -243,23 +287,24 @@ onMounted(async function () {
-
- 总部管理员
-
-
- 分部管理员
-
-
- 分部审核员
-
+ 总部管理员
+ 分部管理员
+ 分部审核员
-
+
修改权限
-
+
删除
@@ -279,17 +324,42 @@ onMounted(async function () {
@@ -298,16 +368,32 @@ onMounted(async function () {
-
-
-
-
精网号:
-
-
查询
+
+
+ 精网号:
+
+ 查询
-
+
@@ -358,7 +444,9 @@ onMounted(async function () {
- 权限设置:
+ 权限设置:
总部管理员
分部管理员
@@ -370,13 +458,23 @@ onMounted(async function () {
取消
提交
-
-
-
+
+
@@ -427,11 +525,13 @@ onMounted(async function () {
- 权限设置:
+ 权限设置:
- 总部管理员
- 分部管理员
- 分部审核员
+ 总部管理员
+ 分部管理员
+ 分部审核员
@@ -439,7 +539,6 @@ onMounted(async function () {
取消
提交
-
diff --git a/gold-system/src/views/recharge/addRecharge.vue b/gold-system/src/views/recharge/addRecharge.vue
index de59a27..b4bb321 100644
--- a/gold-system/src/views/recharge/addRecharge.vue
+++ b/gold-system/src/views/recharge/addRecharge.vue
@@ -17,7 +17,10 @@ const Rate = ref();
const adminData = ref({});
const getAdminData = async function () {
try {
- const result = await API.post("/hwjb/admin/userinfo", {});
+ const result = await API.post(
+ "http://54.251.137.151:10702/admin/userinfo",
+ {}
+ );
adminData.value = result;
addRecharge.value.adminId = adminData.value.adminId;
addRecharge.value.area = adminData.value.area;
@@ -45,7 +48,7 @@ const add = async function () {
console.log("开始添加充值信息", addRecharge.value);
// 发送POST请求
const result = await API.post(
- "/hwjb/recharge/recharge/add",
+ "http://54.251.137.151:10702/recharge/recharge/add",
addRecharge.value
);
if (result.code === 0) {
@@ -127,7 +130,7 @@ const user = ref({
const getUser = async function (jwcode) {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/user", {
+ const result = await API.post("http://54.251.137.151:10702/recharge/user", {
jwcode: jwcode,
});
@@ -157,9 +160,12 @@ const activity = ref([]);
const getActivity = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/activity/select", {
- activity: { status: 1 },
- });
+ const result = await API.post(
+ "http://54.251.137.151:10702/recharge/activity/select",
+ {
+ activity: { status: 1 },
+ }
+ );
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
@@ -178,7 +184,10 @@ const currency = ref([]);
const getCurrency = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/rates/status", {});
+ const result = await API.post(
+ "http://54.251.137.151:10702/rates/status",
+ {}
+ );
// 将响应结果存储到响应式数据中
console.log("货币请求成功", result);
@@ -197,7 +206,7 @@ getCurrency();
const handleAvatarSuccess = (response, uploadFile) => {
imageUrl.value = URL.createObjectURL(uploadFile.raw);
console.log("图片上传成功", response, uploadFile);
- addRecharge.value.rechargeVoucher = `/hwjb/upload/${response.data}`;
+ addRecharge.value.rechargeVoucher = `http://54.251.137.151:10702/upload/${response.data}`;
console.log("图片名称", addRecharge.value.rechargeVoucher);
};
@@ -233,9 +242,12 @@ const options = [
const getActivityById = async function (row) {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/activity/select", {
- activity: { activityId: row },
- });
+ const result = await API.post(
+ "http://54.251.137.151:10702/recharge/activity/select",
+ {
+ activity: { activityId: row },
+ }
+ );
addRecharge.value.rechargeRatio = result.data[0].rechargeRatio;
console.log("看看有了吗", addRecharge.value.rechargeRatio);
} catch (error) {
@@ -289,7 +301,10 @@ let jwcodeSet;
const getJwcodeList = async function () {
try {
// 发送POST请求
- const result = await API.post("/hwjb/recharge/user/jwcode", {});
+ const result = await API.post(
+ "http://54.251.137.151:10702/recharge/user/jwcode",
+ {}
+ );
// 将响应结果存储到响应式数据中
console.log("请求成功", result);
@@ -630,7 +645,7 @@ const changeVoucher = function (row) {
const handleBatchAvatarSuccess = (response, uploadFile) => {
imageUrl.value = URL.createObjectURL(uploadFile.raw);
console.log("图片上传成功", response, uploadFile);
- rechargeVoucher.value = `/hwjb/upload/${response.data}`;
+ rechargeVoucher.value = `http://54.251.137.151:10702/upload/${response.data}`;
console.log("图片名称", rechargeVoucher.value);
};
//批量充值确认按钮
@@ -712,9 +727,12 @@ const batchAdd = async function () {
console.log("batchData===", batchData.value);
- const result = await API.post("/hwjb/recharge/recharge/addmore", {
- ...batchData.value,
- });
+ const result = await API.post(
+ "http://54.251.137.151:10702/recharge/recharge/addmore",
+ {
+ ...batchData.value,
+ }
+ );
if (result.code === 0) {
ElMessage.error("添加失败");
@@ -759,7 +777,7 @@ const batchSettingInit = function () {
const batchSettingHandleAvatarSuccess = (response, uploadFile) => {
batchSettingObj.value.imageUrl = URL.createObjectURL(uploadFile.raw);
console.log("图片上传成功", response, uploadFile);
- batchSettingObj.value.rechargeVoucher = `/hwjb/upload/${response.data}`;
+ batchSettingObj.value.rechargeVoucher = `http://54.251.137.151:10702/upload/${response.data}`;
console.log("图片名称", batchSettingObj.value.rechargeVoucher);
};
// 批量设置取消按钮
@@ -944,7 +962,7 @@ onMounted(async function () {
style="margin-bottom: 5px"
>