|
|
@ -18,7 +18,7 @@ const adminData = ref({}); |
|
|
|
const getAdminData = async function () { |
|
|
|
try { |
|
|
|
const result = await API.post( |
|
|
|
"http://192.168.8.93:10010/admin/userinfo", |
|
|
|
"/hwjb/admin/userinfo", |
|
|
|
{} |
|
|
|
); |
|
|
|
adminData.value = result; |
|
|
@ -48,7 +48,7 @@ const add = async function () { |
|
|
|
console.log("开始添加充值信息", addRecharge.value); |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post( |
|
|
|
"http://192.168.8.93:10010/recharge/recharge/add", |
|
|
|
"/hwjb/recharge/recharge/add", |
|
|
|
addRecharge.value |
|
|
|
); |
|
|
|
if (result.code === 0) { |
|
|
@ -130,7 +130,7 @@ const user = ref({ |
|
|
|
const getUser = async function (jwcode) { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post("http://192.168.8.93:10010/recharge/user", { |
|
|
|
const result = await API.post("/hwjb/recharge/user", { |
|
|
|
jwcode: jwcode, |
|
|
|
}); |
|
|
|
|
|
|
@ -161,7 +161,7 @@ const getActivity = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post( |
|
|
|
"http://192.168.8.93:10010/recharge/activity/select", |
|
|
|
"/hwjb/recharge/activity/select", |
|
|
|
{ activity: { status: 1 } } |
|
|
|
); |
|
|
|
|
|
|
@ -182,7 +182,7 @@ const currency = ref([]); |
|
|
|
const getCurrency = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post("http://192.168.8.93:10010/rates/status", {}); |
|
|
|
const result = await API.post("/hwjb/rates/status", {}); |
|
|
|
|
|
|
|
// 将响应结果存储到响应式数据中 |
|
|
|
console.log("货币请求成功", result); |
|
|
@ -201,7 +201,7 @@ getCurrency(); |
|
|
|
const handleAvatarSuccess = (response, uploadFile) => { |
|
|
|
imageUrl.value = URL.createObjectURL(uploadFile.raw); |
|
|
|
console.log("图片上传成功", response, uploadFile); |
|
|
|
addRecharge.value.rechargeVoucher = `http://192.168.8.93:10010/upload/${response.data}`; |
|
|
|
addRecharge.value.rechargeVoucher = `/hwjb/upload/${response.data}`; |
|
|
|
console.log("图片名称", addRecharge.value.rechargeVoucher); |
|
|
|
}; |
|
|
|
|
|
|
@ -238,7 +238,7 @@ const getActivityById = async function (row) { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post( |
|
|
|
"http://192.168.8.93:10010/recharge/activity/select", |
|
|
|
"/hwjb/recharge/activity/select", |
|
|
|
{ activity: { activityId: row } } |
|
|
|
); |
|
|
|
addRecharge.value.rechargeRatio = result.data[0].rechargeRatio; |
|
|
@ -298,7 +298,7 @@ const getJwcodeList = async function () { |
|
|
|
try { |
|
|
|
// 发送POST请求 |
|
|
|
const result = await API.post( |
|
|
|
"http://192.168.8.93:10010/recharge/user/jwcode", |
|
|
|
"/hwjb/recharge/user/jwcode", |
|
|
|
{} |
|
|
|
); |
|
|
|
|
|
|
@ -336,7 +336,6 @@ const validateInput = function (row, index) { |
|
|
|
|
|
|
|
// 批量充值弹窗 |
|
|
|
const batchRechargeVisible = ref(false); |
|
|
|
const jwcodeSelectRef = ref(null); |
|
|
|
const i = ref(1); |
|
|
|
const delObj = ref({}); |
|
|
|
const batchDelObj = ref([]); |
|
|
@ -642,7 +641,7 @@ const changeVoucher = function (row) { |
|
|
|
const handleBatchAvatarSuccess = (response, uploadFile) => { |
|
|
|
imageUrl.value = URL.createObjectURL(uploadFile.raw); |
|
|
|
console.log("图片上传成功", response, uploadFile); |
|
|
|
rechargeVoucher.value = `http://192.168.8.93:10010/upload/${response.data}`; |
|
|
|
rechargeVoucher.value = `/hwjb/upload/${response.data}`; |
|
|
|
console.log("图片名称", rechargeVoucher.value); |
|
|
|
}; |
|
|
|
//批量充值确认按钮 |
|
|
@ -718,7 +717,7 @@ const batchAdd = async function () { |
|
|
|
console.log("batchData===", batchData.value); |
|
|
|
|
|
|
|
const result = await API.post( |
|
|
|
"http://192.168.8.93:10010/recharge/recharge/addmore", |
|
|
|
"/hwjb/recharge/recharge/addmore", |
|
|
|
{ ...batchData.value } |
|
|
|
); |
|
|
|
|
|
|
@ -765,7 +764,7 @@ const batchSettingInit = function () { |
|
|
|
const batchSettingHandleAvatarSuccess = (response, uploadFile) => { |
|
|
|
batchSettingObj.value.imageUrl = URL.createObjectURL(uploadFile.raw); |
|
|
|
console.log("图片上传成功", response, uploadFile); |
|
|
|
batchSettingObj.value.rechargeVoucher = `http://192.168.8.93:10010/upload/${response.data}`; |
|
|
|
batchSettingObj.value.rechargeVoucher = `/hwjb/upload/${response.data}`; |
|
|
|
console.log("图片名称", batchSettingObj.value.rechargeVoucher); |
|
|
|
}; |
|
|
|
// 批量设置取消按钮 |
|
|
@ -950,7 +949,7 @@ onMounted(async function () { |
|
|
|
style="margin-bottom: 5px" |
|
|
|
> |
|
|
|
<el-upload |
|
|
|
action="http://192.168.8.93:10010/upload" |
|
|
|
action="/hwjb/upload" |
|
|
|
class="avatar-uploader" |
|
|
|
:show-file-list="false" |
|
|
|
:on-success="handleAvatarSuccess" |
|
|
@ -1089,7 +1088,7 @@ onMounted(async function () { |
|
|
|
<!-- <el-button type="primary" @click="addLine()" style="margin-right: 10px">新增一行</el-button> --> |
|
|
|
<div style="font-weight: bold; font-size: 20px"> |
|
|
|
<span>添加</span> |
|
|
|
<el-input-number min="1" style="width: 100px;" controls-position="right" v-model="addLineObj"></el-input-number> |
|
|
|
<el-input-number :min=1 style="width: 100px;" controls-position="right" v-model="addLineObj"></el-input-number> |
|
|
|
<span>行</span> |
|
|
|
<el-button type="primary" @click="throttledAddLines" style="margin-right: 10px">添加</el-button> |
|
|
|
</div> |
|
|
@ -1128,7 +1127,7 @@ onMounted(async function () { |
|
|
|
</el-table-column> |
|
|
|
<el-table-column property="jwcode" label="精网号" width="150px"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-input v-if="scope.row.showInput" :class="{ 'is-invalid': scope.row.isInputInvalid }" |
|
|
|
<el-input clearable v-if="scope.row.showInput" :class="{ 'is-invalid': scope.row.isInputInvalid }" |
|
|
|
@blur="validateInput(scope.row)" v-model="scope.row.jwcode" style="width: 110px" /> |
|
|
|
<p v-if="scope.row.isInputInvalid" class="error-message">{{ |
|
|
|
scope.row.inputErrorMessage }}</p> |
|
|
@ -1251,7 +1250,7 @@ onMounted(async function () { |
|
|
|
<el-table-column property="rechargeVoucher" label="充值凭证"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-upload |
|
|
|
action="http://192.168.8.93:10010/upload" |
|
|
|
action="/hwjb/upload" |
|
|
|
class="avatar-uploader" |
|
|
|
:show-file-list="false" |
|
|
|
:on-success="handleBatchAvatarSuccess" |
|
|
@ -1413,7 +1412,7 @@ onMounted(async function () { |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="rechargeVoucher" label="交款凭证"> |
|
|
|
<el-upload |
|
|
|
action="http://192.168.8.93:10010/upload" |
|
|
|
action="/hwjb/upload" |
|
|
|
class="avatar-uploader" |
|
|
|
:show-file-list="false" |
|
|
|
:on-success="batchSettingHandleAvatarSuccess" |
|
|
|