+
+ 全厂污染源:{{ count }}
+
+
+
@@ -17,7 +22,8 @@
+ row-key="id" :params="params" :query="query" @row-click="rowClick"
+ @dataChange="updateCount">
@@ -215,6 +221,7 @@ import * as echarts from "echarts";
export default {
data() {
return {
+ count: 0,
eqs: {},
eqc: {},
eqz: {},
@@ -277,6 +284,9 @@ export default {
}
},
methods: {
+ updateCount(res, tableData) {
+ this.count = res.count
+ },
initTimeNow() {
var now = new Date();
let year = now.getFullYear(); // 年份
diff --git a/src/views/bigScreen/enpComponents/transport.vue b/src/views/bigScreen/enpComponents/transport.vue
index 1d95316d..b55723db 100644
--- a/src/views/bigScreen/enpComponents/transport.vue
+++ b/src/views/bigScreen/enpComponents/transport.vue
@@ -5,38 +5,40 @@
进出厂记录
-
+
+ 返回地图
- 车辆总数:
0
+
+ 车辆进出次数:{{ count }}
+
-
-
-
+
+
-
- 查询
+
+
-
+
@@ -59,12 +61,13 @@ export default {
data() {
return {
query: {},
+ count: 0,
+ timeRange: [],
cateOptions: [
{ id: 1, name: '货车' },
{ id: 2, name: '罐车' },
],
typeOptions: [
- { id: '', name: '全部' },
{ id: 1, name: '进厂' },
{ id: 2, name: '出厂' }
],
@@ -79,15 +82,28 @@ export default {
},
timeOptions: ['日', '月', '年'],
apiObj: this.$API.enp.vehicle_access,
- params: { type: 2 },
+ params: {},
}
},
methods: {
+ updateCount(res, tableData) {
+ this.count = res.count
+ },
handleQuery() {
+ if (this.timeRange) {
+ this.query.access_time__gte = this.timeRange[0]
+ this.query.access_time__lte = this.timeRange[1]
+ } else {
+ this.query.access_time__gte = null
+ this.query.access_time__lte = null
+ }
this.$refs.table.queryData(this.query);
},
timeHandleQuery() { },
carHandleQuery() { },
+ backtoMap() {
+ this.$emit('close')
+ },
}
}
\ No newline at end of file