From 173aab9aa4776debdc94fa9b78694269928821e5 Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Fri, 10 Jan 2025 22:07:59 +0800 Subject: [PATCH] 111 --- .env.development | 2 +- src/views/system/rule/index.vue | 22 +- src/views/system/store/store_detail.vue | 18 +- .../user/user/components/UserConfigDialog.vue | 326 ++++++++++++------ src/views/user/user/detail.vue | 12 +- src/views/user/user/index.vue | 14 +- 6 files changed, 254 insertions(+), 140 deletions(-) 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 @@
- @@ -275,7 +275,7 @@ export default { window.removeEventListener('resize', this.resizeChart); }, methods: { - + getStatusType(status) { const statusMap = { 0: 'info', @@ -473,11 +473,9 @@ export default { \ No newline at end of file + diff --git a/src/views/user/user/components/UserConfigDialog.vue b/src/views/user/user/components/UserConfigDialog.vue index 5aa998d..04373e4 100644 --- a/src/views/user/user/components/UserConfigDialog.vue +++ b/src/views/user/user/components/UserConfigDialog.vue @@ -1,50 +1,93 @@ + + diff --git a/src/views/user/user/detail.vue b/src/views/user/user/detail.vue index 49f34f8..b5e9afc 100644 --- a/src/views/user/user/detail.vue +++ b/src/views/user/user/detail.vue @@ -205,7 +205,7 @@ - + @@ -566,7 +566,7 @@ export default { } ] }; - + if (this.dailyChart) { this.dailyChart.setOption(option); } @@ -662,7 +662,7 @@ export default { } ] }; - + if (this.monthlyChart) { this.monthlyChart.setOption(option); } @@ -715,10 +715,6 @@ export default { flex: 1; } -.statistics-cards { - margin-bottom: 20px; -} - .stat-card { background: #fff; border-radius: 4px; @@ -851,4 +847,4 @@ export default { .mb-2 { margin-bottom: 1rem; } - \ No newline at end of file + diff --git a/src/views/user/user/index.vue b/src/views/user/user/index.vue index 6710f39..d4449de 100644 --- a/src/views/user/user/index.vue +++ b/src/views/user/user/index.vue @@ -98,15 +98,15 @@ {{ scope.row.withdrawAmount ? '¥' + scope.row.withdrawAmount : '¥0.00' }} - + - + @@ -134,7 +134,7 @@ type="text" icon="el-icon-view" @click="handleView(scope.row)" - v-hasPermi="['system:smUser:detail']" + v-hasPermi="['system:smUser:detail']" >详情 - +