|
@@ -1,51 +1,50 @@
|
|
<template>
|
|
<template>
|
|
<!-- 待补充页面 -->
|
|
<!-- 待补充页面 -->
|
|
<div class="box">
|
|
<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>
|
|
- <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">
|
|
|
|
- <img :src="`/image-service/common/image_get?systemId=dataPlatform&key=${it.key}`" alt="铭牌图片">
|
|
|
|
- </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>
|
|
- <div class="photo" v-for="(photo,num) in item.LedgerParam.PhotoDoc.Pic" :key="num+photo">
|
|
|
|
- <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 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>
|
|
|
|
+ <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>
|
|
</div>
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -61,14 +60,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
pageData: [],
|
|
pageData: [],
|
|
- count: 0,
|
|
|
|
equipComDelList: null,
|
|
equipComDelList: null,
|
|
- page: {
|
|
|
|
- pageSize: 50,
|
|
|
|
- pageSizes: [10, 20, 50, 100],
|
|
|
|
- pageNumber: 1,
|
|
|
|
- total: 0
|
|
|
|
- },
|
|
|
|
canvasWidth: 400,
|
|
canvasWidth: 400,
|
|
canvasHeight: 280,
|
|
canvasHeight: 280,
|
|
scene: '',
|
|
scene: '',
|
|
@@ -93,21 +85,22 @@ export default {
|
|
return str;
|
|
return str;
|
|
},
|
|
},
|
|
timeTransformation(time) {// 时间转换
|
|
timeTransformation(time) {// 时间转换
|
|
- time = time.replace(/(\d+)\-(\d+)\-(\d+)\ (\d+)\:(\d+)\:(\d+)/, function () {
|
|
|
|
- let str = '';
|
|
|
|
- let ary = ['年', '月', '日', '时', '分'];
|
|
|
|
- let time = Array.prototype.concat.apply([], arguments);
|
|
|
|
- time = time.splice(1, 5);
|
|
|
|
- time.forEach((item, index) => {
|
|
|
|
- str += item + ary[index];
|
|
|
|
- })
|
|
|
|
- return str;
|
|
|
|
- })
|
|
|
|
|
|
+ time = time.substring(0, 16)
|
|
return time;
|
|
return time;
|
|
|
|
+ // time = time.replace(/(\d+)\-(\d+)\-(\d+)\ (\d+)\:(\d+)\:(\d+)/, function () {
|
|
|
|
+ // let str = '';
|
|
|
|
+ // let ary = ['年', '月', '日', '时', '分'];
|
|
|
|
+ // let time = Array.prototype.concat.apply([], arguments);
|
|
|
|
+ // time = time.splice(1, 5);
|
|
|
|
+ // time.forEach((item, index) => {
|
|
|
|
+ // str += item + ary[index];
|
|
|
|
+ // })
|
|
|
|
+ // return str;
|
|
|
|
+ // })
|
|
|
|
+ // return time;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- // this.getGraphy();
|
|
|
|
this.getToBeSuppement();
|
|
this.getToBeSuppement();
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -155,9 +148,7 @@ export default {
|
|
"Name": "familyName"
|
|
"Name": "familyName"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- Filters: `ModelId in ${this.equipComDelList}`,
|
|
|
|
- PageNumber: this.page.pageNumber,
|
|
|
|
- PageSize: this.page.pageSize
|
|
|
|
|
|
+ Filters: `ModelId in ${this.equipComDelList}`
|
|
}
|
|
}
|
|
toBeSupplementEquip(params, res => {
|
|
toBeSupplementEquip(params, res => {
|
|
this.pageData = res.Content;
|
|
this.pageData = res.Content;
|
|
@@ -250,6 +241,8 @@ export default {
|
|
.box {
|
|
.box {
|
|
background: #f2f2f2;
|
|
background: #f2f2f2;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
|
+ height: 100%;
|
|
|
|
+ overflow-y: auto;
|
|
ul {
|
|
ul {
|
|
.infinite-list-item {
|
|
.infinite-list-item {
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
@@ -339,11 +332,26 @@ export default {
|
|
}
|
|
}
|
|
.img-box {
|
|
.img-box {
|
|
width: 100%;
|
|
width: 100%;
|
|
- // text-align: center;
|
|
|
|
- img {
|
|
|
|
- vertical-align: middle;
|
|
|
|
- width: 400px;
|
|
|
|
|
|
+ .img-content {
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ position: relative;
|
|
|
|
+ width: calc(100%-20px);
|
|
height: 300px;
|
|
height: 300px;
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ text-align: center;
|
|
|
|
+ background: #ebeef5;
|
|
|
|
+ margin-right: 20px;
|
|
|
|
+ img {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 50%;
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
+ width: 400px;
|
|
|
|
+ vertical-align: middle;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+canvas {
|
|
|
|
+ position: static !important;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|