|
@@ -3,14 +3,21 @@
|
|
<el-row style="padding:0 10px;margin-bottom:10px;">
|
|
<el-row style="padding:0 10px;margin-bottom:10px;">
|
|
<div style="float:left;">
|
|
<div style="float:left;">
|
|
<label>选择时间范围 : </label>
|
|
<label>选择时间范围 : </label>
|
|
- <el-date-picker v-model="value" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
|
|
|
+ <el-date-picker
|
|
|
|
+ v-model="value"
|
|
|
|
+ type="daterange"
|
|
|
|
+ range-separator="至"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
+ @change="handleTime">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</div>
|
|
</div>
|
|
<div style="float:left;margin-left:10px;">
|
|
<div style="float:left;margin-left:10px;">
|
|
<label>发现问题:</label>
|
|
<label>发现问题:</label>
|
|
- <span>无</span>
|
|
|
|
|
|
+ <span>{{total}}</span>
|
|
</div>
|
|
</div>
|
|
- <el-button style="float:right;" :disabled="true">查看收集到的问题</el-button>
|
|
|
|
|
|
+ <el-button style="float:right;" :disabled="total?false:true" @click="handleIssue">查看收集到的问题</el-button>
|
|
</el-row>
|
|
</el-row>
|
|
<div style="background:#fff;display:flex;align-items:center;border: 1px solid #e4e4e4;justify-content:center;height:100%;">
|
|
<div style="background:#fff;display:flex;align-items:center;border: 1px solid #e4e4e4;justify-content:center;height:100%;">
|
|
<div class="center">
|
|
<div class="center">
|
|
@@ -45,88 +52,137 @@
|
|
<saga-verify :buildVlaue='buildVlaue' :floorsObj='floorsObj' :allEquipObj='allEquipObj'></saga-verify>
|
|
<saga-verify :buildVlaue='buildVlaue' :floorsObj='floorsObj' :allEquipObj='allEquipObj'></saga-verify>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs> -->
|
|
</el-tabs> -->
|
|
|
|
+
|
|
|
|
+ <!-- <assets-list :buildingData="options" :buildingId="buildValue" :active="activeName" ref="assetlist"></assets-list>-->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import SagaNofind from './Nofind'
|
|
|
|
-import SagaNopaint from './Nopaint'
|
|
|
|
-import SagaVerify from './Noverify'
|
|
|
|
-import { mapGetters } from 'vuex'
|
|
|
|
-//api
|
|
|
|
-import {
|
|
|
|
- getBuildSelect, //根据项目ID获得建筑列表
|
|
|
|
- getAllbusiness,
|
|
|
|
- getAllFamily
|
|
|
|
-} from '@/api/scan/request'
|
|
|
|
-export default {
|
|
|
|
- name: 'build-assets',
|
|
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
- activeName: 'first',
|
|
|
|
- buildVlaue: '',
|
|
|
|
- options: [],
|
|
|
|
- floorsObj: {},
|
|
|
|
- allFamilyObj: {},
|
|
|
|
- allEquipObj: {},
|
|
|
|
- value: '',//
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- computed: {
|
|
|
|
- ...mapGetters('layout', ['projectId', 'userId', 'secret'])
|
|
|
|
- },
|
|
|
|
- components: {
|
|
|
|
- SagaNofind,
|
|
|
|
- SagaNopaint,
|
|
|
|
- SagaVerify
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- handleClick() { },
|
|
|
|
- //获取建筑列表
|
|
|
|
- getBuilding() {
|
|
|
|
- let param = {
|
|
|
|
- ProjId: this.projectId,
|
|
|
|
- UserId: this.userId
|
|
|
|
|
|
+ import SagaNofind from './Nofind'
|
|
|
|
+ import SagaNopaint from './Nopaint'
|
|
|
|
+ import SagaVerify from './Noverify'
|
|
|
|
+ // import assetsList from './assetsList'
|
|
|
|
+ import {mapActions, mapGetters, mapState} from 'vuex'
|
|
|
|
+ //api
|
|
|
|
+ import {buildingQuery, getAllbusiness, getEquipBelongs, problemQuery} from '@/api/scan/request'
|
|
|
|
+
|
|
|
|
+ export default {
|
|
|
|
+ name: 'build-assets',
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ activeName: 'first',
|
|
|
|
+ buildVlaue: '',
|
|
|
|
+ options: [],
|
|
|
|
+ floorsObj: {},
|
|
|
|
+ allFamilyObj: {},
|
|
|
|
+ allEquipObj: {},
|
|
|
|
+ value: '',//
|
|
|
|
+ tabList: [
|
|
|
|
+ {label: '现场无法找到的资产', name: "first"},
|
|
|
|
+ {label: '未画入模型的资产', name: "second"},
|
|
|
|
+ {label: '无对应岗位的资产', name: "third"},
|
|
|
|
+ {label: '未扫楼验证的资产', name: "fourth"}
|
|
|
|
+ ],
|
|
|
|
+ total: 0,
|
|
}
|
|
}
|
|
- 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
|
|
|
|
- })
|
|
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters('layout', ['projectId', 'userId', 'secret']),
|
|
|
|
+ ...mapState('layout', ['errorReport'])
|
|
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
},
|
|
},
|
|
- //获取设备组
|
|
|
|
- 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)
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ components: {
|
|
|
|
+ SagaNofind,
|
|
|
|
+ SagaNopaint,
|
|
|
|
+ SagaVerify,
|
|
},
|
|
},
|
|
|
|
+ methods: {
|
|
|
|
+ ...mapActions('layout', ['setErrorReport']),
|
|
|
|
+ handleTime(val) {
|
|
|
|
+ console.log(val)
|
|
|
|
+ let param = {
|
|
|
|
+ Filters: `createTime > '${val[0]}';createTime < '${val[1]}'`,
|
|
|
|
+ PageNumber: 1,
|
|
|
|
+ PageSize: 50
|
|
|
|
+ }
|
|
|
|
+ problemQuery(param, res => {
|
|
|
|
+ this.total = res.Total
|
|
|
|
+ debugger
|
|
|
|
+ this.setErrorReport(res.Content)
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ handleIssue() {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: 'report'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //获取建筑列表
|
|
|
|
+ getBuilding() {
|
|
|
|
+ buildingQuery({}, res => {
|
|
|
|
+ this.options = res.Content
|
|
|
|
+ this.buildValue = res.Content ? res.Content[0].BuildID : ''
|
|
|
|
+ })
|
|
|
|
+ // 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
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //获取设备组
|
|
|
|
+ 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)
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ let pa = {
|
|
|
|
+ data: {
|
|
|
|
+ Orders: 'Family asc',
|
|
|
|
+ Distinct: true,
|
|
|
|
+ PageSize: 500,
|
|
|
|
+ Projection: ["Family", "FamilyName"]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ getEquipBelongs(pa, res => {
|
|
|
|
+ this.AllFamily = res.Content.map(t => {
|
|
|
|
+ return {
|
|
|
|
+ Code: t.Family,
|
|
|
|
+ Name: t.FamilyName
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getEquip(list) {
|
|
getEquip(list) {
|
|
list.forEach(ele => {
|
|
list.forEach(ele => {
|
|
if (ele.content) {
|
|
if (ele.content) {
|