|
@@ -87,6 +87,7 @@
|
|
|
<script>
|
|
|
import pie from "@/components/echartsTemplate/pie.vue";
|
|
|
import { overview, district, reason } from "@/api/Idleland.js";
|
|
|
+import { QueryList } from "@/api/cockpitNew";
|
|
|
export default {
|
|
|
props: {},
|
|
|
data() {
|
|
@@ -130,10 +131,36 @@ export default {
|
|
|
getData() {
|
|
|
this.$emit("updateParent", "loading", true);
|
|
|
this.params = { districtCode: this.region };
|
|
|
- this.GetOverview();
|
|
|
+ this.Getzzxm();
|
|
|
|
|
|
this.GetSumList();
|
|
|
},
|
|
|
+ async Getzzxm(params) {
|
|
|
+ let res = await QueryList({
|
|
|
+ jscType: "jsc_stxf_ywfl_tdzz",
|
|
|
+ id: params ? params.id : "4602",
|
|
|
+ });
|
|
|
+ let arr = [];
|
|
|
+ res.data.forEach((res) => {
|
|
|
+ arr.push({
|
|
|
+ name: res.zzlx,
|
|
|
+ value: res.xmsl,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ this.setEchart({ data: arr, type: '"horizontal"' }, 0);
|
|
|
+ // this.$refs.stxf_echart_tdzz.setOptions(arr);
|
|
|
+
|
|
|
+ // let res_hz = await QueryList({
|
|
|
+ // jscType: "jsc_stxf_ztgh_tdzz",
|
|
|
+ // id: params ? params.id : "4602",
|
|
|
+ // });
|
|
|
+
|
|
|
+ // this.sdata.tdzz = {
|
|
|
+ // xzqhdm_number: res_hz.data[0].xmsl,
|
|
|
+ // zlmj: res_hz.data[0].mj,
|
|
|
+ // tzje: res_hz.data[0].tzje,
|
|
|
+ // };
|
|
|
+ },
|
|
|
GetOverview() {
|
|
|
overview(this.params).then((res) => {
|
|
|
this.sdata = res.data || {};
|