|
@@ -42,7 +42,7 @@ import buildFloor from '@/utils/handsontable/buildFloorData'
|
|
|
import 'handsontable-pro/dist/handsontable.full.css'
|
|
|
import zhCN from 'handsontable-pro/languages/zh-CN';
|
|
|
import qrcode from "@/components/ledger/lib/qrcode";
|
|
|
-import { queryZone, updateZone, deleteZone, createZone, BeatchQueryParam } from "@/api/scan/request";
|
|
|
+import { queryZone, updateZone, deleteZone, createZone, BeatchQueryParam, updateRelateInSpAndBuild } from "@/api/scan/request";
|
|
|
import { mapGetters, mapActions } from "vuex";
|
|
|
export default {
|
|
|
props: {
|
|
@@ -193,6 +193,7 @@ export default {
|
|
|
sortIndicator: true, //添加排序
|
|
|
renderAllRows: true,
|
|
|
autoColumnSize: true,
|
|
|
+ observeChanges: false,
|
|
|
language: "zh-CN",
|
|
|
manualColumnResize: true,
|
|
|
manualColumnMove: true,
|
|
@@ -401,8 +402,23 @@ export default {
|
|
|
})
|
|
|
param.data.Content.push(item);
|
|
|
})
|
|
|
- param.Projection = []
|
|
|
- updateZone(param, (res) => { })
|
|
|
+ if (param.data.Projection.indexOf('BuildingId') > -1) {
|
|
|
+ let pa = param.data.Content.map(t => {
|
|
|
+ return {
|
|
|
+ type: this.zoneCode,
|
|
|
+ spaceId: t.RoomID,
|
|
|
+ id: t.FloorId || t.BuildingId || null,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ updateRelateInSpAndBuild(pa, res => {
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ param.data.Projection = []
|
|
|
+ updateZone(param, (res) => {
|
|
|
+ this.$message.success('修改成功')
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
//获取被筛选掉的行号
|
|
|
trimmedRows() {
|