fuliqi
2024-09-18 4c03db2f0d6b4320e670b770f4c1e252809303a3
src/views/screen/index.vue
@@ -36,7 +36,7 @@
            <div class="statistics-container">
              <div class="DrawLine-content">
                <!-- <div style="width: 100%; height: 100%" ref="myDrawLine"></div> -->
                <lineChart :workOrderRegion = workOrderRegion></lineChart>
                <lineChart :workOrderRegion=workOrderRegion></lineChart>
              </div>
            </div>
          </div>
@@ -44,7 +44,7 @@
      </div>
      <div class="map-container" ref="isMap">
        <mapApp></mapApp>
        <mapApp @clickMap="getDeptId" :geoCoordinates=scoreData></mapApp>
        <div class="btn-container">
          <img src="@/assets/images/btn-bg.png" class="bg-img"/>
          <div class="btn-list" v-model="activerBtnType">
@@ -192,7 +192,8 @@
  getNormalRate,
  checkFace,
  checkCar,
  checkVideo
  checkVideo,
  checkScore
} from "@/api/newpage";
export default {
@@ -207,6 +208,50 @@
      faceList: [],
      workOrderData: [],
      workOrderRegion: [],
      scoreData: {
          自流井区: [
            {
              value: 0,
              name: '得分'
            }
          ],
          高新区: [
            {
              value: 0,
              name: '得分'
            }
          ],
          大安区: [
            {
              value: 0,
              name: '得分'
            }
          ],
          沿滩区: [
            {
              value: 0,
              name: '得分'
            }
          ],
          贡井区: [
            {
              value: 0,
              name: '得分'
            }
          ],
          荣县: [
            {
              value: 0,
              name: '得分'
            }
          ],
          富顺县: [
            {
              value: 0,
              name: '得分'
            }
          ]
        },
      // 设备数据
      facilityData: {
        video: [],
@@ -308,6 +353,14 @@
        })
        .catch((err) => {
        });
      checkScore(this.activerBtnType, this.deptId)
        .then((res) => {
          if(res.data && Object.keys(res.data).length > 0){
            this.scoreData = res.data;
          }
        })
        .catch((err) => {
        });
    },
    returnPath() {
      this.$router.push("/index");
@@ -340,6 +393,7 @@
      item2.color = '#ff7b72'
      item2.title = '未处理工单数'
      this.statistics.push(item2)
      console.log( this.statistics)
    },
    videoData() {