|
@@ -170,53 +170,54 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import {mapGetters} from "vuex";
|
|
|
|
- import dasBoard from "@/views/dasboard/index";
|
|
|
|
- import {queryFloorList, queryLostReportList, queryModel, queryReportList} from "@/api/model/report.js";
|
|
|
|
- import {getSupplement, getToBeDelEquip} from "@/api/scan/request.js";
|
|
|
|
- import axios from 'axios'
|
|
|
|
|
|
+import { mapGetters } from "vuex";
|
|
|
|
+import dasBoard from "@/views/dasboard/index";
|
|
|
|
+import { queryFloorList, queryLostReportList, queryModel, queryReportList } from "@/api/model/report.js";
|
|
|
|
+import { getSupplement, getToBeDelEquip } from "@/api/scan/request.js";
|
|
|
|
+import axios from 'axios'
|
|
|
|
|
|
- export default {
|
|
|
|
- components: {
|
|
|
|
- dasBoard
|
|
|
|
- },
|
|
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
- params: null,
|
|
|
|
- ModelFileCount: null,// 模型文件夹数量
|
|
|
|
- modelFloorCount: null,// 包含楼层模型文件数量
|
|
|
|
- problemCount: 0,// 检查出问题的楼层模型文件数量
|
|
|
|
- tableList: [], // tab数据
|
|
|
|
- tableData: [],// 列表数据
|
|
|
|
- activeTab: '', // tab当前选中项
|
|
|
|
- headerStyle: { // 列表样式
|
|
|
|
- backgroundColor: '#e1e4e5',
|
|
|
|
- color: '#2b2b2b',
|
|
|
|
- lineHeight: '30px'
|
|
|
|
- },
|
|
|
|
- page: {
|
|
|
|
- pageSize: 50,
|
|
|
|
- pageSizes: [10, 20, 50, 100],
|
|
|
|
- pageNumber: 1,
|
|
|
|
- total: 0
|
|
|
|
- },
|
|
|
|
- loading: false,
|
|
|
|
- load: false,
|
|
|
|
- floorIconType: null,
|
|
|
|
- toBeSuppCount: 0,
|
|
|
|
- toBeDelCount: 0
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- mounted() { },
|
|
|
|
- created() {
|
|
|
|
- this.params = {
|
|
|
|
- Orders: "Name asc"
|
|
|
|
- }
|
|
|
|
- this.getModelFileCount();
|
|
|
|
- this.getModelFloorCount();
|
|
|
|
- },
|
|
|
|
- computed: {
|
|
|
|
- ...mapGetters('layout', ['projectId'])
|
|
|
|
|
|
+export default {
|
|
|
|
+ components: {
|
|
|
|
+ dasBoard
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ params: null,
|
|
|
|
+ ModelFileCount: null,// 模型文件夹数量
|
|
|
|
+ modelFloorCount: null,// 包含楼层模型文件数量
|
|
|
|
+ problemCount: 0,// 检查出问题的楼层模型文件数量
|
|
|
|
+ tableList: [], // tab数据
|
|
|
|
+ tableData: [],// 列表数据
|
|
|
|
+ activeTab: '', // tab当前选中项
|
|
|
|
+ headerStyle: { // 列表样式
|
|
|
|
+ backgroundColor: '#e1e4e5',
|
|
|
|
+ color: '#2b2b2b',
|
|
|
|
+ lineHeight: '30px'
|
|
|
|
+ },
|
|
|
|
+ page: {
|
|
|
|
+ pageSize: 50,
|
|
|
|
+ pageSizes: [10, 20, 50, 100],
|
|
|
|
+ pageNumber: 1,
|
|
|
|
+ total: 0
|
|
|
|
+ },
|
|
|
|
+ loading: false,
|
|
|
|
+ load: false,
|
|
|
|
+ floorIconType: null,
|
|
|
|
+ toBeSuppCount: 0,
|
|
|
|
+ toBeDelCount: 0
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ this.params = {
|
|
|
|
+ Orders: "Name asc"
|
|
|
|
+ }
|
|
|
|
+ this.getModelFileCount();
|
|
|
|
+ this.getModelFloorCount();
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters('layout', ['projectId'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
cellStyle({row, column, rowIndex, columnIndex}) {
|
|
cellStyle({row, column, rowIndex, columnIndex}) {
|
|
@@ -317,7 +318,7 @@
|
|
this.LostFloorName.forEach(item => {
|
|
this.LostFloorName.forEach(item => {
|
|
if (item.CurrentModelId) {
|
|
if (item.CurrentModelId) {
|
|
equipComDelList.push({
|
|
equipComDelList.push({
|
|
- ModelId: item.CurrentModelId
|
|
|
|
|
|
+ modelId: item.CurrentModelId
|
|
});
|
|
});
|
|
this.equipComDelList.push(item.CurrentModelId)
|
|
this.equipComDelList.push(item.CurrentModelId)
|
|
} else {
|
|
} else {
|
|
@@ -326,15 +327,15 @@
|
|
}
|
|
}
|
|
if (item.Id) {
|
|
if (item.Id) {
|
|
toBeAdded.push({
|
|
toBeAdded.push({
|
|
- ModelId: item.Id
|
|
|
|
|
|
+ modelId: item.Id
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
let params = {
|
|
let params = {
|
|
- ProjectId: this.projectId,
|
|
|
|
|
|
+ projectId: this.projectId,
|
|
data: equipComDelList
|
|
data: equipComDelList
|
|
}, paramsToBe = {
|
|
}, paramsToBe = {
|
|
- ProjectId: this.projectId,
|
|
|
|
|
|
+ projectId: this.projectId,
|
|
data: toBeAdded
|
|
data: toBeAdded
|
|
}
|
|
}
|
|
let promise1 = new Promise(resolve => {
|
|
let promise1 = new Promise(resolve => {
|
|
@@ -352,23 +353,23 @@
|
|
let res1 = response[1];
|
|
let res1 = response[1];
|
|
this.toBeDelCount = 0;
|
|
this.toBeDelCount = 0;
|
|
this.toBeSuppCount = 0;
|
|
this.toBeSuppCount = 0;
|
|
- res.Content.forEach(item => {
|
|
|
|
- if (item.Count > 0) {
|
|
|
|
|
|
+ res.content.forEach(item => {
|
|
|
|
+ if (item.count > 0) {
|
|
this.toBeDelCount += 1;
|
|
this.toBeDelCount += 1;
|
|
}
|
|
}
|
|
this.LostFloorName.forEach(it => {
|
|
this.LostFloorName.forEach(it => {
|
|
- if (item.ModelId === it.CurrentModelId) {
|
|
|
|
- it.toBeDel = item.Count;
|
|
|
|
|
|
+ if (item.modelId === it.CurrentModelId) {
|
|
|
|
+ it.toBeDel = item.count;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|
|
- res1.Content.forEach(item => {
|
|
|
|
- if (item.Count > 0) {
|
|
|
|
|
|
+ res1.content.forEach(item => {
|
|
|
|
+ if (item.count > 0) {
|
|
this.toBeSuppCount += 1;
|
|
this.toBeSuppCount += 1;
|
|
}
|
|
}
|
|
this.LostFloorName.forEach(it => {
|
|
this.LostFloorName.forEach(it => {
|
|
- if (item.ModelId === it.Id) {
|
|
|
|
- it.toBeSupplement = item.Count;
|
|
|
|
|
|
+ if (item.modelId === it.Id) {
|
|
|
|
+ it.toBeSupplement = item.count;
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|