Browse Source

change scene api

organize
刘嘉炜 3 years ago
parent
commit
2d42740e57
  1. 2
      src/js/api.js
  2. 6
      src/pages/collection/info/info.vue

2
src/js/api.js

@ -23,7 +23,7 @@ export const API = {
// 20220422 收款记录
consumeCountLs: `${ORIGIN}/admin/stadium/consumeCount/list`, // 收款记录
consumeCountDetailLs: `${ORIGIN}/admin/stadium/consumeCountDetail/list`, // 收款明细列表
consumeCountGetScene: `${ORIGIN}/config/get`, // 收款明细列表
consumeCountGetScene: `${ORIGIN}/consumeRecordScene/list`, // 收款明细列表
// reservationOrder: `${ORIGIN}/admin/stadium/order/list`, // 预约订单

6
src/pages/collection/info/info.vue

@ -153,6 +153,7 @@ export default {
async storeChange(e){
let { stadiumList } = this;
this.curStadium = stadiumList[e.detail.value] || {};
await this.getSceneList();
this.$nextTick(_=>this.refreshList());
},
getRecordLs({
@ -221,11 +222,12 @@ export default {
},
//
getSceneList(){
let { optionsQuery } = this;
let { optionsQuery, curStadium } = this;
return servers.get({
url: API.consumeCountGetScene,
data: {
key: 'consume_record_scene'
brand_id: optionsQuery.brand_id,
stadium_id: optionsQuery.stadium_id == 0 ? -1 : curStadium.id,
},
failMsg: '加载场景列表失败!',

Loading…
Cancel
Save