Browse Source

11.28上传

Hongxilin
donghaolin 6 months ago
parent
commit
c9a38c21f9
  1. 16
      vue/gold-system/src/views/managerecharge/rate.vue
  2. 18
      vue/gold-system/src/views/recharge/addRecharge.vue

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

@ -1,15 +1,21 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
import { ElMessageBox } from 'element-plus' import { ElMessageBox } from 'element-plus'
import axios from 'axios'
const regeAdd = ref(false) const regeAdd = ref(false)
const regeEdit = ref(false) const regeEdit = ref(false)
const rateList = ref([]) const rateList = ref([])
// //
const handleSearch = () => {
//
rateList.value = tableData
}
async function handleSearch(){
const user = await axios({
URL: 'http://192.168.8.174:10200/search',
method: 'post',
data: {}
})
}
handleSearch();
const rateAdd = ref({}) const rateAdd = ref({})
// //
const add = () => { const add = () => {
@ -113,7 +119,7 @@
</div> </div>
<!-- 分页 --> <!-- 分页 -->
<div class="pagination" > <div class="pagination" >
<el-pagination background layout="prev, pager, next" :total="1000" />
<el-pagination background layout="prev, pager, next" :total="rateList.total" />
</div> </div>
</el-card> </el-card>

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

@ -10,22 +10,27 @@
// //
const addRecharge = ref({ homilyId:'1'});
const addRecharge = ref({ homilyId:'001'});
//
const user = ref({});
async function getUser(){ async function getUser(){
const user = await axios({
URL: 'http://192.168.8.93:10020/recharge/user',
const response = await axios({
url: 'http://192.168.8.93:10020/recharge/user',
method: 'post', method: 'post',
data: { homilyId: addRecharge.homilyId }
data: { homilyId: addRecharge.value.homilyId }
}) })
user.value = response.data;
} }
console.log(user.value)
</script> </script>
<template> <template>
<div> <div>
新增充值 新增充值
</div> </div>
<div>{{user.value}}</div>
<el-form :model="addRecharge" label-width="auto" style="max-width: 600px"> <el-form :model="addRecharge" label-width="auto" style="max-width: 600px">
<el-form-item label="精网号"> <el-form-item label="精网号">
<el-input v-model="addRecharge.homilyId" style="width: 220px;" /> <el-input v-model="addRecharge.homilyId" style="width: 220px;" />
@ -108,8 +113,9 @@ const user = await axios({
<el-row style="margin-top: 20px;"> <el-row style="margin-top: 20px;">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="姓名" > <el-form-item label="姓名" >
<p></p>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="历史金币总数" > <el-form-item label="历史金币总数" >

Loading…
Cancel
Save