|
@@ -7,12 +7,14 @@
|
|
|
<!-- 建筑选择 -->
|
|
|
<span style="padding-right:12px;color:#999;vertical-align: middle;">建筑名称</span>
|
|
|
<el-select v-model="buildId" style="margin-right:10px;" placeholder="请选择" @change="changeBuild">
|
|
|
- <el-option v-for="item in buildList" :key="item.BuildID" :label="item.BuildLocalName" :value="item.BuildID"></el-option>
|
|
|
+ <el-option v-for="item in buildList" :key="item.id" :label="item.localName"
|
|
|
+ :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
<!-- 楼层选择 -->
|
|
|
<span style="padding-right:12px;color:#999;">楼层</span>
|
|
|
<el-select v-model="floorId" placeholder="请选择" @change="changeFloor">
|
|
|
- <el-option v-for="item in floorList" :key="item.FloorID" :label="item.FloorLocalName" :value="item.FloorID"></el-option>
|
|
|
+ <el-option v-for="item in floorList" :key="item.id" :label="item.localName"
|
|
|
+ :value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
<!-- 选择时间插件 -->
|
|
|
<build-time :timeArr="timeArr" @checkTime="checkTime"></build-time>
|
|
@@ -31,25 +33,29 @@
|
|
|
<div class="label_view">
|
|
|
<el-scrollbar>
|
|
|
<div class="swiper-wrapper">
|
|
|
- <div class="swiper-slide" :class="checkPointClass == 'all' ? 'active_swiper' : ''" @click="checkPoint('all','all','all')">
|
|
|
+ <div class="swiper-slide" :class="checkPointClass == 'all' ? 'active_swiper' : ''"
|
|
|
+ @click="checkPoint('all','all','all')">
|
|
|
<div class="all_view">
|
|
|
<h3>全部</h3>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="swiper-slide" v-for="(item,index) in PTArr" :key="index" :class="checkPointClass == index ? 'active_swiper' : ''"
|
|
|
- @click="checkPoint(index,item.Id,item.Name)">
|
|
|
+ <div class="swiper-slide" v-for="(item,index) in PTArr" :key="index"
|
|
|
+ :class="checkPointClass == index ? 'active_swiper' : ''"
|
|
|
+ @click="checkPoint(index,item.Id,item.Name)">
|
|
|
<div class="img_view">
|
|
|
<div :class="index == 0 ? 'msg_view' : 'title_view'">
|
|
|
- <h3>{{item.Name}}</h3>
|
|
|
+ <h3>{{ item.Name }}</h3>
|
|
|
<p>
|
|
|
附近的资产:
|
|
|
- <span>{{item.Total}}</span> 个(
|
|
|
- <em>{{item.Nocheck}}</em> 个未完成修订)
|
|
|
+ <span>{{ item.Total }}</span> 个(
|
|
|
+ <em>{{ item.Nocheck }}</em> 个未完成修订)
|
|
|
</p>
|
|
|
</div>
|
|
|
<img v-if="index != 0" v-load @error="setErrorImg"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Image +'&width=200'" :alt="item.Name">
|
|
|
- <el-button type="text" v-if="index != 0" class="btn" @click.stop="getTable(item.Id,index)">查看详情</el-button>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Image +'&width=200'"
|
|
|
+ :alt="item.Name">
|
|
|
+ <el-button type="text" v-if="index != 0" class="btn" @click.stop="getTable(item.Id,index)">查看详情
|
|
|
+ </el-button>
|
|
|
<i v-if="index != 0" class="iconfont icon-shuaxin icon" @click.stop="refreshImg(index)"></i>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -63,7 +69,7 @@
|
|
|
</div>
|
|
|
<!-- 控制点位标签显示 -->
|
|
|
<div class="label_show">
|
|
|
- <el-button plain @click="labelShowBtn">{{labelChecked}}</el-button>
|
|
|
+ <el-button plain @click="labelShowBtn">{{ labelChecked }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 全部与未完成 -->
|
|
@@ -81,25 +87,30 @@
|
|
|
<div class="undo_btn" @click="download">
|
|
|
<el-button plain>下载</el-button>
|
|
|
</div>
|
|
|
- <p class="build_msg" v-show="buildMsgShow" :class="buildMsg ? 'blink' : ''">其他设备族的资产只能在对应页签内维护,设备族变更的资产刷新后不匹配的信息点值将丢失,将会在对应的页签内显示</p>
|
|
|
+ <p class="build_msg" v-show="buildMsgShow" :class="buildMsg ? 'blink' : ''">
|
|
|
+ 其他设备族的资产只能在对应页签内维护,设备族变更的资产刷新后不匹配的信息点值将丢失,将会在对应的页签内显示</p>
|
|
|
</div>
|
|
|
<!-- 主体表格与tab -->
|
|
|
<div class="build_table">
|
|
|
<el-tabs type="card" v-model="tabAvtive" @tab-click="createHotBtn">
|
|
|
- <el-tab-pane v-for="(item,index) in facilityList" :key="index" :name="'table' + index" :label="item.FamilyName + '(' + item.Count + ')'">
|
|
|
+ <el-tab-pane v-for="(item,index) in facilityList" :key="index" :name="'table' + index"
|
|
|
+ :label="item.FamilyName + '(' + item.Count + ')'">
|
|
|
<div style="padding: .2rem;width:100%;padding-bottom:35px;" v-loading="loading">
|
|
|
<div :id="'table' + index" v-loading="tableLoading"></div>
|
|
|
<div class="data_page center">
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="currentPage[tabChecked]"
|
|
|
- :page-sizes="pageSizeArrs" :page-size="pageSizeArr[tabChecked]" layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="pageCount[tabChecked]"></el-pagination>
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ :current-page.sync="currentPage[tabChecked]"
|
|
|
+ :page-sizes="pageSizeArrs" :page-size="pageSizeArr[tabChecked]"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="pageCount[tabChecked]"></el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</div>
|
|
|
<!-- 图片查看浮层 -->
|
|
|
- <div class="mouse_move" style="backgroundColor:#ccc;height:3px;cursor:n-resize;" @mousedown="drag" @mouseup="mouseUp"></div>
|
|
|
+ <div class="mouse_move" style="backgroundColor:#ccc;height:3px;cursor:n-resize;" @mousedown="drag"
|
|
|
+ @mouseup="mouseUp"></div>
|
|
|
<div class="build_pic" v-bind:style="{height:picHeight+'px'}" ref="picview">
|
|
|
<!-- <div class="pic_show" @click="picNoShow">关闭</div> -->
|
|
|
<div class="turn_left">
|
|
@@ -111,36 +122,58 @@
|
|
|
<div class="swiper-slide" v-for="(item,$index) in tablePicArr.Nameplate" :key="item.Key">
|
|
|
<div class="img_view">
|
|
|
<img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key" :title="item.Name" :alt="item.Name">
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImgUrl('Nameplate',$index)"></i>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="swiper-slide" v-for="(item,$index) in tablePicArr.Pic" :key="item.Key">
|
|
|
<div class="img_view" v-if="item.Type != 'image_video'">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '铭牌照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备正面照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '带二维码的设备远景照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备左侧照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备右侧照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '设备背面照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '带二维码的设备近景照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '视频资料' && item.Type == 'image'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '铭牌照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '设备正面照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '带二维码的设备远景照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '设备左侧照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '设备右侧照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '设备背面照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '带二维码的设备近景照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '视频资料' && item.Type == 'image'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
<div v-if="item.Type == 'video'" style="width:100%;height:100%;">
|
|
|
- <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.Key + '?systemId=dataPlatform'" controls
|
|
|
- :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.Key) +'&width=200'"></video>
|
|
|
+ <video style="width:100%;height:100%;"
|
|
|
+ :src="'/image-service/common/file_get/'+ item.Key + '?systemId=dataPlatform'" controls
|
|
|
+ :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.Key) +'&width=200'"></video>
|
|
|
</div>
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '其他照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
- <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)" v-if="item.Name == '全景照片'"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '其他照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
+ <img v-load @error="setErrorImg" @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
+ v-if="item.Name == '全景照片'"
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ :title="item.Name" :alt="item.Name">
|
|
|
<!-- <i
|
|
|
@click="delPic($index)"
|
|
|
class="iconfont icon-guanbi"
|
|
@@ -152,7 +185,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-show="!tablePicArr.Pic.length">
|
|
|
- <p>{{ tablePicMsg ? tablePicMsg : '请选择资产'}}</p>
|
|
|
+ <p>{{ tablePicMsg ? tablePicMsg : '请选择资产' }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="turn_right">
|
|
@@ -164,8 +197,9 @@
|
|
|
<div class="iframe_no" @click="iframeShow = false">
|
|
|
<i class="iconfont icon-guanbi"></i>
|
|
|
</div>
|
|
|
- <iframe id="google_ads_frame2" name="google_ads_frame2" frameborder="0" :src="iframeSrc" marginwidth="0" marginheight="0" vspace="0"
|
|
|
- hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true"></iframe>
|
|
|
+ <iframe id="google_ads_frame2" name="google_ads_frame2" frameborder="0" :src="iframeSrc" marginwidth="0"
|
|
|
+ marginheight="0" vspace="0"
|
|
|
+ hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true"></iframe>
|
|
|
</div>
|
|
|
<!-- 编辑点位标签弹窗 -->
|
|
|
<el-dialog title="点位标签编辑" class="modification" :visible.sync="dialogTableVisible" @close="closeDialog">
|
|
@@ -173,21 +207,23 @@
|
|
|
<div class="mod_title">
|
|
|
<div class="qr_code">
|
|
|
<img v-if="pointList.PointId"
|
|
|
- :src="'/ScanBuilding/service/qrcode/point?projectId=' + projectId + '&pointId=' + pointList.PointId + '&FloorId=' + floorId + '&width=200&height=200'"
|
|
|
- alt>
|
|
|
+ :src="'/ScanBuilding/service/qrcode/point?projectId=' + projectId + '&pointId=' + pointList.PointId + '&FloorId=' + floorId + '&width=200&height=200'"
|
|
|
+ alt>
|
|
|
<p v-else>暂无二维码</p>
|
|
|
</div>
|
|
|
<!-- 头部信息 -->
|
|
|
<div class="msg_main">
|
|
|
- <p :title="floorName">现场位置:{{floorName ? floorName : '暂无'}}</p>
|
|
|
+ <p :title="floorName">现场位置:{{ floorName ? floorName : '暂无' }}</p>
|
|
|
<div class="input_view">
|
|
|
- <input type="text" v-model="pointList.PointName" @focus="nameShow = true" @blur="nameNotShow" @keyup.enter="savePointChange"
|
|
|
- placeholder="点位标签的名称">
|
|
|
+ <input type="text" v-model="pointList.PointName" @focus="nameShow = true" @blur="nameNotShow"
|
|
|
+ @keyup.enter="savePointChange"
|
|
|
+ placeholder="点位标签的名称">
|
|
|
<i class="iconfont icon-check" v-show="nameShow" @click="savePointChange"></i>
|
|
|
</div>
|
|
|
<div class="input_view">
|
|
|
- <input type="text" v-model="pointList.PointLocalId" @focus="noShow = true" @blur="noNotShow" @keyup.enter="savePointChange"
|
|
|
- placeholder="点位标签的本地编码">
|
|
|
+ <input type="text" v-model="pointList.PointLocalId" @focus="noShow = true" @blur="noNotShow"
|
|
|
+ @keyup.enter="savePointChange"
|
|
|
+ placeholder="点位标签的本地编码">
|
|
|
<i class="iconfont icon-check" v-show="noShow" @click="savePointChange"></i>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -198,14 +234,14 @@
|
|
|
<div class="table_header">编码及关系</div>
|
|
|
<table>
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
- <td>点位标签id</td>
|
|
|
- <td>{{pointList.PointId}}</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>模型id</td>
|
|
|
- <td>{{pointList.BimId ? pointList.BimId : '暂无'}}</td>
|
|
|
- </tr>
|
|
|
+ <tr>
|
|
|
+ <td>点位标签id</td>
|
|
|
+ <td>{{ pointList.PointId }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>模型id</td>
|
|
|
+ <td>{{ pointList.BimId ? pointList.BimId : '暂无' }}</td>
|
|
|
+ </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
@@ -217,57 +253,70 @@
|
|
|
<ul>
|
|
|
<li v-for="(item,index) in imgList.place" v-if="imgList.place.length" class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
<li v-for="(item,index) in imgList.nameplate" v-if="imgList.nameplate.length" class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
<li v-for="(item,index) in imgList.ahead" v-if="imgList.ahead.length" class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
- <li v-for="(item,index) in imgList.qrCodeLooger" v-if="imgList.qrCodeLooger.length" class="img_view">
|
|
|
+ <li v-for="(item,index) in imgList.qrCodeLooger" v-if="imgList.qrCodeLooger.length"
|
|
|
+ class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
<li v-for="(item,index) in imgList.left" v-if="imgList.left.length" class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
<li v-for="(item,index) in imgList.right" v-if="imgList.right.length" class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
<li v-for="(item,index) in imgList.bottom" v-if="imgList.bottom.length" class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
<li v-for="(item,index) in imgList.qrCode" v-if="imgList.qrCode.length" class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
<li v-for="(item,index) in imgList.panorama" v-if="imgList.panorama.length" class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
- <li v-for="(item,index) in imgList.else" v-if="imgList.else.length && item.Type != 'image_video'" class="img_view">
|
|
|
+ <li v-for="(item,index) in imgList.else" v-if="imgList.else.length && item.Type != 'image_video'"
|
|
|
+ class="img_view">
|
|
|
<img @click="seeBig(item.Key,item.Name,item.Type)"
|
|
|
- :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'" alt>
|
|
|
+ :src="'/image-service/common/image_get?systemId=dataPlatform&key='+ item.Key +'&width=200'"
|
|
|
+ alt>
|
|
|
<i class="iconfont icon-shuaxin icon" @click.stop="changeImage(index)"></i>
|
|
|
</li>
|
|
|
<li v-for="item in imgList.video" style="border: 1px solid #ccc;">
|
|
|
- <video style="width:100%;height:100%;" :src="'/image-service/common/file_get/'+ item.Key + '?systemId=dataPlatform'" controls
|
|
|
- :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.Key) +'&width=200'"></video>
|
|
|
+ <video style="width:100%;height:100%;"
|
|
|
+ :src="'/image-service/common/file_get/'+ item.Key + '?systemId=dataPlatform'" controls
|
|
|
+ :poster="'/image-service/common/image_get?systemId=dataPlatform&key='+ delVideo(item.Key) +'&width=200'"></video>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
@@ -330,13 +379,15 @@ import {
|
|
|
queryProperty, //数据中心-资产查询
|
|
|
deleteProperty, //数据中心-删除资产
|
|
|
updateProperty, //数据中心-更新资产
|
|
|
- getDataDictionary, //数据中心-查询表头
|
|
|
+ // getDataDictionary, //数据中心-查询表头
|
|
|
queryPropertyTypeCount, //数据中心-资产分类及数量
|
|
|
queryPropertyPoint, //数据中心-位置标签及对应资产数量
|
|
|
} from "@/api/scan/request";
|
|
|
+import { getDataDictionary } from "@/api/dict";
|
|
|
import { buildingQuery } from '@/api/object/build';
|
|
|
import { floorQuery } from '@/api/object/floor';
|
|
|
import { mapGetters, mapActions } from "vuex"
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
buildTime,
|
|
@@ -427,14 +478,14 @@ export default {
|
|
|
getAllFamily() {
|
|
|
let pa = {
|
|
|
data: {
|
|
|
- Orders: 'Family asc',
|
|
|
- Distinct: true,
|
|
|
- PageSize: 500,
|
|
|
- Projection: ["Family", "FamilyName"]
|
|
|
+ orders: 'family asc',
|
|
|
+ distinct: true,
|
|
|
+ pageSize: 500,
|
|
|
+ projection: ["family", "familyName"]
|
|
|
}
|
|
|
}
|
|
|
getEquipBelongs(pa, res => {
|
|
|
- this.AllFamily = res.Content.map(t => {
|
|
|
+ this.AllFamily = res.content.map(t => {
|
|
|
return {
|
|
|
Code: t.Family,
|
|
|
Name: t.FamilyName
|
|
@@ -500,14 +551,14 @@ export default {
|
|
|
"删除图片", {
|
|
|
dangerouslyUseHTMLString: true
|
|
|
}).then(() => {
|
|
|
- if (this.tablePicArr.Pic[index].name == "铭牌照片") {
|
|
|
- this.delPicPost("Nameplate", this.tablePicArr.Pic[index].key)
|
|
|
- } else {
|
|
|
- this.delPicPost("Pic", this.tablePicArr.Pic[index].key)
|
|
|
- }
|
|
|
- }).catch(_ => {
|
|
|
- this.$message("取消删除")
|
|
|
- })
|
|
|
+ if (this.tablePicArr.Pic[index].name == "铭牌照片") {
|
|
|
+ this.delPicPost("Nameplate", this.tablePicArr.Pic[index].key)
|
|
|
+ } else {
|
|
|
+ this.delPicPost("Pic", this.tablePicArr.Pic[index].key)
|
|
|
+ }
|
|
|
+ }).catch(_ => {
|
|
|
+ this.$message("取消删除")
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$message.error("请确定该资产有pic信息")
|
|
|
}
|
|
@@ -596,7 +647,7 @@ export default {
|
|
|
//获取建筑列表
|
|
|
getBuilding() {
|
|
|
buildingQuery({}, res => {
|
|
|
- this.buildList = res.Content;
|
|
|
+ this.buildList = res.content;
|
|
|
});
|
|
|
},
|
|
|
//获取点位标签详情
|
|
@@ -675,9 +726,9 @@ export default {
|
|
|
//获取点位标签
|
|
|
getPT() {
|
|
|
let pa = {
|
|
|
- buildingId:this.buildId,
|
|
|
- endingTime:this.checkTimeArr[1],
|
|
|
- startTime:this.checkTimeArr[0]
|
|
|
+ buildingId: this.buildId,
|
|
|
+ endingTime: this.checkTimeArr[1],
|
|
|
+ startTime: this.checkTimeArr[0]
|
|
|
}
|
|
|
if (this.floorId == 'all') {
|
|
|
pa.floorId = `all`
|
|
@@ -693,20 +744,20 @@ export default {
|
|
|
//获取楼层列表
|
|
|
getFloorData() {
|
|
|
let param = {
|
|
|
- Filters: `BuildID='${this.buildId}'`,
|
|
|
- Orders: 'FloorSequenceID desc'
|
|
|
+ filters: `buildingId='${this.buildId}'`,
|
|
|
+ orders: 'floorSequenceId desc'
|
|
|
};
|
|
|
floorQuery(param, res => {
|
|
|
- this.floorList = res.Content
|
|
|
+ this.floorList = res.content
|
|
|
this.floorList.unshift({
|
|
|
- FloorName: "全部",
|
|
|
- FloorLocalName: "全部",
|
|
|
- FloorID: "all"
|
|
|
+ name: "全部",
|
|
|
+ localName: "全部",
|
|
|
+ floorId: "all"
|
|
|
}, {
|
|
|
- FloorName: "未明确楼层",
|
|
|
- FloorLocalName: "未明确楼层",
|
|
|
- FloorID: "noKnow"
|
|
|
- })
|
|
|
+ name: "未明确楼层",
|
|
|
+ localName: "未明确楼层",
|
|
|
+ floorId: "noKnow"
|
|
|
+ })
|
|
|
});
|
|
|
},
|
|
|
//保存设备资产的更新
|
|
@@ -827,13 +878,11 @@ export default {
|
|
|
if (!!this.code) {
|
|
|
let pa = {
|
|
|
type: this.code,
|
|
|
- data: {
|
|
|
- Orders: 'sort asc',
|
|
|
- PageSize: 500
|
|
|
- }
|
|
|
+ orders: 'sort asc',
|
|
|
+ pageSize: 500
|
|
|
}
|
|
|
getDataDictionary(pa, res => {
|
|
|
- this.myHotHeaderArr[this.tabChecked] = res.Content;
|
|
|
+ this.myHotHeaderArr[this.tabChecked] = res.content;
|
|
|
this.getTableMain();
|
|
|
})
|
|
|
}
|
|
@@ -841,31 +890,31 @@ export default {
|
|
|
//获取表格主体内容
|
|
|
async getTableMain() {
|
|
|
let pa = {
|
|
|
- PageNumber: this.currentPage[this.tabChecked],
|
|
|
- PageSize: this.pageSizeArr[this.tabChecked],
|
|
|
- Filters: `CreateTime>='${this.checkTimeArr[0]}';CreateTime<='${this.checkTimeArr[1]}';BuildingId='${this.buildId}';Family='${this.code}'`
|
|
|
+ pageNumber: this.currentPage[this.tabChecked],
|
|
|
+ pageSize: this.pageSizeArr[this.tabChecked],
|
|
|
+ filters: `createTime>='${this.checkTimeArr[0]}';createTime<='${this.checkTimeArr[1]}';buildingId='${this.buildId}';family='${this.code}'`
|
|
|
}
|
|
|
//;codeType in [ -1,-2,-3,0,2]
|
|
|
// 添加建筑条件
|
|
|
if (this.floorId == 'noKnow') {
|
|
|
- pa.Filters += `;FloorId isNull`
|
|
|
+ pa.filters += `;floorId isNull`
|
|
|
} else if (this.floorId != 'all') {
|
|
|
- pa.Filters += `;FloorId='${this.floorId}'`
|
|
|
+ pa.filters += `;floorId='${this.floorId}'`
|
|
|
}
|
|
|
// 添加完成修订条件
|
|
|
if (this.checked === 0) {
|
|
|
- pa.Filters += `;Checked=false or Checked isNull`
|
|
|
+ pa.filters += `;checked=false or checked isNull`
|
|
|
}
|
|
|
// 添加标签条件
|
|
|
if (!this.pointCheck) {
|
|
|
- pa.Filters += `;PointId isNull`
|
|
|
+ pa.filters += `;pointId isNull`
|
|
|
} else if (this.pointCheck != 'all') {
|
|
|
- pa.Filters += `;PointId='${this.pointCheck}'`
|
|
|
+ pa.filters += `;pointId='${this.pointCheck}'`
|
|
|
}
|
|
|
queryProperty(pa, res => {
|
|
|
- let data = res.Content
|
|
|
+ let data = res.content
|
|
|
this.myHotMainArr[this.tabChecked] = data;
|
|
|
- this.pageCount[this.tabChecked] = res.Total;
|
|
|
+ this.pageCount[this.tabChecked] = res.total;
|
|
|
let dom = this.myHotArr[this.tabChecked];
|
|
|
this.tableLoading = false;
|
|
|
this.deepArr = this.deepCopy(data);
|
|
@@ -936,13 +985,13 @@ export default {
|
|
|
if (!!this.myHotArr[this.tabChecked]) {
|
|
|
let fileName = ''
|
|
|
this.buildList.map(item => {
|
|
|
- if (item.BuildID == this.buildId) {
|
|
|
- fileName += item.BuildLocalName
|
|
|
+ if (item.id == this.buildId) {
|
|
|
+ fileName += item.localName
|
|
|
}
|
|
|
})
|
|
|
this.floorList.map(item => {
|
|
|
- if (item.FloorID == this.floorId) {
|
|
|
- fileName += '-' + item.FloorLocalName
|
|
|
+ if (item.id == this.floorId) {
|
|
|
+ fileName += '-' + item.localName
|
|
|
}
|
|
|
})
|
|
|
this.facilityList.map((item, index) => {
|
|
@@ -1089,7 +1138,7 @@ export default {
|
|
|
.rowsMapper.__arrayMap;
|
|
|
let infos = this.myHotMainArr[this.tabChecked][
|
|
|
trimmedArr[sortArr[rowArr.row]]
|
|
|
- ];
|
|
|
+ ];
|
|
|
this.getInfors(infos, rowArr);
|
|
|
} else if (isSort) {
|
|
|
//排序后的数组
|
|
@@ -1106,6 +1155,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
getInfors(data, rowArr, falg = false) {
|
|
|
+ debugger
|
|
|
let val = this.myHotArr[this.tabChecked].getActiveEditor().prop;
|
|
|
this.$refs.recommend.randerData(data, val, this.myHotHeaderArr[this.tabChecked])
|
|
|
if (data.LedgerParam.PhotoDoc && (data.LedgerParam.PhotoDoc.Pic || data.LedgerParam.PhotoDoc.Nameplate)) {
|
|
@@ -1141,8 +1191,8 @@ export default {
|
|
|
changeFloor() {
|
|
|
this.checkPointClass = -1;
|
|
|
for (let i = 0; i < this.floorList.length; i++) {
|
|
|
- if (this.floorId == this.floorList[i].FloorId) {
|
|
|
- this.floorName = this.floorList[i].FloorLocalName;
|
|
|
+ if (this.floorId == this.floorList[i].floorId) {
|
|
|
+ this.floorName = this.floorList[i].localName;
|
|
|
}
|
|
|
}
|
|
|
this.getPT();
|
|
@@ -1506,7 +1556,7 @@ export default {
|
|
|
.rowsMapper.__arrayMap;
|
|
|
infos = this.myHotMainArr[this.tabChecked][
|
|
|
trimmedArr[sortArr[row]]
|
|
|
- ];
|
|
|
+ ];
|
|
|
} else if (isSort) {
|
|
|
//排序后的数组
|
|
|
let sortArr = this.myHotArr[this.tabChecked].getPlugin("columnSorting")
|
|
@@ -1587,16 +1637,16 @@ export default {
|
|
|
value: "完成修订"
|
|
|
}
|
|
|
}, {
|
|
|
- data: "PointName",
|
|
|
- readOnly: true
|
|
|
- }, {
|
|
|
- editor: "chosen",
|
|
|
- data: "Family",
|
|
|
- renderer: tools.customDropdownRenderer,
|
|
|
- chosenOptions: {
|
|
|
- data: this.AllFamily
|
|
|
- }
|
|
|
- });
|
|
|
+ data: "PointName",
|
|
|
+ readOnly: true
|
|
|
+ }, {
|
|
|
+ editor: "chosen",
|
|
|
+ data: "Family",
|
|
|
+ renderer: tools.customDropdownRenderer,
|
|
|
+ chosenOptions: {
|
|
|
+ data: this.AllFamily
|
|
|
+ }
|
|
|
+ });
|
|
|
data = data.filter(item => item)
|
|
|
return data;
|
|
|
},
|
|
@@ -1643,6 +1693,7 @@ export default {
|
|
|
.page-content {
|
|
|
position: relative;
|
|
|
}
|
|
|
+
|
|
|
@import "../../../components/data_admin/buildData/style.scss";
|
|
|
</style>
|
|
|
|
|
@@ -1651,28 +1702,34 @@ export default {
|
|
|
.el-tabs__header {
|
|
|
width: 100%;
|
|
|
}
|
|
|
+
|
|
|
.el-dialog {
|
|
|
width: 900px;
|
|
|
height: auto;
|
|
|
}
|
|
|
+
|
|
|
.center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
+
|
|
|
.el-radio-button__inner {
|
|
|
width: 90px;
|
|
|
}
|
|
|
+
|
|
|
.build_label {
|
|
|
.label_view {
|
|
|
padding: 0 4rem;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.build_pic {
|
|
|
.turn_right {
|
|
|
right: 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.content_box {
|
|
|
max-height: 440px;
|
|
|
overflow-y: auto;
|