Browse Source

123456

Hongxilin
donghaolin 5 months ago
parent
commit
492675d541
  1. 13
      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

13
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) { const getEditData = async function (row) {
try { try {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://192.168.8.93:10010/rates/search", {
const result = await API.post(
"http://192.168.8.93:10010/rates/searchById",
{
rate: { rateId: row.rateId }, rate: { rateId: row.rateId },
});
}
);
// //
console.log("请求成功", result); console.log("请求成功", result);
// //
rateEdit.value = result.data[0]; rateEdit.value = result.data[0];
console.log("这是编辑的数值", rateEdit.value);
} catch (error) { } catch (error) {
console.log("请求失败", error); console.log("请求失败", error);
// //

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

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

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

@ -102,11 +102,11 @@ const get = async function () {
{} {}
); );
// const result5 = await API.post( // 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( // 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 getMiddleBar = async function () {
const result = await API.post( const result = await API.post(
"http://192.168.8.147:10010/statistics/getCoinTime",
"http://192.168.8.93:10010/statistics/getCoinTime",
getMiddleBarObj.value getMiddleBarObj.value
); );
@ -555,7 +555,7 @@ const getMiddleBar = async function () {
// //
const getAreaRank = async function () { const getAreaRank = async function () {
const result = await API.post( const result = await API.post(
"http://192.168.8.147:10010/statistics/getMee",
"http://192.168.8.93:10010/statistics/getMee",
getAreaRankObj.value getAreaRankObj.value
); );

Loading…
Cancel
Save