Browse Source

这是修改接口的提交

Hongxilin
donghaolin 7 months ago
parent
commit
40a0f0809c
  1. 4
      vue/gold-system/src/views/audit/rechargeAudit.vue
  2. 8
      vue/gold-system/src/views/audit/refundAudit.vue
  3. 11
      vue/gold-system/src/views/consume/addConsume.vue
  4. 4
      vue/gold-system/src/views/consume/allConsume.vue
  5. 2
      vue/gold-system/src/views/index.vue
  6. 2
      vue/gold-system/src/views/login.vue
  7. 2
      vue/gold-system/src/views/managerecharge/activity.vue
  8. 2
      vue/gold-system/src/views/managerecharge/rate.vue
  9. 6
      vue/gold-system/src/views/recharge/addRecharge.vue
  10. 9
      vue/gold-system/src/views/refund/addRefund.vue
  11. 6
      vue/gold-system/src/views/refund/allRefund.vue
  12. 73
      vue/gold-system/src/views/usergold/index.vue
  13. 18
      vue/gold-system/src/views/workspace/index.vue

4
vue/gold-system/src/views/audit/rechargeAudit.vue

@ -290,7 +290,7 @@ const passConfirm = async function () {
console.log("通过对象", passObj.value); console.log("通过对象", passObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10030/audit/audit/edit",
"http://192.168.8.93:10010/audit/audit/edit",
passObj.value passObj.value
); );
@ -335,7 +335,7 @@ const rejectConfirm = async function () {
console.log("驳回对象", rejectObj.value); console.log("驳回对象", rejectObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10030/audit/audit/edit",
"http://192.168.8.93:10010/audit/audit/edit",
rejectObj.value rejectObj.value
); );

8
vue/gold-system/src/views/audit/refundAudit.vue

@ -88,7 +88,7 @@ const get = async function (val) {
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10030/audit/audit/refund",
"http://192.168.8.93:10010/audit/audit/refund",
{ ...getObj.value, consumeDetail: { ...consumeDetail.value } } { ...getObj.value, consumeDetail: { ...consumeDetail.value } }
); );
@ -198,7 +198,7 @@ const handleClick = function (tab, event) {
const getProduct = async function () { const getProduct = async function () {
try { try {
// POST // POST
const result = await API.post("http://192.168.8.93:10020/product", {});
const result = await API.post("http://192.168.8.93:10010/product", {});
// //
console.log("请求成功", result); console.log("请求成功", result);
@ -275,7 +275,7 @@ const passConfirm = async function () {
console.log("通过对象", passObj.value); console.log("通过对象", passObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10030/audit/audit/edit",
"http://192.168.8.93:10010/audit/audit/edit",
passObj.value passObj.value
); );
@ -320,7 +320,7 @@ const rejectConfirm = async function () {
console.log("驳回对象", rejectObj.value); console.log("驳回对象", rejectObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10030/audit/audit/edit",
"http://192.168.8.93:10010/audit/audit/edit",
rejectObj.value rejectObj.value
); );

11
vue/gold-system/src/views/consume/addConsume.vue

@ -13,7 +13,7 @@ const adminData = ref({});
const getAdminData = async function () { const getAdminData = async function () {
try { try {
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10070/admin/userinfo",
"http://192.168.8.93:10010/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -38,7 +38,7 @@ const add = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10030/consume/add",
"http://192.168.8.93:10010/consume/add",
addConsume.value addConsume.value
); );
@ -51,6 +51,7 @@ const add = async function () {
addConsume.value.rechargeCoin = 0; addConsume.value.rechargeCoin = 0;
addConsume.value.taskCoin = 0; addConsume.value.taskCoin = 0;
console.log("请求成功", result); console.log("请求成功", result);
getUser();
} catch (error) { } catch (error) {
console.log("请求失败", error); console.log("请求失败", error);
// //
@ -121,7 +122,7 @@ const user = ref({});
const getUser = async function (jwcode) { const getUser = async function (jwcode) {
try { try {
// POST // POST
const result = await API.post("http://192.168.8.93:10020/recharge/user", {
const result = await API.post("http://192.168.8.93:10010/recharge/user", {
jwcode: jwcode, jwcode: jwcode,
}); });
@ -150,7 +151,7 @@ const goods = ref([]);
const getGoods = async function () { const getGoods = async function () {
try { try {
// POST // POST
const result = await API.post("http://192.168.8.93:10020/product", {});
const result = await API.post("http://192.168.8.93:10010/product", {});
// //
console.log("请求成功", result); console.log("请求成功", result);
// //
@ -169,7 +170,7 @@ const userGold = ref({});
const getUserGold = async function (jwcode) { const getUserGold = async function (jwcode) {
try { try {
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10070/statistics/getMess/" + jwcode
"http://192.168.8.93:10010/statistics/getMess/" + jwcode
); );
console.log("请求成功", result); console.log("请求成功", result);
// //

4
vue/gold-system/src/views/consume/allConsume.vue

@ -80,7 +80,7 @@ const get = async function (val) {
} }
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://192.168.8.93:10050/consume/select", {
const result = await API.post("http://192.168.8.93:10010/consume/select", {
...getObj.value, ...getObj.value,
detailVo: { ...detailVo.value }, detailVo: { ...detailVo.value },
}); });
@ -210,7 +210,7 @@ const goods = ref([]);
const getGoods = async function () { const getGoods = async function () {
try { try {
// POST // POST
const result = await API.post("http://192.168.8.93:10020/product", {});
const result = await API.post("http://192.168.8.93:10010/product", {});
// //
console.log("请求成功", result); console.log("请求成功", result);
// //

2
vue/gold-system/src/views/index.vue

@ -15,7 +15,7 @@ const adminData = ref({
const getAdminData = async function () { const getAdminData = async function () {
try { try {
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10070/admin/userinfo",
"http://192.168.8.93:10010/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;

2
vue/gold-system/src/views/login.vue

@ -11,7 +11,7 @@ const form = ref({ name: "", password: "" });
const login = async function () { const login = async function () {
try { try {
const result = await axios.post( const result = await axios.post(
"http://192.168.8.93:10070/admin/login",
"http://192.168.8.93:10010/admin/login",
form.value form.value
); );
if (result.data.code == 200) { if (result.data.code == 200) {

2
vue/gold-system/src/views/managerecharge/activity.vue

@ -11,7 +11,7 @@ const adminData = ref({});
const getAdminData = async function () { const getAdminData = async function () {
try { try {
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10070/admin/userinfo",
"http://192.168.8.93:10010/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;

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

@ -13,7 +13,7 @@ const adminData = ref({
const getAdminData = async function () { const getAdminData = async function () {
try { try {
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10070/admin/userinfo",
"http://192.168.8.93:10010/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;

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

@ -12,7 +12,7 @@ const adminData = ref({});
const getAdminData = async function () { const getAdminData = async function () {
try { try {
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10070/admin/userinfo",
"http://192.168.8.93:10010/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -61,7 +61,7 @@ const add = async function () {
rechargeGold: 1, rechargeGold: 1,
paidGold: "", paidGold: "",
}; };
getUser();
// addRecharge.value.adminId = adminData.value.adminId; // addRecharge.value.adminId = adminData.value.adminId;
// addRecharge.value.area = adminData.value.area; // addRecharge.value.area = adminData.value.area;
// addRecharge.value.rechargeVoucher = ""; // addRecharge.value.rechargeVoucher = "";
@ -128,7 +128,7 @@ const user = ref({
const getUser = async function (jwcode) { const getUser = async function (jwcode) {
try { try {
// POST // POST
const result = await API.post("http://192.168.8.93:10020/recharge/user", {
const result = await API.post("http://192.168.8.93:10010/recharge/user", {
jwcode: jwcode, jwcode: jwcode,
}); });

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

@ -13,7 +13,7 @@ const adminData = ref({});
const getAdminData = async function () { const getAdminData = async function () {
try { try {
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10070/admin/userinfo",
"http://192.168.8.93:10010/admin/userinfo",
{} {}
); );
adminData.value = result; adminData.value = result;
@ -51,7 +51,7 @@ const add = async function () {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.174:10040/refund/add",
"http://192.168.8.93:10010/refund/add",
addRefund.value addRefund.value
); );
if (result.code === 0) { if (result.code === 0) {
@ -70,6 +70,7 @@ const add = async function () {
addRefund.value.freeCoin = 0; addRefund.value.freeCoin = 0;
addRefund.value.rechargeCoin = 0; addRefund.value.rechargeCoin = 0;
addRefund.value.taskCoin = 0; addRefund.value.taskCoin = 0;
getUser();
} catch (error) { } catch (error) {
console.log("请求失败", error); console.log("请求失败", error);
// //
@ -137,7 +138,7 @@ const user = ref({});
const getUser = async function (jwcode) { const getUser = async function (jwcode) {
try { try {
// POST // POST
const result = await API.post("http://192.168.8.93:10020/recharge/user", {
const result = await API.post("http://192.168.8.93:10010/recharge/user", {
jwcode: jwcode, jwcode: jwcode,
}); });
@ -196,7 +197,7 @@ const getGoods = async function (jwcode) {
try { try {
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.147:10030/consume/getDeatil/" + addRefund.value.jwcode
"http://192.168.8.93:10010/consume/getDeatil/" + addRefund.value.jwcode
); );
// //

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

@ -68,7 +68,7 @@ const get = async function (val) {
} }
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://192.168.8.93:10060/refund/search", {
const result = await API.post("http://192.168.8.93:10010/refund/search", {
...getObj.value, ...getObj.value,
detail: { ...detail.value }, detail: { ...detail.value },
}); });
@ -241,7 +241,7 @@ const delConfirm = async function () {
console.log("delObj", delObj.value); console.log("delObj", delObj.value);
// POST // POST
const result = await API.post( const result = await API.post(
"http://192.168.8.93:10060/refund/softDelete?detailId=" +
"http://192.168.8.93:10010/refund/softDelete?detailId=" +
delObj.value.detailId delObj.value.detailId
); );
// //
@ -259,7 +259,7 @@ const goods = ref([]);
const getGoods = async function () { const getGoods = async function () {
try { try {
// POST // POST
const result = await API.post("http://192.168.8.93:10020/product", {});
const result = await API.post("http://192.168.8.93:10010/product", {});
// //
console.log("请求成功", result); console.log("请求成功", result);
// //

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

@ -70,11 +70,11 @@ const get = async function (val) {
} }
console.log("搜索参数", getObj.value); console.log("搜索参数", getObj.value);
// POST // POST
const result = await API.post("http://192.168.8.93:10040/detail", {
const result = await API.post("http://192.168.8.93:10010/detail", {
...getObj.value, ...getObj.value,
detail: { ...detail.value }, detail: { ...detail.value },
}); });
const result2 = await API.post("http://192.168.8.93:10040/detail", {
const result2 = await API.post("http://192.168.8.93:10010/detail", {
...getAllObj.value, ...getAllObj.value,
detail: { ...detail.value }, detail: { ...detail.value },
}); });
@ -175,7 +175,6 @@ const get7Days = function () {
get(); get();
}; };
// //
const checkNumber = function () { const checkNumber = function () {
if (typeof parseInt(getObj.value.pageNum) === "number") { if (typeof parseInt(getObj.value.pageNum) === "number") {
@ -217,18 +216,39 @@ onMounted(async function () {
<div class="head-card"> <div class="head-card">
<div class="head-card-element"> <div class="head-card-element">
<el-text class="mx-1" size="large">精网号</el-text> <el-text class="mx-1" size="large">精网号</el-text>
<el-input v-model="detail.jwcode" style="width: 240px" placeholder="请输入精网号" clearable />
<el-input
v-model="detail.jwcode"
style="width: 240px"
placeholder="请输入精网号"
clearable
/>
</div> </div>
<div class="head-card-element"> <div class="head-card-element">
<el-text class="mx-1" size="large">更新类型</el-text> <el-text class="mx-1" size="large">更新类型</el-text>
<el-select v-model="detail.updateType" placeholder="请选择更新类型" size="large" style="width: 240px" clearable>
<el-option v-for="item in updateType" :key="item.value" :label="item.label" :value="item.value" />
<el-select
v-model="detail.updateType"
placeholder="请选择更新类型"
size="large"
style="width: 240px"
clearable
>
<el-option
v-for="item in updateType"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select> </el-select>
</div> </div>
<div class="head-card-element"> <div class="head-card-element">
<el-text class="mx-1" size="large">更新时间</el-text> <el-text class="mx-1" size="large">更新时间</el-text>
<el-date-picker v-model="getTime" type="daterange" range-separator="" start-placeholder="起始时间"
end-placeholder="结束时间" />
<el-date-picker
v-model="getTime"
type="daterange"
range-separator="至"
start-placeholder="起始时间"
end-placeholder="结束时间"
/>
</div> </div>
<div class="head-card-btn"> <div class="head-card-btn">
<el-button @click="reset()">重置</el-button> <el-button @click="reset()">重置</el-button>
@ -272,17 +292,42 @@ onMounted(async function () {
<!-- 分页 --> <!-- 分页 -->
<!-- 分页 --> <!-- 分页 -->
<div class="pagination"> <div class="pagination">
<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> <div>{{ total }},每页</div>
<el-select v-model="getObj.pageSize" class="page-size" @change="get()" style="width: 80px">
<el-option v-for="item in [5, 6, 7, 8, 9, 10]" :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, 6, 7, 8, 9, 10]"
:key="item"
:label="item"
:value="item"
></el-option>
</el-select> </el-select>
<div></div> <div></div>
</el-pagination> </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> <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> <div></div>
</el-pagination> </el-pagination>
</div> </div>

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

@ -97,15 +97,15 @@ const list = ref([]);
const get = async function () { const get = async function () {
try { try {
// POST // POST
const result1 = await API.post('http://192.168.8.93:10040/statistics/getSumCoin');
const result2 = await API.post('http://192.168.8.93:10040/statistics/a');
const result3 = await API.post('http://192.168.8.93:10040/statistics/getYearConsumeCoin');
const result4 = await API.post('http://192.168.8.93:10040/statistics/getDayConsumeCoin');
const result5 = await API.post('http://192.168.8.93:10040/statistics/getMediumAreaPay');
const result6 = await API.post('http://192.168.8.93:10040/statistics/getMediumAreaConsume');
const result7 = await API.post('http://192.168.8.93:10040/statistics/getMediuPayCoin');
const result8 = await API.post('http://192.168.8.93:10040/statistics/getMediuConsumeCoin');
const result9 = await API.post('http://192.168.8.93:10040/statistics/b');
const result1 = await API.post('http://192.168.8.93:10010/statistics/getSumCoin');
const result2 = await API.post('http://192.168.8.93:10010/statistics/a');
const result3 = await API.post('http://192.168.8.93:10010/statistics/getYearConsumeCoin');
const result4 = await API.post('http://192.168.8.93:10010/statistics/getDayConsumeCoin');
const result5 = await API.post('http://192.168.8.93:10010/statistics/getMediumAreaPay');
const result6 = await API.post('http://192.168.8.93:10010/statistics/getMediumAreaConsume');
const result7 = await API.post('http://192.168.8.93:10010/statistics/getMediuPayCoin');
const result8 = await API.post('http://192.168.8.93:10010/statistics/getMediuConsumeCoin');
const result9 = await API.post('http://192.168.8.93:10010/statistics/b');
// //
getSumCoin.value = result1.data; getSumCoin.value = result1.data;

Loading…
Cancel
Save