Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/visu_farming_0_1' into visu_farming_0_1

wang_xy 2 anni fa
parent
commit
4ec5ff8963
2 ha cambiato i file con 39 aggiunte e 4 eliminazioni
  1. 36 1
      src/views/datacenter.vue
  2. 3 3
      src/views/eventdetailsdialog.vue

+ 36 - 1
src/views/datacenter.vue

@@ -341,6 +341,20 @@ export default {
       //获取左侧菜单列表
       getResource().then(res => {
         const resourcesMap = res.data;
+        // const resourcesMap = [];
+        // let data = res.data;
+        // console.log("data=",data)
+        // for(let key in data){
+        //   if(key == 'getNumByVarieties' ||
+        //     key == 'getLivestockNumByVarieties' ||
+        //     key == 'enterpriseStat' ||
+        //     key == 'getInformation' ||
+        //     key == 'getSupervise' ||
+        //     key == 'grainFourSeasons'
+        //   ){
+        //     resourcesMap.push({key: data[key]});
+        //   }
+        // }
         for(let key in resourcesMap){
           const map = {};
           map.count=resourcesMap[key];
@@ -355,9 +369,30 @@ export default {
           if(key == 'zhibao'){map.name="植保数量";}//有经纬度
           if(key == 'zhongzhi'){map.name="种植产量";map.count=resourcesMap[key]+"吨";}
           if(key == 'zhongzi'){map.name="种子库存";map.count=resourcesMap[key]+"吨";}
+
+          // 备案畜禽规模养殖场统计	/agricultureBigData/getNumByVarieties
+          // 种畜禽养殖场统计	/agricultureBigData/getLivestockNumByVarieties
+          // 企业分布统计	/agricultureBigData/enterpriseStat
+          // 农药信息统计	/agricultureBigData/getInformation
+          // 农资监管统计	/agricultureBigData/getSupervise
+          // 粮食四季变化	/agricultureBigData/grainFourSeasons
+          if(key == 'getNumByVarieties'){map.name="备案养殖场";map.count=resourcesMap[key]+"";}
+          if(key == 'getLivestockNumByVarieties'){map.name="种畜禽养殖场";map.count=resourcesMap[key]+"";}
+          if(key == 'enterpriseStat'){map.name="企业数量";map.count=resourcesMap[key]+"";}
+          if(key == 'getInformation'){map.name="农药数量";map.count=resourcesMap[key]+"L";}
+          if(key == 'getSupervise'){map.name="农资监管数量";map.count=resourcesMap[key]+"";}
+          if(key == 'grainFourSeasons'){map.name="粮食数量";map.count=resourcesMap[key]+"吨";}
           map.icon='sj-icon-'+key;
           map.key=key;
-          that.resourcesList.push(map);
+          if(key == 'getNumByVarieties' ||
+            key == 'getLivestockNumByVarieties' ||
+            key == 'enterpriseStat' ||
+            key == 'getInformation' ||
+            key == 'getSupervise' ||
+            key == 'grainFourSeasons'
+          ){
+            that.resourcesList.push(map);
+          }
         }
       })
     },

+ 3 - 3
src/views/eventdetailsdialog.vue

@@ -230,7 +230,7 @@
                class="top-dialog"
                @close="cancelEventConfirm()">
       <el-form label-width="80px">
-        <el-form-item label="火灾半径" v-if="eventStatusButton=='qs'">
+        <el-form-item label="火灾半径" v-if="eventStatusButton=='qs'&&eventTypeXl==null">
           <el-input type="number" v-model="sendHuoZaiBanJing" placeholder="请输入火灾半径"/>
         </el-form-item>
         <el-form-item :label="deptNameitem">
@@ -1024,7 +1024,7 @@ export default {
       sendDeptId: null,//签收部门/发起部门
       sendDeptName: null,//签收部门/发起部门
       sendEventType: null,//事件类型
-      sendHuoZaiBanJing: null,//火灾报告
+      sendHuoZaiBanJing: 0,//火灾报告
       sendGuanLianYuAn: null,//关联预案
       sendUserFegin: [],//联系人
       sendTaskSource: null,//任务来源
@@ -2304,7 +2304,7 @@ export default {
       let hwMeetingUrl;
       selectConfigKey('hwMeetingUrl').then(res => {
         hwMeetingUrl = res.data
-        window.open(hwMeetingUrl+"/"+this.eventId+"/"+this.eventName+"的会议"+"/"+Cookies.get("nickName"));
+        window.open(hwMeetingUrl+"/joinConferences/"+this.eventId+"/"+this.eventName+"的会议"+"/"+Cookies.get("nickName"));
       })
     }
     /** ----------------------------------视频会议结束------------------------------------- */