diff --git a/src/apps/AppWorkOrderXbot/AppWorkOrderXbot.vue b/src/apps/AppWorkOrderXbot/AppWorkOrderXbot.vue index e1d37ce8..830de2c6 100644 --- a/src/apps/AppWorkOrderXbot/AppWorkOrderXbot.vue +++ b/src/apps/AppWorkOrderXbot/AppWorkOrderXbot.vue @@ -1,282 +1,151 @@ - diff --git a/src/apps/AppWorkOrderXbot/List.vue b/src/apps/AppWorkOrderXbot/List.vue new file mode 100644 index 00000000..cb9b4c4f --- /dev/null +++ b/src/apps/AppWorkOrderXbot/List.vue @@ -0,0 +1,289 @@ + + + + + diff --git a/src/apps/AppWorkOrderXbot/Statistics.vue b/src/apps/AppWorkOrderXbot/Statistics.vue new file mode 100644 index 00000000..c8005b00 --- /dev/null +++ b/src/apps/AppWorkOrderXbot/Statistics.vue @@ -0,0 +1,370 @@ + + + + + diff --git a/src/project/lulong/AppHandSnapshot/Statistics.vue b/src/project/lulong/AppHandSnapshot/Statistics.vue index c8005b00..cf8f99e0 100644 --- a/src/project/lulong/AppHandSnapshot/Statistics.vue +++ b/src/project/lulong/AppHandSnapshot/Statistics.vue @@ -2,7 +2,7 @@
- +
@@ -19,24 +19,24 @@
事件办结率
-
-
{{finshNum}}%
+
+
{{finshNum}}%
巡查上报趋势图
-
+
巡查事件分类 -
{{statusInfo.name || '请选择'}}
+
-
+
@@ -51,7 +51,7 @@ export default { data() { return { todayList: [], - selectGird: {girdId: '', girdName: ''}, + selectGird: {id: '', girdName: ''}, finishChart: null, trendChart: null, typeChart: null, @@ -78,7 +78,7 @@ export default { methods: { getStatistics() { this.todayList = [], this.finishData = [], this.trendDataX = [], this.trendData = [], this.typeData = [] - this.$http.post(`/app/apppatrolreportinfo/countByGirdId?girdId=${this.selectGird.girdId}&eventStatus=${this.statusInfo.eventStatus}`).then((res) => { + this.$http.post(`/app/apppatrolreportinfo/countByGirdId?girdId=${this.selectGird.id}&eventStatus=${this.statusInfo.eventStatus}`).then((res) => { if (res.code == 0) { this.$nextTick(() => { this.chartInit() @@ -117,7 +117,9 @@ export default { this.typeData.push(info) }) - this.chartInit() + this.$nextTick(() => { + this.chartInit() + }) } }) }, @@ -270,6 +272,11 @@ export default { this.statusInfo.eventStatus = e[0].value this.getStatistics() }, + handleSelectGird(v) { + console.log(v) + this.selectGird = v || {} + this.getStatistics() + } }, }