|
@@ -69,44 +69,44 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-// 引用handsontable插件
|
|
|
|
-import "@/assets/js/chosen.jquery.min";
|
|
|
|
-import tools from "@/utils/scan/tools";
|
|
|
|
-import "@/assets/js/handsontable-chosen-editor";
|
|
|
|
-import lStorage from '@/utils/localStorage'
|
|
|
|
-import myPagination from "@/components/common/myPagination";
|
|
|
|
-import addBusiness from "@/components/business_space/dialogs/addDialog/businessDialog"
|
|
|
|
-import showTools from "@/utils/handsontable/notShow"
|
|
|
|
-import handsonUtils from "@/utils/hasontableUtils"
|
|
|
|
-import Handsontable from "handsontable-pro"
|
|
|
|
-import buildFloor from '@/utils/handsontable/buildFloorData'
|
|
|
|
-import spaceCascader from '@/components/ledger/lib/spaceSelect'
|
|
|
|
-import 'handsontable-pro/dist/handsontable.full.css'
|
|
|
|
-import uploadImgDialog from "@/components/business_space/dialogs/list/uploadImgDialog"
|
|
|
|
-import qrcode from "@/components/ledger/lib/qrcode";
|
|
|
|
-import {
|
|
|
|
- BeatchQueryParam,
|
|
|
|
- handleZoneUpdateBd,
|
|
|
|
- queryAllZoneType,
|
|
|
|
- zoneCreate,
|
|
|
|
- zoneDelete,
|
|
|
|
- zoneQuery,
|
|
|
|
- zoneUpdate
|
|
|
|
-} from "@/api/scan/request";
|
|
|
|
-import { mapGetters } from "vuex";
|
|
|
|
-import dialogZone from "../../ledger/addDialog/dialogZone";
|
|
|
|
|
|
+ // 引用handsontable插件
|
|
|
|
+ import "@/assets/js/chosen.jquery.min";
|
|
|
|
+ import tools from "@/utils/scan/tools";
|
|
|
|
+ import "@/assets/js/handsontable-chosen-editor";
|
|
|
|
+ import lStorage from '@/utils/localStorage'
|
|
|
|
+ import myPagination from "@/components/common/myPagination";
|
|
|
|
+ import addBusiness from "@/components/business_space/dialogs/addDialog/businessDialog"
|
|
|
|
+ import showTools from "@/utils/handsontable/notShow"
|
|
|
|
+ import handsonUtils from "@/utils/hasontableUtils"
|
|
|
|
+ import Handsontable from "handsontable-pro"
|
|
|
|
+ import buildFloor from '@/utils/handsontable/buildFloorData'
|
|
|
|
+ import spaceCascader from '@/components/ledger/lib/spaceSelect'
|
|
|
|
+ import 'handsontable-pro/dist/handsontable.full.css'
|
|
|
|
+ import uploadImgDialog from "@/components/business_space/dialogs/list/uploadImgDialog"
|
|
|
|
+ import qrcode from "@/components/ledger/lib/qrcode";
|
|
|
|
+ import {
|
|
|
|
+ BeatchQueryParam,
|
|
|
|
+ handleZoneUpdateBd,
|
|
|
|
+ queryAllZoneType,
|
|
|
|
+ zoneCreate,
|
|
|
|
+ zoneDelete,
|
|
|
|
+ zoneQuery,
|
|
|
|
+ zoneUpdate
|
|
|
|
+ } from "@/api/scan/request";
|
|
|
|
+ import {mapGetters} from "vuex";
|
|
|
|
+ import dialogZone from "../../ledger/addDialog/dialogZone";
|
|
|
|
|
|
-export default {
|
|
|
|
- props: {
|
|
|
|
- id: {},
|
|
|
|
- zoneCode: {},
|
|
|
|
- otherType: String
|
|
|
|
- },
|
|
|
|
- components: {
|
|
|
|
- qrcode, //二维码页面
|
|
|
|
- myPagination,
|
|
|
|
- addBusiness,
|
|
|
|
- uploadImgDialog,
|
|
|
|
|
|
+ export default {
|
|
|
|
+ props: {
|
|
|
|
+ id: {},
|
|
|
|
+ zoneCode: {},
|
|
|
|
+ otherType: String
|
|
|
|
+ },
|
|
|
|
+ components: {
|
|
|
|
+ qrcode, //二维码页面
|
|
|
|
+ myPagination,
|
|
|
|
+ addBusiness,
|
|
|
|
+ uploadImgDialog,
|
|
dialogZone,
|
|
dialogZone,
|
|
spaceCascader,
|
|
spaceCascader,
|
|
},
|
|
},
|
|
@@ -174,7 +174,7 @@ export default {
|
|
imgsArr: [], //空间图片
|
|
imgsArr: [], //空间图片
|
|
OtherList: [],//其他分区筛选框
|
|
OtherList: [],//其他分区筛选框
|
|
OtherValue: '',
|
|
OtherValue: '',
|
|
- addData: {},
|
|
|
|
|
|
+ addData: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -266,8 +266,12 @@ export default {
|
|
} else if (item.hasOwnProperty("BuildingId") && !item.hasOwnProperty("FloorId")) {
|
|
} else if (item.hasOwnProperty("BuildingId") && !item.hasOwnProperty("FloorId")) {
|
|
item.flowBuild = item.BuildingId
|
|
item.flowBuild = item.BuildingId
|
|
}
|
|
}
|
|
|
|
+ if(item.Outline) {
|
|
|
|
+ item.Outline = JSON.stringify(item.Outline)
|
|
|
|
+ }
|
|
return item
|
|
return item
|
|
});
|
|
});
|
|
|
|
+
|
|
if (this.main && this.main.length && this.main[0].RoomID) {
|
|
if (this.main && this.main.length && this.main[0].RoomID) {
|
|
this.copyMain = tools.deepCopy(this.main);
|
|
this.copyMain = tools.deepCopy(this.main);
|
|
if (this.onlyRead) {
|
|
if (this.onlyRead) {
|
|
@@ -425,7 +429,7 @@ export default {
|
|
let val = this.hot.colToProp(row.col);
|
|
let val = this.hot.colToProp(row.col);
|
|
this.row = row.row;
|
|
this.row = row.row;
|
|
let inputData = this.inputMap[val];
|
|
let inputData = this.inputMap[val];
|
|
- lStorage.set('screen_data', { path: this.$route.path, data: { RoomID: infos.RoomID, zone: this.zoneCode } })
|
|
|
|
|
|
+ lStorage.set('screen_data', {path: this.$route.path, data: {RoomID: infos.RoomID, zone: this.zoneCode}})
|
|
if (val == "point") {
|
|
if (val == "point") {
|
|
let query = {
|
|
let query = {
|
|
RoomID: infos.RoomID,
|
|
RoomID: infos.RoomID,
|
|
@@ -451,6 +455,7 @@ export default {
|
|
this.myDialog.uploadImgs = true;
|
|
this.myDialog.uploadImgs = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
if (!this.onlyRead && !inputData.Editable) {
|
|
if (!this.onlyRead && !inputData.Editable) {
|
|
this.$message("该信息点的值为自动生成,不可人工维护!");
|
|
this.$message("该信息点的值为自动生成,不可人工维护!");
|
|
return false;
|
|
return false;
|