|
@@ -1,54 +1,50 @@
|
|
|
<template>
|
|
|
<!-- 待补充页面 -->
|
|
|
<div class="box">
|
|
|
- <ul class="infinite-list" style="overflow:auto">
|
|
|
- <li class="infinite-list-item">
|
|
|
- <div class="content-box" v-for="(item,index) in pageData" :key="index">
|
|
|
- <div class="content-top">
|
|
|
- <div class="details">
|
|
|
- <h4>{{index |numTransformation(4)}}<el-badge value="待补充" class="item" type="success"></el-badge>
|
|
|
- </h4>
|
|
|
- <h4>{{`${item.BuildingName}建筑模型`}}-{{`${item.FloorName}层`}}-{{`${item.EquipLocalName?item.EquipLocalName:item.EquipName}`}}</h4>
|
|
|
- <b>标记码:<span @dblclick="copyContent" id="copy">{{item.EquipID}}</span></b><span class="copy" @click="clickCopy">点击复制</span>
|
|
|
- <input id="copyContent" type="text" @dblclick="copyContent" style="border:none;opacity:0;position:absolute;top:0;left:0;">
|
|
|
- <p style="margin-top:30px;">建议使用的Revit族:{{item.Res}}</p>
|
|
|
- <p>设计图纸中编码:{{item.CADID}}</p>
|
|
|
- <!-- <p><span>设备类型:{{'XXXXXXX'}}</span><span>设备ID:{{'XXXXXXX'}}</span></p> -->
|
|
|
- <p><span>资产族:{{item.FamilyName.Name}}</span></p>
|
|
|
- <p><span style="width:500px;">资产ID:{{item.EquipID}}</span></p>
|
|
|
- <p>现场发现人:{{item.FindPeople}}</p>
|
|
|
- </div>
|
|
|
- <div class="plan">
|
|
|
- <p>平面图上的位置:<span>{{item.local | localTransformation}}</span></p>
|
|
|
- <div class="img-box">
|
|
|
- <canvas :id="'canvas'+index" :width="canvasWidth" :height="canvasHeight" ref="canvas" tabindex="0" :data-modelid="item.ModelId"
|
|
|
- :data-EquipID='item.EquipID' :data-x="item.local.X" :data-y="item.local.Y"></canvas>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <div class="content-box" v-for="(item,index) in pageData" :key="index">
|
|
|
+ <div class="content-top">
|
|
|
+ <div class="details">
|
|
|
+ <h4>{{index |numTransformation(4)}}<el-badge value="待补充" class="item" type="success"></el-badge>
|
|
|
+ </h4>
|
|
|
+ <h4>{{`${item.BuildingName}建筑模型`}}-{{`${item.FloorName}层`}}-{{`${item.EquipLocalName?item.EquipLocalName:item.EquipName}`}}</h4>
|
|
|
+ <b>标记码:<span @dblclick="copyContent" id="copy">{{item.EquipID}}</span></b><span class="copy" @click="clickCopy">点击复制</span>
|
|
|
+ <input id="copyContent" type="text" @dblclick="copyContent" style="border:none;opacity:0;position:absolute;top:0;left:0;">
|
|
|
+ <p style="margin-top:30px;">建议使用的Revit族:{{item.Res}}</p>
|
|
|
+ <p>设计图纸中编码:{{item.CADID}}</p>
|
|
|
+ <!-- <p><span>设备类型:{{'XXXXXXX'}}</span><span>设备ID:{{'XXXXXXX'}}</span></p> -->
|
|
|
+ <p><span>资产族:{{item.FamilyName.Name}}</span></p>
|
|
|
+ <p><span style="width:500px;">资产ID:{{item.EquipID}}</span></p>
|
|
|
+ <p>现场发现人:{{item.FindPeople}}</p>
|
|
|
+ </div>
|
|
|
+ <div class="plan">
|
|
|
+ <p>平面图上的位置:<span>{{item.local | localTransformation}}</span></p>
|
|
|
+ <div class="img-box">
|
|
|
+ <canvas :id="'canvas'+index" :width="canvasWidth" :height="canvasHeight" ref="canvas" tabindex="0" :data-modelid="item.ModelId"
|
|
|
+ :data-EquipID='item.EquipID' :data-x="item.local.X" :data-y="item.local.Y"></canvas>
|
|
|
</div>
|
|
|
- <div class="content-bottom">
|
|
|
- <div class="photo" v-for="(it,ind) in item.LedgerParam.PhotoDoc.Nameplate" :key="ind">
|
|
|
- <p>{{it.name}}<span>拍摄时间:{{it.createTime | timeTransformation}}</span></p>
|
|
|
- <div class="img-box">
|
|
|
- <div class="img-content">
|
|
|
- <img :src="`/image-service/common/image_get?systemId=dataPlatform&key=${it.key}`" alt="铭牌图片">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="content-bottom">
|
|
|
+ <div class="photo" v-for="(it,ind) in item.LedgerParam.PhotoDoc.Nameplate" :key="ind">
|
|
|
+ <p>{{it.name}}<span>拍摄时间:{{it.createTime | timeTransformation}}</span></p>
|
|
|
+ <div class="img-box">
|
|
|
+ <div class="img-content">
|
|
|
+ <img :src="`/image-service/common/image_get?systemId=dataPlatform&key=${it.key}`" alt="铭牌图片">
|
|
|
</div>
|
|
|
- <div class="photo" v-for="(photo,num) in item.LedgerParam.PhotoDoc.Pic" :key="num+photo">
|
|
|
- <div class="img-box" v-if="item.LedgerParam.PhotoDoc.Pic">
|
|
|
- <p v-if="item.LedgerParam.PhotoDoc.Pic && photo.type !== 'video'">
|
|
|
- {{photo.name}}<span>拍摄时间:{{photo.createTime | timeTransformation}}</span>
|
|
|
- </p>
|
|
|
- <div class="img-content" v-if="photo.type !=='video'">
|
|
|
- <img :src="`/image-service/common/image_get?systemId=dataPlatform&key=${photo.key}`" alt="现场图片">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="photo" v-for="(photo,num) in item.LedgerParam.PhotoDoc.Pic" :key="num+photo">
|
|
|
+ <div class="img-box" v-if="item.LedgerParam.PhotoDoc.Pic">
|
|
|
+ <p v-if="item.LedgerParam.PhotoDoc.Pic && photo.type !== 'video'">
|
|
|
+ {{photo.name}}<span>拍摄时间:{{photo.createTime | timeTransformation}}</span>
|
|
|
+ </p>
|
|
|
+ <div class="img-content" v-if="photo.type !=='video'">
|
|
|
+ <img :src="`/image-service/common/image_get?systemId=dataPlatform&key=${photo.key}`" alt="现场图片">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -64,14 +60,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
pageData: [],
|
|
|
- count: 0,
|
|
|
equipComDelList: null,
|
|
|
- page: {
|
|
|
- pageSize: 50,
|
|
|
- pageSizes: [10, 20, 50, 100],
|
|
|
- pageNumber: 1,
|
|
|
- total: 0
|
|
|
- },
|
|
|
canvasWidth: 400,
|
|
|
canvasHeight: 280,
|
|
|
scene: '',
|
|
@@ -159,13 +148,10 @@ export default {
|
|
|
"Name": "familyName"
|
|
|
}
|
|
|
],
|
|
|
- Filters: `ModelId in ${this.equipComDelList}`,
|
|
|
- PageNumber: this.page.pageNumber,
|
|
|
- PageSize: this.page.pageSize
|
|
|
+ Filters: `ModelId in ${this.equipComDelList}`
|
|
|
}
|
|
|
toBeSupplementEquip(params, res => {
|
|
|
this.pageData = res.Content;
|
|
|
- console.log(this.pageData, 123)
|
|
|
this.pageData.forEach(item => {
|
|
|
if (item.BIMLocation) {
|
|
|
let local = {};
|
|
@@ -361,7 +347,6 @@ export default {
|
|
|
top: 50%;
|
|
|
transform: translate(-50%, -50%);
|
|
|
width: 400px;
|
|
|
- height: 100%;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
}
|