Browse Source

Merge branch 'dev' of http://39.106.8.246:3003/web/ibms into dev

shaun-sheep 5 years ago
parent
commit
c822b4abef

+ 1 - 1
config/dev.env.js

@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env')
 
 module.exports = merge(prodEnv, {
     NODE_ENV: '"development"',
-    BASE_URL: '"http://192.168.20.215"', //测试iframe地址
+    BASE_URL: '"http://192.168.20.236"', //测试iframe地址
     SSO_SERVER: '"http://192.168.20.102:8080"', //(新)测试环境
     MQTT_SERVICE: '"ws://192.168.20.225:61614/stomp/"' //MQ测试环境地址
     // SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境

+ 1 - 1
config/prod.env.js

@@ -1,7 +1,7 @@
 'use strict'
 module.exports = {
     NODE_ENV: '"production"',
-    BASE_URL: '"http://192.168.20.215"', //测试iframe地址
+    BASE_URL: '"http://192.168.20.236"', //测试iframe地址
     SSO_SERVER: '"http://192.168.20.102:8080"', //(新)测试环境
     MQTT_SERVICE: '"ws://192.168.20.225:61614/stomp/"' //MQ测试环境地址
     // BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址

+ 2 - 1
src/api/model/file.js

@@ -210,7 +210,8 @@ let api = {
      */
     deleteModelFileList(params, success) {
         let data = {
-            Id:params
+            Id:params.Id,
+            Force: params.Force?params.Force:false
         } 
         return httputils.postJson(`${baseUrl}/model-file/delete-file`, data, success)
     },

+ 6 - 0
src/api/scan/request.js

@@ -1272,6 +1272,12 @@ export function createGeneralSys(param, success) {
   http.postJson(url, param, success)
 }
 
+//创建系统---处理建筑楼层(一对多)
+export function createSystemBuildFloor(param, success) {
+    let url = `${baseUrl}/datacenter/general—system/create-bd-fl`
+    http.postJson(url, param, success)
+}
+
 //查询不在当前系统下的设备
 export function getEquipNotInSys(param, success) {
   let url = `${baseUrl}/equip-component/equip-query/equip-sys?sysId=${param.sysId}`;

+ 16 - 8
src/components/echarts/fanChart.vue

@@ -38,33 +38,41 @@ export default {
       let options = {
         tooltip: {
           trigger: 'item',
-          formatter: "{a} <br/>{b} : {c} ({d}%)"
+          formatter: ""
         },
         series: [
           {
-            name: '占比',
+            // name: '占比',
             type: 'pie',
             radius: '55%',
             center: ['50%', '60%'],
             data: this.renderData,
             label: {
               normal: {
-                show: false
+                show: true,
+                position: 'outside',
+                textStyle: {
+                  fontSize: '11'
+                }
               },
               emphasis: {
-                show: false
+                show: true
               }
             },
             labelLine: {
               normal: {
-                show: false
+                show: true,
+                length: 20,
+                lineStyle: {
+                  color: '#999'
+                }
               },
               emphasis: {
-                show: false
+                show: true
               }
             }
-          }
-        ]
+          },
+        ],
       }
       this.myCharts = echarts.init(document.getElementById(this.id))
       this.myCharts.setOption(options)

+ 1 - 1
src/components/echarts/reportDoughnut.vue

@@ -45,7 +45,7 @@ export default {
       let options = {
         tooltip: {
           trigger: 'item',
-          formatter: "{b}: ({d}%)"
+          formatter: "{b}"
         },
         legend: {
           show: false,

+ 2 - 2
src/components/globaluploader/index.vue

@@ -2,7 +2,7 @@
  * @Author: zhangyu
  * @Date: 2019-11-28 10:05:28
  * @Info: 
- * @LastEditTime : 2019-12-24 18:35:44
+ * @LastEditTime : 2019-12-25 17:48:31
  -->
 <template>
   <div id="global-uploader">
@@ -213,7 +213,7 @@ export default {
       },1))
       this.setUploaderList(this.uploaderList);
       if(file.modelId && !file.isComplete()) {
-        request.deleteModelFileList(file.modelId, res => {
+        request.deleteModelFileList({Id: file.modelId, Force: true}, res => {
           console.log('删除错误模型:',file.modelId);
           Bus.$emit('modelStatusChange')
         })

+ 12 - 0
src/components/ledger/lib/editSysFloor.vue

@@ -27,6 +27,11 @@ export default {
   components: {
     bfCascader
   },
+  props: {
+    isCreate: {
+      default: false
+    }
+  },
   methods: {
     showDialog(system) {
       this.system = system;
@@ -48,6 +53,13 @@ export default {
       })
     },
     save() {
+      // 如果是创建
+      if (this.isCreate) {
+        let data = this.$refs.bfCascader.getSelectedNodes();
+        this.connectDialogVis = false;
+        this.$emit('relateSuccess', data);
+        return
+      }
       let arr = this.$refs.bfCascader.value;
       let buildIds = [], floorIds = [];
       arr.map(t => {

+ 1 - 1
src/components/model/file/modelLog.vue

@@ -103,7 +103,7 @@ export default {
         }
       )
         .then(() => {
-          request.deleteModelFileList(item.Id, res => {
+          request.deleteModelFileList({Id: item.Id}, res => {
             if (res.Result == "success") {
               //  刷新页面
               this.$emit("deleteFinish");

+ 2 - 2
src/utils/handsontable/buildFloorData.js

@@ -42,7 +42,7 @@ const buildFloor = {
       })
       data.unshift({
         value: "",
-        label: "未明确建筑的设备"
+        label: "未明确建筑"
       })
       data.forEach(build => {
         floorData.forEach(floor => {
@@ -56,7 +56,7 @@ const buildFloor = {
               build.children = []
               build.children.push({
                 value: "",
-                label: "未明确楼层的设备"
+                label: "未明确楼层"
               },{
                 value: floor.FloorID,
                 label: floor.FloorLocalName 

+ 118 - 99
src/views/data_admin/buildAssets/index.vue

@@ -1,6 +1,24 @@
 <template>
-    <div class='box'>
-        <div class='condition'>
+  <div class='box'>
+    <el-row style="padding:0 10px;margin-bottom:10px;">
+      <div style="float:left;">
+        <label>选择时间范围 : </label>
+        <el-date-picker v-model="value" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
+        </el-date-picker>
+      </div>
+      <div style="float:left;margin-left:10px;">
+        <label>发现问题:</label>
+        <span>无</span>
+      </div>
+      <el-button style="float:right;" :disabled="true">查看收集到的问题</el-button>
+    </el-row>
+    <div style="background:#fff;display:flex;align-items:center;border: 1px solid #e4e4e4;justify-content:center;height:100%;">
+      <div class="center">
+        <i class="icon-wushuju iconfont"></i>
+        暂无数据
+      </div>
+    </div>
+    <!-- <div class='condition'>
             <p>
                 <span style="margin-right: 12px">建筑名称</span>
                 <el-select v-model='buildVlaue' placeholder='请选择'>
@@ -26,8 +44,8 @@
             <el-tab-pane label='未扫楼验证的资产' name='fourth'>
                 <saga-verify :buildVlaue='buildVlaue' :floorsObj='floorsObj' :allEquipObj='allEquipObj'></saga-verify>
             </el-tab-pane>
-        </el-tabs>
-    </div>
+        </el-tabs> -->
+  </div>
 </template>
 
 <script>
@@ -38,116 +56,117 @@ import SagaVerify from './Noverify'
 import { mapGetters } from 'vuex'
 //api
 import {
-    getBuildSelect, //根据项目ID获得建筑列表
-    getAllbusiness,
-    getAllFamily
+  getBuildSelect, //根据项目ID获得建筑列表
+  getAllbusiness,
+  getAllFamily
 } from '@/api/scan/request'
 export default {
-    name: 'build-assets',
-    data() {
-        return {
-            activeName: 'first',
-            buildVlaue: '',
-            options: [],
-            floorsObj: {},
-            allFamilyObj: {}, 
-            allEquipObj: {}
+  name: 'build-assets',
+  data() {
+    return {
+      activeName: 'first',
+      buildVlaue: '',
+      options: [],
+      floorsObj: {},
+      allFamilyObj: {},
+      allEquipObj: {},
+      value: '',//
+    }
+  },
+  computed: {
+    ...mapGetters('layout', ['projectId', 'userId', 'secret'])
+  },
+  components: {
+    SagaNofind,
+    SagaNopaint,
+    SagaNomap,
+    SagaVerify
+  },
+  methods: {
+    handleClick() { },
+    //获取建筑列表
+    getBuilding() {
+      let param = {
+        ProjId: this.projectId,
+        UserId: this.userId
+      }
+      getBuildSelect(param).then(res => {
+        if (res.data.Result == 'success') {
+          let data = res.data.BuildList
+          this.options = data
+          this.buildVlaue = data.length ? data[0].BuildId : ''
         }
+      })
     },
-    computed: {
-        ...mapGetters('layout', ['projectId', 'userId', 'secret'])
-    },
-    components: {
-        SagaNofind,
-        SagaNopaint,
-        SagaNomap,
-        SagaVerify
-    },
-    methods: {
-        handleClick() {},
-        //获取建筑列表
-        getBuilding() {
-            let param = {
-                ProjId: this.projectId,
-                UserId: this.userId
-            }
-            getBuildSelect(param).then(res => {
-                if (res.data.Result == 'success') {
-                    let data = res.data.BuildList
-                    this.options = data
-                    this.buildVlaue = data.length ? data[0].BuildId : ''
-                }
-            })
-        },
-        //获取所有楼层
-        getFloors() {
-            let param = {
-                ProjId: this.projectId,
-                secret: this.secret,
-                id: this.projectId,
-                type: ['Fl']
-            }
-            getAllbusiness(param).then(res => {
-                if (res.data.Result == 'success') {
-                    res.data.Content.forEach(item => {                        
-                        this.floorsObj[item.infos.FloorID] = item.infos.FloorLocalName
-                    })
+    //获取所有楼层
+    getFloors() {
+      let param = {
+        ProjId: this.projectId,
+        secret: this.secret,
+        id: this.projectId,
+        type: ['Fl']
+      }
+      getAllbusiness(param).then(res => {
+        if (res.data.Result == 'success') {
+          res.data.Content.forEach(item => {
+            this.floorsObj[item.infos.FloorID] = item.infos.FloorLocalName
+          })
 
-                }
-            })
-        },
-        //获取设备组
-        getAllFamily() {
-            getAllFamily().then(result => {
-                    if (result.data.Result == "success") {
-                        console.log(result.data.Content)
-                        let list = result.data.Content;
-                        list.forEach(ele => {
-                            this.allFamilyObj[ele.code] = ele
-                        })  
-                        this.allEquipObj = {}
-                        this.getEquip(list)              
-                    }
-                });
-        },
-        getEquip(list) {
-            list.forEach(ele => {
-                if(ele.content) {
-                    ele.content.forEach(keng => {
-                        this.allEquipObj[keng.code] = keng.name
-                    })
-                }
-            })
-        },
-        async init() {
-            await this.getAllFamily();
-            await this.getFloors();
-            await this.getBuilding()
         }
+      })
     },
-    created() {
-        this.init()
+    //获取设备组
+    getAllFamily() {
+      getAllFamily().then(result => {
+        if (result.data.Result == "success") {
+          console.log(result.data.Content)
+          let list = result.data.Content;
+          list.forEach(ele => {
+            this.allFamilyObj[ele.code] = ele
+          })
+          this.allEquipObj = {}
+          this.getEquip(list)
+        }
+      });
     },
-    watch: {
-        projectId(){
-            this.init()
+    getEquip(list) {
+      list.forEach(ele => {
+        if (ele.content) {
+          ele.content.forEach(keng => {
+            this.allEquipObj[keng.code] = keng.name
+          })
         }
+      })
+    },
+    async init() {
+      await this.getAllFamily();
+      await this.getFloors();
+      await this.getBuilding()
+    }
+  },
+  created() {
+    this.init()
+  },
+  watch: {
+    projectId() {
+      this.init()
     }
+  }
 }
 </script>
 
 <style scoped lang='less'>
 .box {
-    .condition {
-        padding: 10px;
-        display: flex;
-        border: 1px solid #dfe6ec;
-        background:#fff;
-        margin-bottom: 10px;
-    }
-    /deep/ .el-tabs__nav{
-        margin-left: 10px;
-    }
+  .condition {
+    padding: 10px;
+    display: flex;
+    border: 1px solid #dfe6ec;
+    background: #fff;
+    margin-bottom: 10px;
+  }
+  /deep/ .el-tabs__nav {
+    margin-left: 10px;
+  }
 }
 </style>
 

+ 29 - 20
src/views/ledger/report/index.vue

@@ -2,28 +2,28 @@
   <div>
     <div class="data-display">
       <ul class="list">
-        <li>
+        <li @click="detailPage">
           <p class="list-num">
             <i class='el-icon-s-order'></i>
             {{lederDelObjectCount?lederDelObjectCount:'0'}}
           </p>
           <p class="list-text">台账中待删除的对象</p>
         </li>
-        <li>
+        <li @click="detailPage">
           <p class="list-num">
             <i class="el-icon-s-help"></i>
             {{notSyncObjectCount?notSyncObjectCount:'0'}}
           </p>
           <p class="list-text">不能同步到物理世界的对象</p>
         </li>
-        <li>
+        <li @click="detailPage">
           <p class="list-num">
             <i class="el-icon-s-marketing"></i>
             {{notSyncDataCount?notSyncDataCount:'0'}}
           </p>
           <p class="list-text">不能同步到物理世界的关系数据</p>
         </li>
-        <li>
+        <li @click="detailPage">
           <p class="list-num">
             <i class="el-icon-s-release"></i>
             {{postRelationInforCount?postRelationInforCount:'0'}}
@@ -227,6 +227,12 @@ export default {
     ...mapGetters('layout', ['projectId'])
   },
   methods: {
+    detailPage() {
+      this.$message({
+        message: '待开发',
+        type: 'warning'
+      });
+    },
     zoneTypeConversion(item) {// 分区类型转换
       this.zoneType.forEach(it => {
         if (item.Name === it.Code) {
@@ -359,8 +365,8 @@ export default {
         this.equipment.push({
           title: '未关联资产',
           tips: '设备未关联资产数量',
-          contentValueO: '已关联',
-          contentValueT: '未关联',
+          contentValueO: '已关联:',
+          contentValueT: '未关联:',
           needCountO: this.equipCount - res.Count,
           needCountT: res.Count,
           text: `总数${this.equipCount}`
@@ -370,8 +376,8 @@ export default {
         this.equipment.push({
           title: '现场验证状态占比',
           tips: '设备状态为未找到、已找到的数量与设备总数占比',
-          contentValueO: '已验证',
-          contentValueT: '未验证',
+          contentValueO: '已验证:',
+          contentValueT: '未验证:',
           needCountO: res1.Count,
           needCountT: this.equipCount - res1.Count,
           text: text
@@ -381,8 +387,8 @@ export default {
         this.equipment.push({
           title: '与模型对应占比',
           tips: '"BIM模型中编码"有值的设备数量与设备总数占比',
-          contentValueO: '有BIMID',
-          contentValueT: '无BIMID',
+          contentValueO: '已对应:',
+          contentValueT: '未对应:',
           needCountO: res2.Count,
           needCountT: this.equipCount - res2.Count,
           text: text1
@@ -437,8 +443,8 @@ export default {
         this.assets.push({
           title: '未关联资产',
           tips: '资产未关联设备数量',
-          contentValueO: '已关联',
-          contentValueT: '未关联',
+          contentValueO: '已关联:',
+          contentValueT: '未关联:',
           text: `总数${this.assetsCount}`,
           needCountO: this.assetsCount - res1.Count,
           needCountT: res1.Count
@@ -449,8 +455,8 @@ export default {
         this.assets.push({
           title: '现场验证状态占比',
           tips: '资产状态为未找到、已找到的数量与资产总数占比',
-          contentValueO: '已验证',
-          contentValueT: '未验证',
+          contentValueO: '已验证:',
+          contentValueT: '未验证:',
           text: text,
           needCountO: res1.Count,
           needCountT: this.assetsCount - res1.Count
@@ -461,8 +467,8 @@ export default {
         this.assets.push({
           title: '有无坐标占比',
           tips: '有坐标的资产数量百分比',
-          contentValueO: '有坐标',
-          contentValueT: '无坐标',
+          contentValueO: '有坐标:',
+          contentValueT: '无坐标:',
           text: text1,
           needCountO: res2.Count,
           needCountT: this.assetsCount - res2.Count
@@ -547,8 +553,8 @@ export default {
         this.tenant.push({
           title: '关联业务空间完成度',
           tips: '已关联业务空间的租户数量百分比',
-          contentValueO: '已关联',
-          contentValueT: '未关联',
+          contentValueO: '已关联:',
+          contentValueT: '未关联:',
           needCountO: res.Count,
           needCountT: this.rentantCount - res.Count,
           text: text
@@ -597,8 +603,8 @@ export default {
         this.shaft.push({
           title: '关联业务空间完成度',
           tips: '已关联业务空间的竖井数量百分比',
-          contentValueO: '已关联',
-          contentValueT: '未关联',
+          contentValueO: '已关联:',
+          contentValueT: '未关联:',
           needCountO: res1.Count,
           needCountT: this.shaftCount - res1.Count,
           text: text
@@ -650,6 +656,9 @@ export default {
         margin-left: 10px;
       }
     }
+    li:hover {
+      box-shadow: 0px 2px 4px #c9c9c9;
+    }
   }
 }
 .progress {

+ 51 - 133
src/views/ledger/system/addsystem.vue

@@ -1,9 +1,9 @@
 <template>
   <div id="deviceList">
     <el-row class="right">
-      <span style="width:20px;float:left;display:block;height:20px;cursor: pointer;" @click="changeAssetsFalg">
+      <!-- <span style="width:20px;float:left;display:block;height:20px;cursor: pointer;" @click="changeAssetsFalg">
         <i class="el-icon-fa  el-icon-fa-compass"></i>
-      </span>
+      </span> -->
       <span style="float:left;">当前选择的系统类型:{{category.CategoryName}}</span>
       <el-select v-model="showType" @change="initTable" style="width:125px;margin-right:10px;vertical-align:bottom;">
         <el-option v-for="item in showTypes" :key="item.value" :label="item.label" :value="item.value"></el-option>
@@ -27,6 +27,9 @@
     <el-row class="center">
       <el-button type="primary" size="medium" @click="handleCreateTableData" class="create_button">创建系统</el-button>
     </el-row>
+
+    <!-- 关联楼层 -->
+    <editSysfloor ref="editFloor" @relateSuccess="relateSuccess" :isCreate="true"></editSysfloor>
   </div>
 </template>
 <script>
@@ -36,10 +39,11 @@ import showTools from "@/utils/handsontable/notShow";
 import text from "@/utils/handsontable/mainText";
 import session from "@/framework/utils/storage";
 
+import editSysfloor from "@/components/ledger/lib/editSysFloor";
 import handsonTable from "@/components/common/handsontable";
 import {
   getDataDictionary,
-  createGeneralSys,
+  createSystemBuildFloor,
   buildingQuery
 } from "@/api/scan/request";
 import { mapGetters, mapActions } from "vuex";
@@ -47,7 +51,8 @@ import { mapGetters, mapActions } from "vuex";
 import qrcode from "@/components/ledger/lib/qrcode";
 export default {
   components: {
-    handsonTable
+    handsonTable,
+    editSysfloor
   },
   data() {
     return {
@@ -100,24 +105,24 @@ export default {
   },
   methods: {
     //维护建筑
-    changeAssetsFalg() {
-      if (this.floorFlag) {
-        this.floorFlag = false
-      } else {
-        this.$confirm('<p>维护设备所在建筑楼层后,对后续数据影响较大,如业务空间中的所在关系or其他?暂未梳理明白……</p><p>后续要修改设备所属建筑楼层,只能通过模型中的待建模清单操作</p>', '提示', {
-          dangerouslyUseHTMLString: true,
-          confirmButtonText: '就要维护设备所属建筑楼层',
-          cancelButtonText: '暂时不搞了',
-          confirmButtonClass: 'confirmButtonClass',
-          cancelButtonClass: 'cancelButtonClass'
-        }).then(_ => {
-          this.floorFlag = true
-          this.getTableHeader()
-        }).catch(_ => {
-          this.$message("取消")
-        })
-      }
-    },
+    // changeAssetsFalg() {
+    //   if (this.floorFlag) {
+    //     this.floorFlag = false
+    //   } else {
+    //     this.$confirm('<p>维护设备所在建筑楼层后,对后续数据影响较大,如业务空间中的所在关系or其他?暂未梳理明白……</p><p>后续要修改设备所属建筑楼层,只能通过模型中的待建模清单操作</p>', '提示', {
+    //       dangerouslyUseHTMLString: true,
+    //       confirmButtonText: '就要维护设备所属建筑楼层',
+    //       cancelButtonText: '暂时不搞了',
+    //       confirmButtonClass: 'confirmButtonClass',
+    //       cancelButtonClass: 'cancelButtonClass'
+    //     }).then(_ => {
+    //       this.floorFlag = true
+    //       this.getTableHeader()
+    //     }).catch(_ => {
+    //       this.$message("取消")
+    //     })
+    //   }
+    // },
     //获取建筑数据
     getBuildData() {
       let param = {
@@ -179,10 +184,6 @@ export default {
         if (!item.SysLocalName) {
           flag = true;
         }
-        // 处理建筑
-        if (item.flowBuild) {
-          item.BuildingId = item.flowBuild
-        }
         item.Category = this.category.Category
       })
       if (flag) {
@@ -190,7 +191,9 @@ export default {
         return;
       }
       params.Content = newData
-      createGeneralSys(params, res => {
+      console.log(params)
+      // return
+      createSystemBuildFloor(params, res => {
         this.$message.success('创建成功')
         session.remove("systemAddData")
         this.$router.push({
@@ -237,7 +240,7 @@ export default {
     formatHeaderData(list) {
       let arr = tools.copyArr(list);
       let data = showTools.headerTextFilter(arr, 'system', this.onlyRead, this.showType);
-      data.unshift("所属建筑");
+      data.unshift("所属建筑楼层");
       return data;
     },
     formatHeaderType(list) {
@@ -245,13 +248,8 @@ export default {
       let arr = tools.copyArr(list);
       let data = showTools.headerTypeFilter(arr, 'system', this.onlyRead, this.showType);
       data.unshift({
-        data: "flowBuild",
-        renderer: tools.customDropdownRenderer,
-        editor: "chosen",
-        chosenOptions: {
-          // multiple: true,//多选
-          data: this.buildingData
-        }
+        data: "BuildingFloorInfoList",
+        renderer: text.sysInBuildFloor
       });
       return data;
     },
@@ -266,10 +264,14 @@ export default {
         contextMenu: this.onlyRead ? false :{
           items: {
             remove_row: {
-              name: "删除设备"
+              name: "删除该系统"
             }
           }
         },
+        autoColumnSize: true,
+        language: "zh-CN",
+        manualColumnResize: true,
+        manualColumnMove: true,
         // 事件
         afterChange: this.handleUpdataTable, //修改后
         afterFilter: this.trimmedRows, //排序前
@@ -338,7 +340,8 @@ export default {
     },
     getInfors(infos, row) {
       let val = this.tableExample.colToProp(row.col);
-      console.log(val)
+      this.row = row.row;
+      this.messKey = val;
       switch (val) {
         //操作
         case 'caozuo':
@@ -354,112 +357,27 @@ export default {
             this.$message("此设备没有设备二维码");
           }
           break;
-        //关联系统
-        case 'linkSystem':
-          if (!this.onlyRead) {
-            this.systemList = this.tableData[row.row].LinkSystem || [];
-            this.myDialog.systemType = true;
-          }
-          break;
-        //关联资产
-        case 'LinkEquipLocalName':
-          if (this.linkNameFalg) {
-            this.myDialog.changeRea = true;
-          }
-          break;
-        //品牌型号弹窗
-        case 'DPManufacturerID':
-          if (!this.onlyRead) {
-            this.myDialog.firm = true;
-          }
-          break;
-        //供应商信息弹窗
-        case 'DPSupplierID':
-          if (!this.onlyRead) {
-            this.myDialog.supplier = true;
-          }
-          break;
-        //维修商信息弹窗
-        case 'DPMaintainerID':
-          if (!this.onlyRead) {
-            this.myDialog.maintainer = true;
-          }
-          break;
-        //保险公司信息
-        case 'DPInsurerID':
-          if (!this.onlyRead) {
-            this.myDialog.insurer = true;
-          }
-          break;
-        //供应合同编号
-        case 'LedgerParam.SupplyPurchase.SupplierContractID':
+        //关联设备数量
+        case 'Count':
           if (!this.onlyRead) {
-            let ContractIDflag = null;
-            let DPSdata = this.tableData[row.row].DPSupplierID;
-            if (DPSdata) {
-              ContractIDflag = DPSdata.split("-")[0];
-            }
-            if (!!ContractIDflag) {
-              this.id = ContractIDflag;
-              this.myDialog.supply = true;
-            } else {
-              this.$message("请先选择供应商");
-            }
+            this.myDialog.relevance = true
           }
           break;
-        //保险单号
-        case 'LedgerParam.InsuranceDoc.InsuranceNum':
+        //所属建筑楼层
+        case 'BuildingFloorInfoList':
           if (!this.onlyRead) {
-            let DPInsurerIDflag = null;
-            let DPIdata = this.tableData[row.row].DPInsurerID;
-            if (DPIdata) {
-              DPInsurerIDflag = DPIdata.split("-")[0];
-            }
-            if (!!DPInsurerIDflag) {
-              this.id = DPInsurerIDflag;
-              this.myDialog.guarantee = true;
-            } else {
-              this.$message("请先选择保险商");
-            }
-          }
-          break;
-        //保险文件--设备文档--安装质检报告
-        case 'LedgerParam.InsuranceDoc.InsuranceFile':
-        case 'LedgerParam.PhotoDoc.Archive':
-        case 'LedgerParam.Siteinstall.CheckReport':
-          let IPSdata = tools.dataForKey(this.tableData[row.row], val);
-          this.filesArr = IPSdata ? IPSdata : [];
-          this.myDialog.uploadFiles = true;
-          break;
-        //安装照片--安装图纸--设备铭牌照片--设备图纸
-        case 'LedgerParam.Siteinstall.InstallPic':
-        case 'LedgerParam.Siteinstall.InstallDrawing':
-        case 'LedgerParam.PhotoDoc.Nameplate':
-        case 'LedgerParam.PhotoDoc.Drawing':
-          let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
-          this.imgsArr = SSPPdata ? SSPPdata : [];
-          this.myDialog.uploadImgs = true;
-          break;
-        //设备照片
-        case 'LedgerParam.PhotoDoc.Pic':
-          let Pdata = tools.dataForKey(this.tableData[row.row], val);
-          this.picsArr = Pdata ? Pdata : [];
-          this.myDialog.pic = true;
-          break;
-        //包含的部件字段
-        case 'Count':
-          if (this.onlyRead) {
-            this.$router.push({ path: '/ledger/parts', query: { deviceId: infos.EquipID } });
-          } else {
-            this.$router.push({ path: '/ledger/partsmanage', query: { deviceId: infos.EquipID, typeId: this.mess.deviceId } });
+            this.$refs.editFloor.showDialog(this.tableData[row.row]);
           }
           break;
         default:
           break;
       }
-      this.row = row.row;
-      this.messKey = val;
     },
+    //建筑楼层
+    relateSuccess(data) {
+      this.tableData[this.row].BuildingFloorInfoList = data
+      this.tableExample.render()
+    }
   }
 };
 </script>

+ 1 - 1
src/views/model/file/index.vue

@@ -246,7 +246,7 @@ export default {
               //删除错误模型(多人登录会有问题)
               /****状态为0,上传人为本人并且上传列表无对应的模型文件 */
               // if (item.Status == 0 && item.UserName == this.userInfo.userName && !this.uploaderList.some(file => {return file.modelId == item.CurrentModelId})) {
-              //   request.deleteModelFileList(item.CurrentModelId, res => {console.log('删除错误模型:',item.CurrentModelId)})
+              //   request.deleteModelFileList({Id: item.CurrentModelId}, res => {console.log('删除错误模型:',item.CurrentModelId)})
               // }
             });
             this.tableData = res.Content;

+ 1 - 0
src/views/model/report/index.vue

@@ -414,6 +414,7 @@ export default {
       if (row.flag && row.flag === 'lost') {
         return 'warning-row';
       }
+      console.log(rowIndex,9381)
     },
     handleSizeChange(val) {// 切换每页显示数量
       this.page.pageSize = val;

+ 3 - 3
src/views/model/report/supplement.vue

@@ -37,9 +37,9 @@
               <p v-if="item.LedgerParam.PhotoDoc.Pic">{{photo.name}}<span>拍摄时间:{{photo.createTime | timeTransformation}}</span></p>
               <div class="img-box" v-if="item.LedgerParam.PhotoDoc.Pic">
                 <img :src="`/image-service/common/image_get?systemId=dataPlatform&key=${photo.key}`" alt="设备图片" v-if="photo.type !=='video'">
-                <video :src="'/image-service/common/image_get?systemId=dataPlatform&key='+photo.key" controls
-                  :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ photo.key" v-if="photo.type === 'video'" width="400px"
-                  height="300px"></video>
+                <!-- <video v-if="photo.type === 'video'" width="400" height="300" controls>
+                  <source :src="`/image-service/common/image_get?systemId=dataPlatform&key=${photo.key}`" type="video/mp4">
+                </video> -->
               </div>
             </div>
           </div>

+ 1 - 1
src/views/ready/buildfloor/addFloor/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <el-dialog :title="title" :visible.sync="dialogVisible" width="40%" @close="handleClose" id="messageDialog">
+  <el-dialog :title="title" :visible.sync="dialogVisible" width="45%" @close="handleClose" id="messageDialog">
     <el-row>
       <formItems :type="'Floor'" ref="formItems"></formItems>
     </el-row>

+ 4 - 1
src/views/screen/splitscreen/spaceledger/index.vue

@@ -40,6 +40,8 @@
                   <img :src="`/image-service/common/image_get?systemId=dataPlatform&key=${item.key}`" alt="空间图片">
                 </div>
               </div>
+              <div class="space-img" v-if="!spaceDetails.Pic">
+              </div>
               <div v-show="!spaceDetails.Pic" style="height:100%;transform: translateY(50%);textAlign:center;">
                 <i class="icon-wushuju iconfont"></i>
                 数据暂无
@@ -221,7 +223,8 @@ export default {
           RoomLocalName: this.spaceDetails.RoomLocalName,
           OutLine: this.spaceDetails.Outline,
           RoomID: this.spaceDetails.RoomID,
-          Color: "#a384fc",
+          Color: "#F56C6C",
+          HighLightFlag: true
         }
         that.scene.addZoneList([tempArr]);
         this.scene.isSpaceSelectable = false;