|
@@ -28,7 +28,8 @@
|
|
<div class="button">
|
|
<div class="button">
|
|
<el-link :underline="false" @click="del">需从模型中删除的设备</el-link>
|
|
<el-link :underline="false" @click="del">需从模型中删除的设备</el-link>
|
|
<el-link @click="supplement" :underline="false">模型待补充的设备</el-link>
|
|
<el-link @click="supplement" :underline="false">模型待补充的设备</el-link>
|
|
- <el-link @click='getExportReport' :underline="false">导出模型问题报告</el-link>
|
|
|
|
|
|
+ <el-button type="info" :loading="load" @click='getExportReport' style="border:1px solid #dcdfe6;color:#606266;background:white;">导出模型问题报告
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
<div class="table" :style="tableList&&tableList.length?'width: 100%;height: calc(100% - 47px)':'width: 100%;height: calc(100% - 10px)'">
|
|
<div class="table" :style="tableList&&tableList.length?'width: 100%;height: calc(100% - 47px)':'width: 100%;height: calc(100% - 10px)'">
|
|
<el-table ref="multipleTable" :data="tableData" stripe height="100%" :header-cell-style="headerStyle" v-loading='loading'>
|
|
<el-table ref="multipleTable" :data="tableData" stripe height="100%" :header-cell-style="headerStyle" v-loading='loading'>
|
|
@@ -55,56 +56,56 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.ElementRangeCheck" class="item" type='danger' v-if="scope.row.ElementRangeCheck">
|
|
<el-badge :value="scope.row.ElementRangeCheck" class="item" type='danger' v-if="scope.row.ElementRangeCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.ElementRangeCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.ElementRangeCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="FamilyNameCheck" label='设备族编码检查' width="200">
|
|
<el-table-column prop="FamilyNameCheck" label='设备族编码检查' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.FamilyNameCheck" class="item" type='danger' v-if="scope.row.FamilyNameCheck">
|
|
<el-badge :value="scope.row.FamilyNameCheck" class="item" type='danger' v-if="scope.row.FamilyNameCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.FamilyNameCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.FamilyNameCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="EquipPartLocationCheck" label='部件所在位置检查' width="200">
|
|
<el-table-column prop="EquipPartLocationCheck" label='部件所在位置检查' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.EquipPartLocationCheck" class="item" type='danger' v-if="scope.row.EquipPartLocationCheck">
|
|
<el-badge :value="scope.row.EquipPartLocationCheck" class="item" type='danger' v-if="scope.row.EquipPartLocationCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.EquipPartLocationCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.EquipPartLocationCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="ColumnCheck" label='柱边界检查' width="200">
|
|
<el-table-column prop="ColumnCheck" label='柱边界检查' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.ColumnCheck" class="item" type='danger' v-if="scope.row.ColumnCheck">
|
|
<el-badge :value="scope.row.ColumnCheck" class="item" type='danger' v-if="scope.row.ColumnCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.ColumnCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.ColumnCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="ConnectorCheck" label='连接件检查' width="200">
|
|
<el-table-column prop="ConnectorCheck" label='连接件检查' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.ConnectorCheck" class="item" type='danger' v-if="scope.row.ConnectorCheck">
|
|
<el-badge :value="scope.row.ConnectorCheck" class="item" type='danger' v-if="scope.row.ConnectorCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.ConnectorCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.ConnectorCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="SystemNameCheck" label='系统类型名称检查' width="200">
|
|
<el-table-column prop="SystemNameCheck" label='系统类型名称检查' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.SystemNameCheck" class="item" type='danger' v-if="scope.row.SystemNameCheck">
|
|
<el-badge :value="scope.row.SystemNameCheck" class="item" type='danger' v-if="scope.row.SystemNameCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.SystemNameCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.SystemNameCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="EquipInSpaceCheck" label='未在空间中的设备' width="200">
|
|
<el-table-column prop="EquipInSpaceCheck" label='未在空间中的设备' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.EquipInSpaceCheck" class="item" type='danger' v-if="scope.row.EquipInSpaceCheck">
|
|
<el-badge :value="scope.row.EquipInSpaceCheck" class="item" type='danger' v-if="scope.row.EquipInSpaceCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.EquipInSpaceCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.EquipInSpaceCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="PipeCheck" label='管段检查' width="200">
|
|
<el-table-column prop="PipeCheck" label='管段检查' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.PipeCheck" class="item" type='danger' v-if="scope.row.PipeCheck">
|
|
<el-badge :value="scope.row.PipeCheck" class="item" type='danger' v-if="scope.row.PipeCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.PipeCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.PipeCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="SystemReferEquipCheck" label='管网及相关设备检查' width="200">
|
|
<el-table-column prop="SystemReferEquipCheck" label='管网及相关设备检查' width="200">
|
|
@@ -112,21 +113,21 @@
|
|
<el-badge :value="scope.row.SystemReferEquipCheck" class="item" :type='scope.row.SystemReferEquipCheck?"danger":"success"'
|
|
<el-badge :value="scope.row.SystemReferEquipCheck" class="item" :type='scope.row.SystemReferEquipCheck?"danger":"success"'
|
|
v-if="scope.row.SystemReferEquipCheck">
|
|
v-if="scope.row.SystemReferEquipCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.SystemReferEquipCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.SystemReferEquipCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="ParameterIntegrityCheck" label='Revit族参数完整性检查' width="200">
|
|
<el-table-column prop="ParameterIntegrityCheck" label='Revit族参数完整性检查' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.ParameterIntegrityCheck" class="item" type='danger' v-if="scope.row.ParameterIntegrityCheck">
|
|
<el-badge :value="scope.row.ParameterIntegrityCheck" class="item" type='danger' v-if="scope.row.ParameterIntegrityCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.ParameterIntegrityCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.ParameterIntegrityCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="XyzOverlapCheck" label='xyz坐标重叠检查' width="200">
|
|
<el-table-column prop="XyzOverlapCheck" label='xyz坐标重叠检查' width="200">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-badge :value="scope.row.XyzOverlapCheck" class="item" type='danger' v-if="scope.row.XyzOverlapCheck">
|
|
<el-badge :value="scope.row.XyzOverlapCheck" class="item" type='danger' v-if="scope.row.XyzOverlapCheck">
|
|
</el-badge>
|
|
</el-badge>
|
|
- <i class="icon el-icon-check" v-if="!scope.row.XyzOverlapCheck"></i>
|
|
|
|
|
|
+ <i class="msg-icon el-icon-success success-color" style="font-size:20px;" v-if="!scope.row.XyzOverlapCheck"></i>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<template slot="empty">
|
|
<template slot="empty">
|
|
@@ -152,6 +153,7 @@ import request from "@/api/model/file.js";
|
|
import { exportReport, queryFloorList, queryModel, queryReportList, queryLostReportList } from "@/api/model/report.js";
|
|
import { exportReport, queryFloorList, queryModel, queryReportList, queryLostReportList } from "@/api/model/report.js";
|
|
import { getToBeDelEquip, getSupplement } from "@/api/scan/request.js";
|
|
import { getToBeDelEquip, getSupplement } from "@/api/scan/request.js";
|
|
import axios from 'axios'
|
|
import axios from 'axios'
|
|
|
|
+import { resolve } from 'q';
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
dasBoard
|
|
dasBoard
|
|
@@ -177,6 +179,7 @@ export default {
|
|
total: 0
|
|
total: 0
|
|
},
|
|
},
|
|
loading: false,
|
|
loading: false,
|
|
|
|
+ load: false,
|
|
floorIconType: null,
|
|
floorIconType: null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -192,19 +195,6 @@ export default {
|
|
...mapGetters('layout', ['projectId'])
|
|
...mapGetters('layout', ['projectId'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- getModelFileCount() {// 获取项目下所有模型文件夹
|
|
|
|
- queryModel(this.params, res => {
|
|
|
|
- this.ModelFileCount = res.Content.length;
|
|
|
|
- this.tableList = res.Content;
|
|
|
|
- if (this.tableList.length) {
|
|
|
|
- this.tableList.forEach((item, index) => {
|
|
|
|
- item.Code = item.Id;
|
|
|
|
- })
|
|
|
|
- this.activeTab = this.tableList[0].Code;// 默认选中第一个模型文件夹
|
|
|
|
- }
|
|
|
|
- this.getModelFloor();
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
getModelFloorCount() {// 获取楼层模型文件数量,计算出检查出问题的模型文件
|
|
getModelFloorCount() {// 获取楼层模型文件数量,计算出检查出问题的模型文件
|
|
let promise1 = new Promise(resolve => {
|
|
let promise1 = new Promise(resolve => {
|
|
queryFloorList(this.params, res => {
|
|
queryFloorList(this.params, res => {
|
|
@@ -238,7 +228,20 @@ export default {
|
|
getData(tab) {// 切换tab时执行
|
|
getData(tab) {// 切换tab时执行
|
|
this.getModelFloor();
|
|
this.getModelFloor();
|
|
},
|
|
},
|
|
- getModelFloor() {// 获取当前楼层下的模型楼层
|
|
|
|
|
|
+ getModelFileCount() {// 获取项目下所有模型文件夹
|
|
|
|
+ queryModel(this.params, res => {
|
|
|
|
+ this.ModelFileCount = res.Content.length;
|
|
|
|
+ this.tableList = res.Content;
|
|
|
|
+ if (this.tableList && this.tableList.length) {
|
|
|
|
+ this.tableList.forEach((item, index) => {
|
|
|
|
+ item.Code = item.Id;
|
|
|
|
+ })
|
|
|
|
+ this.activeTab = this.tableList[0].Code;// 默认选中第一个模型文件夹
|
|
|
|
+ }
|
|
|
|
+ this.getModelFloor();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ getModelFloor() {// 获取当前楼层下的模型楼层和各个检查项的数据
|
|
let params = {
|
|
let params = {
|
|
ProjectId: this.projectId,
|
|
ProjectId: this.projectId,
|
|
Id: `${this.activeTab}`,
|
|
Id: `${this.activeTab}`,
|
|
@@ -247,77 +250,91 @@ export default {
|
|
}
|
|
}
|
|
queryReportList(params, res => {
|
|
queryReportList(params, res => {
|
|
this.FloorName = res.Content;
|
|
this.FloorName = res.Content;
|
|
|
|
+ this.tableData = [];
|
|
if (this.FloorName && this.FloorName.length) {
|
|
if (this.FloorName && this.FloorName.length) {
|
|
|
|
+ this.loading = true;
|
|
let i = 0;
|
|
let i = 0;
|
|
this.FloorName.forEach(item => {
|
|
this.FloorName.forEach(item => {
|
|
item.questionItem = 0;
|
|
item.questionItem = 0;
|
|
for (let key in item) {
|
|
for (let key in item) {
|
|
- if (item[key] > 0 && key !== "toBeDel" && key !== 'toBeSupplement' && key !== "FloorName" && key !== "questionItem") {
|
|
|
|
|
|
+ if (item[key] > 0 && key !== "FloorName" && key !== "questionItem") {
|
|
i += 1;
|
|
i += 1;
|
|
item.questionItem += 1;
|
|
item.questionItem += 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
this.floorIconType = i;
|
|
this.floorIconType = i;
|
|
- this.getLostModelFloor();
|
|
|
|
}
|
|
}
|
|
|
|
+ this.getLostModelFloor();
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getLostModelFloor() {// 获取缺失楼层
|
|
getLostModelFloor() {// 获取缺失楼层
|
|
let params = {
|
|
let params = {
|
|
ProjectId: this.projectId,
|
|
ProjectId: this.projectId,
|
|
- Filters: `FolderId='${this.activeTab}';Status=4`,
|
|
|
|
- PageNumber: this.page.pageNumber,
|
|
|
|
- PageSize: this.page.pageSize
|
|
|
|
|
|
+ Filters: `FolderId='${this.activeTab}';Status=4`
|
|
}
|
|
}
|
|
queryLostReportList(params, res => {
|
|
queryLostReportList(params, res => {
|
|
- let that = this;
|
|
|
|
this.LostFloorName = res.Content;
|
|
this.LostFloorName = res.Content;
|
|
- if (this.FloorName && this.LostFloorName) {
|
|
|
|
- this.LostFloorName.forEach((item, index) => {
|
|
|
|
- if (!item.FolderId) {
|
|
|
|
- item.FloorName = `${item.Note + item.FloorName}`
|
|
|
|
- that.FloorName.splice(index, 0, item);
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.getToBeCount();
|
|
|
|
- this.tableData = this.FloorName;
|
|
|
|
- } else {
|
|
|
|
- this.tableData = [];
|
|
|
|
- }
|
|
|
|
|
|
+ this.getToBeCount();
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getToBeCount() {// 根据模型ID获取待删除数量和待补充数量
|
|
getToBeCount() {// 根据模型ID获取待删除数量和待补充数量
|
|
- let that = this;
|
|
|
|
- let ary = [];
|
|
|
|
- this.LostFloorName.forEach((item, index) => {
|
|
|
|
|
|
+ let equipComDelList = [];
|
|
|
|
+ this.LostFloorName.forEach(item => {
|
|
if (item.CurrentModelId) {
|
|
if (item.CurrentModelId) {
|
|
- ary.push({
|
|
|
|
|
|
+ equipComDelList.push({
|
|
ModelId: item.CurrentModelId
|
|
ModelId: item.CurrentModelId
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ item.FloorName = `${item.Note + item.FloorName}`
|
|
}
|
|
}
|
|
})
|
|
})
|
|
let params = {
|
|
let params = {
|
|
ProjectId: this.projectId,
|
|
ProjectId: this.projectId,
|
|
- data: ary
|
|
|
|
|
|
+ data: equipComDelList
|
|
}
|
|
}
|
|
- getToBeDelEquip(params, res => {// 获取待删除储量
|
|
|
|
- res.Content.forEach((item, index) => {
|
|
|
|
|
|
+ let promise1 = new Promise(resolve => {
|
|
|
|
+ getToBeDelEquip(params, res => {
|
|
|
|
+ resolve(res);
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ let promise2 = new Promise(resolve => {
|
|
|
|
+ getSupplement(params, res => {
|
|
|
|
+ resolve(res);
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ Promise.all([promise1, promise2]).then(response => {
|
|
|
|
+ let res = response[0];
|
|
|
|
+ let res1 = response[1];
|
|
|
|
+ res.Content.forEach(item => {
|
|
this.LostFloorName.forEach(it => {
|
|
this.LostFloorName.forEach(it => {
|
|
if (item.ModelId === it.CurrentModelId) {
|
|
if (item.ModelId === it.CurrentModelId) {
|
|
it.toBeDel = item.Count;
|
|
it.toBeDel = item.Count;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- })
|
|
|
|
- getSupplement(params, res => {// 获取待补充数量
|
|
|
|
- res.Content.forEach((item, index) => {
|
|
|
|
|
|
+ res1.Content.forEach(item => {
|
|
this.LostFloorName.forEach(it => {
|
|
this.LostFloorName.forEach(it => {
|
|
if (item.ModelId === it.CurrentModelId) {
|
|
if (item.ModelId === it.CurrentModelId) {
|
|
it.toBeSupplement = item.Count;
|
|
it.toBeSupplement = item.Count;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ if (this.LostFloorName && this.LostFloorName.length) {
|
|
|
|
+ this.LostFloorName.forEach(item => {
|
|
|
|
+ this.FloorName.forEach(it => {
|
|
|
|
+ if (item.FloorName === it.FloorName) {
|
|
|
|
+ for (let key in it) {
|
|
|
|
+ item[key] = it[key];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ this.tableData = this.LostFloorName;
|
|
|
|
+ } else {
|
|
|
|
+ this.tableData = [];
|
|
|
|
+ }
|
|
|
|
+ this.loading = false;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
del() {// 点击需从模型中删除的设备
|
|
del() {// 点击需从模型中删除的设备
|
|
@@ -330,6 +347,7 @@ export default {
|
|
},
|
|
},
|
|
getExportReport() {// 导出模型问题报告
|
|
getExportReport() {// 导出模型问题报告
|
|
let that = this;
|
|
let that = this;
|
|
|
|
+ this.load = true;
|
|
axios({
|
|
axios({
|
|
method: 'post',
|
|
method: 'post',
|
|
url: `/modelapi/report/non-blocking`,
|
|
url: `/modelapi/report/non-blocking`,
|
|
@@ -344,7 +362,7 @@ export default {
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
if (res.data.type == 'application/vnd.ms-excel') {
|
|
if (res.data.type == 'application/vnd.ms-excel') {
|
|
let blob = new Blob([res.data], { type: 'application/vnd.ms-excel;charset=utf-8' });
|
|
let blob = new Blob([res.data], { type: 'application/vnd.ms-excel;charset=utf-8' });
|
|
- let fileName = res.headers['content-disposition'];
|
|
|
|
|
|
+ let fileName = decodeURI(res.headers['content-disposition']);
|
|
if (fileName)
|
|
if (fileName)
|
|
fileName = fileName.substring(fileName.indexOf('=') + 1);
|
|
fileName = fileName.substring(fileName.indexOf('=') + 1);
|
|
if ('download' in document.createElement('a')) { // 非IE下载
|
|
if ('download' in document.createElement('a')) { // 非IE下载
|
|
@@ -356,14 +374,17 @@ export default {
|
|
elink.click()
|
|
elink.click()
|
|
URL.revokeObjectURL(elink.href) // 释放URL 对象
|
|
URL.revokeObjectURL(elink.href) // 释放URL 对象
|
|
document.body.removeChild(elink)
|
|
document.body.removeChild(elink)
|
|
|
|
+ that.load = false;
|
|
} else { // IE10+下载
|
|
} else { // IE10+下载
|
|
navigator.msSaveBlob(blob, fileName)
|
|
navigator.msSaveBlob(blob, fileName)
|
|
|
|
+ that.load = false;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
let reader = new FileReader()
|
|
let reader = new FileReader()
|
|
reader.onload = e => {
|
|
reader.onload = e => {
|
|
if (e.target.readyState === 2) {
|
|
if (e.target.readyState === 2) {
|
|
let res = {}
|
|
let res = {}
|
|
|
|
+ that.load = false;
|
|
res = JSON.parse(e.target.result)
|
|
res = JSON.parse(e.target.result)
|
|
that.$message.error(res.Message);
|
|
that.$message.error(res.Message);
|
|
}
|
|
}
|
|
@@ -372,13 +393,11 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 切换每页显示数量
|
|
|
|
- handleSizeChange(val) {
|
|
|
|
|
|
+ handleSizeChange(val) {// 切换每页显示数量
|
|
this.page.pageSize = val;
|
|
this.page.pageSize = val;
|
|
this.getModelFloor();
|
|
this.getModelFloor();
|
|
},
|
|
},
|
|
- // 切换页码
|
|
|
|
- handleCurrentChange(val) {
|
|
|
|
|
|
+ handleCurrentChange(val) {// 切换页码
|
|
this.page.pageNumber = val;
|
|
this.page.pageNumber = val;
|
|
this.getModelFloor();
|
|
this.getModelFloor();
|
|
},
|
|
},
|
|
@@ -442,15 +461,4 @@ export default {
|
|
.error-color {
|
|
.error-color {
|
|
color: #f56c6c;
|
|
color: #f56c6c;
|
|
}
|
|
}
|
|
-.icon {
|
|
|
|
- width: 20px;
|
|
|
|
- height: 20px;
|
|
|
|
- border-radius: 50%;
|
|
|
|
- background: #67c23a;
|
|
|
|
- text-align: center;
|
|
|
|
- vertical-align: middle;
|
|
|
|
- color: white;
|
|
|
|
- padding-top: 4px;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
-}
|
|
|
|
</style>
|
|
</style>
|