diff --git a/.env.development b/.env.development index 5f7a26e..6e0da17 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ ENV = 'development' # 共享空间/开发环境 # VUE_APP_BASE_API = 'https://testcha.chuangtewl.com/prod-api' -VUE_APP_BASE_API = 'http://192.168.2.63:8089' +VUE_APP_BASE_API = 'http://192.168.2.43:8089' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/views/system/rule/index.vue b/src/views/system/rule/index.vue index f98a348..dcfcab7 100644 --- a/src/views/system/rule/index.vue +++ b/src/views/system/rule/index.vue @@ -205,7 +205,7 @@ export default { name: "Rule", mixins: [$showColumns], dicts: ['ss_fee_rule_mode'], - props: ['userId', 'roomId'], + props: ['merchantId', 'roomId'], data() { return { // 字段列表 @@ -275,7 +275,7 @@ export default { }; }, created() { - + if(this.roomId && this.roomId != 0){ this.queryParams.roomId = this.roomId; this.queryParams.type2 = null; @@ -290,18 +290,18 @@ export default { pageSize: 999, userType: '01' } - if(this.userId) { - params.userId = this.userId + if(this.merchantId) { + params.merchantId = this.merchantId } listUser(params).then(response => { this.merchantOptions = response.rows; - if(this.userId) { - // 在merchantOptions中查找匹配userId的商户 + if(this.merchantId) { + // 在merchantOptions中查找匹配merchantId的商户 const merchant = this.merchantOptions.find(item => item.userId === this.userId); if(merchant) { this.queryParams.merchantId = merchant.userId; // 获取该商户的房间列表 - + this.getRoomList(merchant.userId); } } @@ -317,7 +317,7 @@ export default { } listRoom(params).then(response => { this.roomOptions = response.rows; - + }); }, // 商户选择改变时触发(搜索表单) @@ -345,8 +345,8 @@ export default { /** 查询收费模板列表 */ getList() { this.loading = true; - if(this.userId && this.userId != 0){ - this.queryParams.userId = this.userId; + if(this.merchantId && this.merchantId != 0){ + this.queryParams.merchantId = this.merchantId; } listRule(this.queryParams).then(response => { this.ruleList = response.rows; @@ -448,4 +448,4 @@ export default { } } }; - \ No newline at end of file + diff --git a/src/views/system/store/store_detail.vue b/src/views/system/store/store_detail.vue index 20c6a7e..6cbf149 100644 --- a/src/views/system/store/store_detail.vue +++ b/src/views/system/store/store_detail.vue @@ -18,8 +18,8 @@