Browse Source

123456

Hongxilin
donghaolin 5 months ago
parent
commit
492675d541
  1. 15
      vue/gold-system/src/views/managerecharge/rate.vue
  2. 10
      vue/gold-system/src/views/recharge/addRecharge.vue
  3. 8
      vue/gold-system/src/views/workspace/index.vue

15
vue/gold-system/src/views/managerecharge/rate.vue

@ -121,22 +121,25 @@ const add = () => {
};
//
const rateEdit = ref({
flag: 1,
});
const rateEdit = ref({});
//
const getEditData = async function (row) {
try {
console.log("搜索参数", getObj.value);
// POST
const result = await API.post("http://192.168.8.93:10010/rates/search", {
rate: { rateId: row.rateId },
});
const result = await API.post(
"http://192.168.8.93:10010/rates/searchById",
{
rate: { rateId: row.rateId },
}
);
//
console.log("请求成功", result);
//
rateEdit.value = result.data[0];
console.log("这是编辑的数值", rateEdit.value);
} catch (error) {
console.log("请求失败", error);
//

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

@ -645,7 +645,7 @@ const batchAdd = function () {
<template>
<div style="display: flex">
<div style="margin-right: 20px">新增充值</div>
<el-button type="primary" plain @click="batchInit()">批量充值</el-button>
<!-- <el-button type="primary" plain @click="batchInit()">批量充值</el-button> -->
</div>
<el-form
@ -864,7 +864,7 @@ const batchAdd = function () {
</el-form>
</el-card>
<el-dialog
<!-- <el-dialog
v-model="batchRechargeVisible"
title="批量充值"
width="1800px"
@ -1006,14 +1006,14 @@ const batchAdd = function () {
</el-table-column>
<el-table-column property="rechargeVoucher" label="充值凭证">
<span> X </span>
<!-- <template #default="scope">
<template #default="scope">
<el-upload class="avatar-uploader" :show-file-list="true" :on-success="handleAvatarSuccess"
:before-upload="beforeAvatarUpload" v-if="scope.row.showInput">
<img v-if="scope.row.imageUrl" :src="scope.row.imageUrl" class="avatar" />
<el-icon v-else class="avatar-uploader-icon"></el-icon>
</el-upload>
<span v-else>{{ scope.row.rechargeVoucher }}</span>
</template> -->
</template>
</el-table-column>
<el-table-column property="remark" label="备注" width="130px">
<template #default="scope">
@ -1081,7 +1081,7 @@ const batchAdd = function () {
<el-button type="primary" @click="batchAdd()"> 提交 </el-button>
</div>
</el-row>
</el-dialog>
</el-dialog> -->
</template>
<style scoped>

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

@ -102,11 +102,11 @@ const get = async function () {
{}
);
// const result5 = await API.post(
// "http://192.168.8.147:10010/statistics/getMediumAreaPay",
// "http://192.168.8.93:10010/statistics/getMediumAreaPay",
// {}
// );
// const result6 = await API.post(
// "http://192.168.8.147:10010/statistics/getMediumAreaConsume",
// "http://192.168.8.93:10010/statistics/getMediumAreaConsume",
// {}
// );
@ -364,7 +364,7 @@ const get = async function () {
//
const getMiddleBar = async function () {
const result = await API.post(
"http://192.168.8.147:10010/statistics/getCoinTime",
"http://192.168.8.93:10010/statistics/getCoinTime",
getMiddleBarObj.value
);
@ -555,7 +555,7 @@ const getMiddleBar = async function () {
//
const getAreaRank = async function () {
const result = await API.post(
"http://192.168.8.147:10010/statistics/getMee",
"http://192.168.8.93:10010/statistics/getMee",
getAreaRankObj.value
);

Loading…
Cancel
Save