Compare commits

...

1 Commits

Author SHA1 Message Date
donghaolin 0cb5c3776f 一期代码 完毕 4 months ago
  1. 14
      gold-system/src/views/audit/rechargeAudit.vue
  2. 16
      gold-system/src/views/audit/refundAudit.vue
  3. 12
      gold-system/src/views/consume/addConsume.vue
  4. 15
      gold-system/src/views/consume/allConsume.vue
  5. 8
      gold-system/src/views/index.vue
  6. 2
      gold-system/src/views/login.vue
  7. 21
      gold-system/src/views/managerecharge/activity.vue
  8. 14
      gold-system/src/views/managerecharge/rate.vue
  9. 219
      gold-system/src/views/permissions/index.vue
  10. 58
      gold-system/src/views/recharge/addRecharge.vue
  11. 12
      gold-system/src/views/recharge/adminRecharge.vue
  12. 8
      gold-system/src/views/recharge/allRecharge.vue
  13. 16
      gold-system/src/views/refund/addRefund.vue
  14. 14
      gold-system/src/views/refund/allRefund.vue
  15. 14
      gold-system/src/views/usergold/index.vue
  16. 15
      gold-system/src/views/usergoldInfo/index.vue
  17. 37
      gold-system/src/views/workspace/index.vue
  18. 2
      gold-system/vite.config.ts

14
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
);

16
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
);

12
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,
});
//

15
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);
//

8
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"
/>
<div style="font-size: 16px; font-weight: bold">海外金币管理系统</div>
<div style="font-size: 16px; font-weight: bold">财务金币管理系统</div>
</div>
<el-menu
router="true"
@ -153,12 +153,12 @@ onMounted(async function () {
客户金币余额
</el-menu-item>
<el-menu-item index="/permissions">
<!-- <el-menu-item index="/permissions">
<el-icon>
<Folder />
</el-icon>
权限管理
</el-menu-item>
</el-menu-item> -->
</el-menu>
</el-aside>
<el-container>

2
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) {

21
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
);
@ -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 () {
</div>
<div>
<el-table :data="tableData" :height="tableHeight" style="width: 100%">
<el-table-column type="index" label="序号" width="100px" fixed="left">
<el-table-column
type="index"
label="序号"
width="100px"
fixed="left"
>
<template #default="scope">
<span>{{ scope.$index + 1+(getObj.pageNum-1)*getObj.pageSize }}</span>
<span>{{
scope.$index + 1 + (getObj.pageNum - 1) * getObj.pageSize
}}</span>
</template>
</el-table-column>
<el-table-column prop="activityName" label="活动名称" />

14
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,
{}
);
//

219
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 () {
<div class="head-card">
<div class="head-card-element">
<el-text class="mx-1" size="large">精网号</el-text>
<el-input v-model="admin.jwcode" style="width: 240px" placeholder="请输入精网号" clearable />
<el-input
v-model="admin.jwcode"
style="width: 240px"
placeholder="请输入精网号"
clearable
/>
</div>
<div class="head-card-element" style="margin-left: 50px">
<el-text class="mx-1" size="large">所属地区</el-text>
<el-select v-model="admin.area" placeholder="请选择所属地区" style="width: 240px" clearable>
<el-option v-for="item in area" :key="item" :label="item" :value="item" />
<el-select
v-model="admin.area"
placeholder="请选择所属地区"
style="width: 240px"
clearable
>
<el-option
v-for="item in area"
:key="item"
:label="item"
:value="item"
/>
</el-select>
</div>
<div class="head-card-element" style="margin-left: 50px">
<el-text class="mx-1" size="large">所属部门</el-text>
<el-select v-model="admin.store" placeholder="请选择部门" style="width: 240px" clearable>
<el-option v-for="item in store" :key="item" :label="item" :value="item" />
<el-select
v-model="admin.store"
placeholder="请选择部门"
style="width: 240px"
clearable
>
<el-option
v-for="item in store"
:key="item"
:label="item"
:value="item"
/>
</el-select>
</div>
@ -225,11 +256,24 @@ onMounted(async function () {
<el-card>
<!-- 添加 -->
<div class="add-item">
<el-button style="color: #048efb; border: 1px solid #048efb" @click="permissionAddInit()">新增用户权限</el-button>
<el-button
style="color: #048efb; border: 1px solid #048efb"
@click="permissionAddInit()"
>新增用户权限</el-button
>
</div>
<div>
<el-table :data="tableData" :height="tableHeight" style="width: 100%; text-align: center;">
<el-table-column type="index" label="序号" width="100px" fixed="left">
<el-table
:data="tableData"
:height="tableHeight"
style="width: 100%; text-align: center"
>
<el-table-column
type="index"
label="序号"
width="100px"
fixed="left"
>
<template #default="scope">
<span>{{
scope.$index + 1 + (getObj.pageNum - 1) * getObj.pageSize
@ -243,23 +287,24 @@ onMounted(async function () {
<el-table-column prop="store" label="所属部门" />
<el-table-column prop="permission" label="部门权限">
<template #default="scope">
<span v-if="scope.row.permission === '1'">
总部管理员
</span>
<span v-if="scope.row.permission === '2'">
分部管理员
</span>
<span v-if="scope.row.permission === '3'">
分部审核员
</span>
<span v-if="scope.row.permission === '1'"> 总部管理员 </span>
<span v-if="scope.row.permission === '2'"> 分部管理员 </span>
<span v-if="scope.row.permission === '3'"> 分部审核员 </span>
</template>
</el-table-column>
<el-table-column fixed="right" prop="operation" label="操作">
<template #default="scope">
<el-button type="warning" text @click="permissionEditInit(scope.row)">
<el-button
type="warning"
text
@click="permissionEditInit(scope.row)"
>
修改权限
</el-button>
<el-popconfirm title="确定将此条活动删除吗?" @confirm="delConfirm">
<el-popconfirm
title="确定将此条活动删除吗?"
@confirm="delConfirm"
>
<template #reference>
<el-button type="danger" text @click="del(scope.row)">
删除
@ -279,17 +324,42 @@ onMounted(async function () {
<!-- 分页 -->
<div class="pagination" style="margin-top: 20px">
<el-pagination background :page-size="getObj.pageSize" layout="slot" :total="total">
<el-pagination
background
:page-size="getObj.pageSize"
layout="slot"
:total="total"
>
<div>{{ total }},每页</div>
<el-select v-model="getObj.pageSize" class="page-size" @change="get()" style="width: 80px">
<el-option v-for="item in [5, 10, 20, 50, 100]" :key="item" :label="item" :value="item"></el-option>
<el-select
v-model="getObj.pageSize"
class="page-size"
@change="get()"
style="width: 80px"
>
<el-option
v-for="item in [5, 10, 20, 50, 100]"
:key="item"
:label="item"
:value="item"
></el-option>
</el-select>
<div></div>
</el-pagination>
<el-pagination background layout="prev, pager, next,slot" :page-size="getObj.pageSize" :total="total"
:current-page="getObj.pageNum" @current-change="get">
<el-pagination
background
layout="prev, pager, next,slot"
:page-size="getObj.pageSize"
:total="total"
:current-page="getObj.pageNum"
@current-change="get"
>
<div>跳至</div>
<el-input v-model="getObj.pageNum" style="width: 40px" @change="checkNumber" />
<el-input
v-model="getObj.pageNum"
style="width: 40px"
@change="checkNumber"
/>
<div></div>
</el-pagination>
</div>
@ -298,16 +368,32 @@ onMounted(async function () {
</el-row>
<!-- 这是新增用户权限弹窗 -->
<el-dialog v-model="permissionAddVisible" title="新增用户权限" width="800px" :close-on-click-modal="false">
<div style="display: flex; margin: 20px 0px 20px 0px;">
<span class="permissionVisible" style="margin-right: 10px;">精网号:</span>
<el-input placeholder="请输入精网号" v-model="permissionAddObj.jwcode" style="width: 240px; margin-right: 10px;"
clearable></el-input>
<el-button type="primary" @click="getAdminByJwcodeWithoutPermission()">查询</el-button>
<el-dialog
v-model="permissionAddVisible"
title="新增用户权限"
width="800px"
:close-on-click-modal="false"
>
<div style="display: flex; margin: 20px 0px 20px 0px">
<span class="permissionVisible" style="margin-right: 10px">精网号:</span>
<el-input
placeholder="请输入精网号"
v-model="permissionAddObj.jwcode"
style="width: 240px; margin-right: 10px"
clearable
></el-input>
<el-button type="primary" @click="getAdminByJwcodeWithoutPermission()"
>查询</el-button
>
</div>
<el-descriptions class="margin-top" :column="2" :size="size" border label-width="200px">
<el-descriptions
class="margin-top"
:column="2"
:size="size"
border
label-width="200px"
>
<el-descriptions-item>
<template #label>
<div class="permissionVisible">
@ -358,7 +444,9 @@ onMounted(async function () {
<el-icon><star-filled /></el-icon>
</el-divider>
<div>
<span class="permissionVisible" style="margin-right: 20px;">权限设置:</span>
<span class="permissionVisible" style="margin-right: 20px"
>权限设置:</span
>
<el-radio-group v-model="permissionAddObj.permission">
<el-radio value="1" border>总部管理员</el-radio>
<el-radio value="2" border>分部管理员</el-radio>
@ -370,13 +458,23 @@ onMounted(async function () {
<el-button @click="closePermissionAddVisible()">取消</el-button>
<el-button type="primary" @click="permissionAdd()"> 提交 </el-button>
</div>
</template>
</el-dialog>
<!-- 这是编辑用户权限弹窗 -->
<el-dialog v-model="permissionEditVisible" title="编辑用户权限" width="800px" :close-on-click-modal="false">
<el-descriptions class="margin-top" :column="2" :size="size" border label-width="200px">
<el-dialog
v-model="permissionEditVisible"
title="编辑用户权限"
width="800px"
:close-on-click-modal="false"
>
<el-descriptions
class="margin-top"
:column="2"
:size="size"
border
label-width="200px"
>
<el-descriptions-item>
<template #label>
<div class="permissionVisible">
@ -427,11 +525,13 @@ onMounted(async function () {
<el-icon><star-filled /></el-icon>
</el-divider>
<div>
<span class="permissionVisible" style="margin-right: 20px;">权限设置:</span>
<span class="permissionVisible" style="margin-right: 20px"
>权限设置:</span
>
<el-radio-group v-model="permissionEditObj.permission">
<el-radio value=1 border>总部管理员</el-radio>
<el-radio value=2 border>分部管理员</el-radio>
<el-radio value=3 border>分部审核员</el-radio>
<el-radio value="1" border>总部管理员</el-radio>
<el-radio value="2" border>分部管理员</el-radio>
<el-radio value="3" border>分部审核员</el-radio>
</el-radio-group>
</div>
<template #footer>
@ -439,7 +539,6 @@ onMounted(async function () {
<el-button @click="closePermissionEditVisible()">取消</el-button>
<el-button type="primary" @click="permissionEdit()"> 提交 </el-button>
</div>
</template>
</el-dialog>
</template>

58
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"
>
<el-upload
action="/hwjb/upload"
action="http://54.251.137.151:10702/upload"
class="avatar-uploader"
:show-file-list="false"
:on-success="handleAvatarSuccess"
@ -1267,7 +1285,7 @@ onMounted(async function () {
<el-table-column property="rechargeVoucher" label="充值凭证">
<template #default="scope">
<el-upload
action="/hwjb/upload"
action="http://54.251.137.151:10702/upload"
class="avatar-uploader"
:show-file-list="false"
:on-success="handleBatchAvatarSuccess"
@ -1432,7 +1450,7 @@ onMounted(async function () {
</el-form-item>
<el-form-item prop="rechargeVoucher" label="交款凭证">
<el-upload
action="/hwjb/upload"
action="http://54.251.137.151:10702/upload"
class="avatar-uploader"
:show-file-list="false"
:on-success="batchSettingHandleAvatarSuccess"

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

@ -11,7 +11,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;
@ -33,7 +33,7 @@ const rechargeVo = ref({
//
const getObj = ref({
pageNum: 1,
pageSize: 50,
pageSize: 10,
});
//
const total = ref(100);
@ -105,7 +105,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 } }
);
@ -233,7 +233,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",
{}
);
@ -253,7 +253,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",
{}
);
//
@ -277,7 +277,7 @@ const delConfirm = async function () {
try {
console.log("delObj2", delObj.value);
const result = await API.post(
"/hwjb/recharge/recharge/edit",
"http://54.251.137.151:10702/recharge/recharge/edit",
delObj.value
);
console.log("删除成功", result);

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

@ -15,7 +15,7 @@ const rechargeVo = ref({});
//
const getObj = ref({
pageNum: 1,
pageSize: 50,
pageSize: 10,
});
//
const total = ref(100);
@ -86,7 +86,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 } }
);
@ -214,7 +214,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",
{}
);
@ -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",
{}
);
//

16
gold-system/src/views/refund/addRefund.vue

@ -16,7 +16,10 @@ const addRe = 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;
addRefund.value.adminId = adminData.value.adminId;
console.log("请求成功", result);
@ -52,7 +55,10 @@ const cancel = function () {
const add = async function () {
try {
// POST
const result = await API.post("/hwjb/refund/add", addRefund.value);
const result = await API.post(
"http://54.251.137.151:10702/refund/add",
addRefund.value
);
if (result.code === 0) {
ElMessage.error(result.msg);
return;
@ -137,7 +143,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,
});
@ -197,7 +203,7 @@ const getGoods = async function (jwcode) {
try {
// POST
const result = await API.post(
"hwjb/consume/getDeatil/" + addRefund.value.jwcode,
"http://54.251.137.151:10702/consume/getDeatil/" + addRefund.value.jwcode,
{}
);
if (result.code === 0) {
@ -240,7 +246,7 @@ const getProductByOrderCode = async function (item) {
try {
// POST
const result = await API.post(
"/hwjb/refund/searchByOrderCode?orderCode=" + item,
"http://54.251.137.151:10702/refund/searchByOrderCode?orderCode=" + item,
{}
);
addRefund.value.contactId = result.data.detailyId;

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

@ -15,7 +15,7 @@ const detail = ref({});
//
const getObj = ref({
pageNum: 1,
pageSize: 50,
pageSize: 10,
});
//
const total = ref(100);
@ -67,7 +67,7 @@ const get = async function (val) {
}
console.log("搜索参数", getObj.value);
// POST
const result = await API.post("/hwjb/refund/search", {
const result = await API.post("http://54.251.137.151:10702/refund/search", {
...getObj.value,
detail: { ...detail.value },
});
@ -196,7 +196,10 @@ const handleClick = function (tab, event) {
const getArea = async function () {
try {
// POST
const result = await API.post("/hwjb/recharge/user/search", {});
const result = await API.post(
"http://54.251.137.151:10702/recharge/user/search",
{}
);
//
console.log("请求成功", result);
//
@ -224,7 +227,8 @@ const delConfirm = async function () {
console.log("delObj", delObj.value);
// POST
const result = await API.post(
"/hwjb/refund/softDelete?detailId=" + delObj.value.detailId,
"http://54.251.137.151:10702/refund/softDelete?detailId=" +
delObj.value.detailId,
{}
);
//
@ -242,7 +246,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);
//

14
gold-system/src/views/usergold/index.vue

@ -28,7 +28,7 @@ const getAllObj = ref({});
//
const getObj = ref({
pageNum: 1,
pageSize: 50,
pageSize: 10,
});
//excel
const getPutEX = ref(false);
@ -48,9 +48,9 @@ const updateType = [
label: "退款",
},
{
value:"3",
label:"其他"
}
value: "3",
label: "其他",
},
];
// //
@ -79,11 +79,11 @@ const get = async function (val) {
}
console.log("搜索参数", getObj.value);
// POST
const result = await API.post("/hwjb/detailY", {
const result = await API.post("http://54.251.137.151:10702/detailY", {
...getObj.value,
detailY: { ...detailY.value },
});
const result2 = await API.post("/hwjb/detailY", {
const result2 = await API.post("http://54.251.137.151:10702/detailY", {
...getAllObj.value,
detailY: { ...detailY.value },
});
@ -273,7 +273,7 @@ const areyour = async function () {
try {
loading.value = true;
const result = await API.post(
"/hwjb/detailY/searchAll",
"http://54.251.137.151:10702/detailY/searchAll",
{ ...putExcel.value }
);
excelInfo.value = result.data;

15
gold-system/src/views/usergoldInfo/index.vue

@ -27,7 +27,7 @@ const getAllObj = ref({});
//
const getObj = ref({
pageNum: 1,
pageSize: 50,
pageSize: 10,
});
//
@ -72,11 +72,14 @@ const get = async function (val) {
}
console.log("搜索参数", getObj.value);
// POST
const result = await API.post("/hwjb/detailY/select", {
...getObj.value,
detailYgold: { ...detailY.value },
});
// const result2 = await API.post("/hwjb/detailY/select", {
const result = await API.post(
"http://54.251.137.151:10702/detailY/select",
{
...getObj.value,
detailYgold: { ...detailY.value },
}
);
// const result2 = await API.post("http://54.251.137.151:10702/detailY/select", {
// ...getAllObj.value,
// detailY: { ...detailY.value },
// });

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

@ -89,28 +89,43 @@ const get = async function () {
getAreaRank();
getMiddleBar();
// POST
const result1 = await API.post("/hwjb/statistics/getSumCoin", {});
const result2 = await API.post("/hwjb/statistics/a", {});
const result3 = await API.post("/hwjb/statistics/getYearConsumeCoin", {});
const result4 = await API.post("/hwjb/statistics/getDayConsumeCoin", {});
const result1 = await API.post(
"http://54.251.137.151:10702/statistics/getSumCoin",
{}
);
const result2 = await API.post(
"http://54.251.137.151:10702/statistics/a",
{}
);
const result3 = await API.post(
"http://54.251.137.151:10702/statistics/getYearConsumeCoin",
{}
);
const result4 = await API.post(
"http://54.251.137.151:10702/statistics/getDayConsumeCoin",
{}
);
// const result5 = await API.post(
// "/hwjb/statistics/getMediumAreaPay",
// "http://54.251.137.151:10702/statistics/getMediumAreaPay",
// {}
// );
// const result6 = await API.post(
// "/hwjb/statistics/getMediumAreaConsume",
// "http://54.251.137.151:10702/statistics/getMediumAreaConsume",
// {}
// );
// const result7 = await API.post(
// "/hwjb/statistics/getMediuPayCoin",
// "http://54.251.137.151:10702/statistics/getMediuPayCoin",
// {}
// );
// const result8 = await API.post(
// "/hwjb/statistics/getMediuConsumeCoin",
// "http://54.251.137.151:10702/statistics/getMediuConsumeCoin",
// {}
// );
const result9 = await API.post("/hwjb/statistics/b", {});
const result9 = await API.post(
"http://54.251.137.151:10702/statistics/b",
{}
);
//
getSumCoin.value = result1.data;
@ -353,7 +368,7 @@ const get = async function () {
//
const getMiddleBar = async function () {
const result = await API.post(
"hwjb/statistics/getCoinTime",
"http://54.251.137.151:10702/statistics/getCoinTime",
getMiddleBarObj.value
);
@ -555,7 +570,7 @@ const getMiddleBar = async function () {
//
const getAreaRank = async function () {
const result = await API.post(
"/hwjb/statistics/getMee",
"http://54.251.137.151:10702/statistics/getMee",
getAreaRankObj.value
);

2
gold-system/vite.config.ts

@ -26,5 +26,5 @@ export default defineConfig({
},
},
},
base: process.env.NODE_ENV === "production" ? "/jtzy/Product/other/test/hwjb/" : "/",
base: process.env.NODE_ENV === "production" ? "/jtzy/Product/crm/hwjb2.0/" : "/",
})
Loading…
Cancel
Save