Ver código fonte

"现场监控接入情况"

psguo 1 mês atrás
pai
commit
68ebabdaf3

+ 7 - 2
src/api/screen/service.js

@@ -886,8 +886,13 @@ export function getOverIssueNum(appOrg) {
     method: 'get'
   })
 }
-
-
+//某单位的各项目已接入摄像头数量
+export function etCameraNumList(appOrg) {
+  return request({
+    url: '/large/monitor/getCameraNumList/' + appOrg,
+    method: 'get'
+  })
+}
 /*--------------- 公务用车 ------------------*/
 
 // 资源台账

+ 18 - 6
src/views/screen/engineering/main.vue

@@ -31,7 +31,7 @@
             <div class="cont-title">现场监控接入情况</div>
           </div>
           <div class="components-item">
-            <unit-access-to @chooseUnit="onChooseUnit" :app-org="appOrg"></unit-access-to>
+            <unit-access-to @chooseUnit="onChooseUnit" :app-org="appOrg"  :key="appOrg"></unit-access-to>
           </div>
           <!-- <monitoring v-if="menu === 1"></monitoring>
           <monitoring-video v-if="menu === 2"></monitoring-video> -->
@@ -149,7 +149,10 @@
             <div class="cont-title">现场远程检查情况</div>
           </div>
           <div class="components-item">
-            <current-area @chooseMonitor="onChooseMonitor" @choose="onChooseIssueList" :monitorName="monitorName" :app-org="appOrg"></current-area>
+            <current-area @chooseMonitor="onChooseMonitor" @choose="onChooseIssueList"
+                          :monitorName="monitorName"
+                          :app-org="appOrg"
+                          :key="appOrg"></current-area>
           </div>
         </div>
       </div>
@@ -180,7 +183,8 @@
       <div class="dialog-center">
         <unit-project-dia
           v-if="showProject === 1"
-          @close="onCloseProject"
+          @close="onCloseProject()"
+          :curCompanyear="curCompanyear"
           @choose="onChooseProject"
         ></unit-project-dia>
         <project-camera-dia
@@ -258,7 +262,13 @@ import unitAccessDialog from "@/views/screen/engineering/unitAccessDialog.vue";
 import CarCost from "@/views/screen/official/carCost.vue";
 import ResourceList from "@/views/screen/official/resourceList.vue";
 import CarHealth from "@/views/screen/official/carHealth.vue";
-import { getProjectNum, getProjectNumX, getProjectNumY, getProjectNumZ } from '@/api/screen/service'
+import {
+  getProjectNum,
+  getProjectNumThisWeek,
+  getProjectNumX,
+  getProjectNumY,
+  getProjectNumZ
+} from '@/api/screen/service'
 export default {
   name: "EngineeringMain",
   components: {
@@ -315,6 +325,7 @@ export default {
       ],
       list1: [],
       list2: [],
+      curCompanyear:'',
       showRes:0,
       showC:false,
       showIssue:0,
@@ -373,7 +384,7 @@ export default {
     this.$nextTick(() => {
       this.getProjectNum();
       this.getProjectNumX();
-      this.getProjectNumZ()
+      this.getProjectNumZ();
     });
 
   },
@@ -447,7 +458,8 @@ export default {
       this.showC = true
       this.showHealth = 1
     },
-    onChooseUnit(){
+    onChooseUnit(f){
+      this.curCompanyear = f;
       this.showC = true;
       this.showProject = 1;
     },

+ 5 - 3
src/views/screen/engineering/unitAccessto.vue

@@ -13,7 +13,7 @@
             <div class="thd">已接入摄像头数量</div>
           </div>
           <div class="table-bot">
-            <div class="table-list" v-for="(item,index) in monitorList" :key="index" @click="choose">
+            <div class="table-list" v-for="(item,index) in monitorList" :key="index" @click="choose(appOrg)">
               <div class="said"></div>
               <div class="fir">{{item.name}}</div>
               <div class="snd">{{item.num}}</div>
@@ -170,8 +170,10 @@ export default {
         }
       });
     },
-    choose(){
-      this.$emit('chooseUnit')
+    choose(f){
+
+      this.$emit('chooseUnit',f)
+
     },
     handleDataList() {
       this.dataList = [];

+ 22 - 99
src/views/screen/engineering/unitProjectDia.vue

@@ -8,9 +8,9 @@
         <div class="flex-column">摄像头数量</div>
       </div>
       <div class="dataList">
-        <div class="flex-row" v-for="(item,index) in dataList" :key="index" @click="choose()">
-          <div class="flex-column">{{item.name}}</div>
-          <div class="flex-column">{{item.num}}</div>
+        <div class="flex-row" v-for="(item,index) in dataList" :key="index" @click="choose(appOrg)">
+          <div class="flex-column">{{item.projectName}}</div>
+          <div class="flex-column">{{item.cameraNum}}</div>
         </div>
       </div>
     </div>
@@ -18,9 +18,9 @@
 </template>
 
 <script>
-import { getFoodsList } from "@/api/screen/service";
+import {getFoodsList, planCheckList} from "@/api/screen/service";
 import pinyin from "../data/pinyin.js";
-
+import { etCameraNumList } from "@/api/screen/service"
 export default {
   name: "UnitCamera",
   props: {
@@ -32,108 +32,31 @@ export default {
       type: String,
       default: "10001",
     },
+    curCompanyear:{
+      type: String,
+      default: "",
+    }
   },
   data() {
     return {
-      dataList: [
-        {
-          name: "国网山西省电力公司",
-          num: 56,
-          onLineNum: 46
-        },
-        {
-          name: "国网太原供电公司",
-          num: 10,
-          onLineNum: 8
-        },
-        {
-          name: "国网运城供电公司",
-          num: 8,
-          onLineNum: 4
-        },
-        {
-          name: "国网山西省电力公司",
-          num: 56,
-          onLineNum: 46
-        },
-        {
-          name: "国网太原供电公司",
-          num: 10,
-          onLineNum: 8
-        },
-        {
-          name: "国网运城供电公司",
-          num: 8,
-          onLineNum: 4
-        },
-        {
-          name: "国网山西省电力公司",
-          num: 56,
-          onLineNum: 46
-        },
-        {
-          name: "国网太原供电公司",
-          num: 10,
-          onLineNum: 8
-        },
-        {
-          name: "国网运城供电公司",
-          num: 8,
-          onLineNum: 4
-        },
-        {
-          name: "国网山西省电力公司",
-          num: 56,
-          onLineNum: 46
-        },
-        {
-          name: "国网太原供电公司",
-          num: 10,
-          onLineNum: 8
-        },
-        {
-          name: "国网运城供电公司",
-          num: 8,
-          onLineNum: 4
-        },
-        {
-          name: "国网山西省电力公司",
-          num: 56,
-          onLineNum: 46
-        },
-        {
-          name: "国网太原供电公司",
-          num: 10,
-          onLineNum: 8
-        },
-        {
-          name: "国网运城供电公司",
-          num: 8,
-          onLineNum: 4
-        },
-        {
-          name: "国网山西省电力公司",
-          num: 56,
-          onLineNum: 46
-        },
-        {
-          name: "国网太原供电公司",
-          num: 10,
-          onLineNum: 8
-        },
-        {
-          name: "国网运城供电公司",
-          num: 8,
-          onLineNum: 4
-        }],
+      dataList: [],
     };
   },
+  created () {
+    this.etCameraNumList()
+  },
   mounted() {},
   methods: {
-    choose(){
-      this.$emit("choose");
+    choose(appOrg){
+      this.$emit("choose",appOrg);
+    },
+    etCameraNumList(){
+      etCameraNumList(this.$props.curCompanyear).then((res) => {
+        if (Number(res.code) === 200) {
+          this.dataList = res.data;
+        }
+      });
     },
-
     close() {
       this.$emit("close");
     },