From 7eff5872f6a8756829c4b6ae5ff4fa975df29860 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 27 Feb 2024 16:04:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=99=BA=E8=83=BD=E6=B2=BB=E7=90=86?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigScreen/enpComponents/smarg_trans.vue | 68 ++++++++++++++----- .../enpComponents/smartg_carwash.vue | 32 ++++++--- .../bigScreen/enpComponents/smartg_prod.vue | 68 ++++++++++++++----- 3 files changed, 126 insertions(+), 42 deletions(-) diff --git a/src/views/bigScreen/enpComponents/smarg_trans.vue b/src/views/bigScreen/enpComponents/smarg_trans.vue index be77b469..c80385f0 100644 --- a/src/views/bigScreen/enpComponents/smarg_trans.vue +++ b/src/views/bigScreen/enpComponents/smarg_trans.vue @@ -2,9 +2,9 @@
- - - 查询 + + +
@@ -32,27 +32,47 @@
- - - - + + + + + - + - - + - - @@ -62,7 +82,20 @@ export default { data() { return { apiObj: null, - params: {} + params: { type: 20, has_equipdata: 'yes', cate: 'mtrans' }, + query: {}, + mgroupOptions: [] + } + }, + mounted() { + this.apiObj = this.$API.enp.drain.list + this.getMgroup() + }, + methods: { + getMgroup() { + this.$API.mtm.mgroup.list.req({ page: 0 }).then(res => { + this.mgroupOptions = res + }) } } } @@ -111,4 +144,5 @@ export default { .grayb { background: #cbcbcb -} \ No newline at end of file +} + \ No newline at end of file diff --git a/src/views/bigScreen/enpComponents/smartg_carwash.vue b/src/views/bigScreen/enpComponents/smartg_carwash.vue index edbcbaea..85b3086f 100644 --- a/src/views/bigScreen/enpComponents/smartg_carwash.vue +++ b/src/views/bigScreen/enpComponents/smartg_carwash.vue @@ -6,15 +6,21 @@
洗车行为统计
+
+ + + +
- + + - - - + + @@ -48,9 +54,6 @@ - - xx - @@ -66,10 +69,23 @@ export default { params: {}, apiObj2: null, params2: {}, + stationOptions: [], + query: {} } }, mounted() { this.apiObj = this.$API.enp.carwash; + this.getStations(); + }, + methods: { + getStations() { + this.$API.em.equipment.list.req({ cate__code: 'wstation', page: 0 }).then(res => { + this.stationOptions = res; + }) + }, + handleQuery() { + this.$refs.table.queryData(this.query); + }, } } \ No newline at end of file diff --git a/src/views/bigScreen/enpComponents/smartg_prod.vue b/src/views/bigScreen/enpComponents/smartg_prod.vue index be77b469..c0207c2f 100644 --- a/src/views/bigScreen/enpComponents/smartg_prod.vue +++ b/src/views/bigScreen/enpComponents/smartg_prod.vue @@ -2,9 +2,9 @@
- - - 查询 + + +
@@ -32,27 +32,47 @@
- - - - + + + + + - + - - + - - @@ -62,7 +82,20 @@ export default { data() { return { apiObj: null, - params: {} + params: { type: 20, has_equipdata: 'yes', cate: 'product' }, + query: {}, + mgroupOptions: [] + } + }, + mounted() { + this.apiObj = this.$API.enp.drain.list + this.getMgroup() + }, + methods: { + getMgroup() { + this.$API.mtm.mgroup.list.req({ page: 0 }).then(res => { + this.mgroupOptions = res + }) } } } @@ -111,4 +144,5 @@ export default { .grayb { background: #cbcbcb -} \ No newline at end of file +} + \ No newline at end of file