|
@@ -45,7 +45,7 @@
|
|
|
|
|
|
<script>
|
|
|
import locationPointMsg from '@/views/data_admin/buildGraphy/locationPointMsg'
|
|
|
-import { queryDictionaryHead, getDataDictionary, createZone } from '@/api/scan/request';
|
|
|
+import { queryDictionaryHead, getDataDictionary, zoneCreate } from '@/api/scan/request';
|
|
|
import { mapGetters } from 'vuex'
|
|
|
import zoneInput from '@/components/data_admin/zoneInput'
|
|
|
export default {
|
|
@@ -87,10 +87,7 @@ export default {
|
|
|
//创建
|
|
|
createZ() {
|
|
|
let param = {
|
|
|
- zone: '',
|
|
|
- data: {
|
|
|
- content: []
|
|
|
- }
|
|
|
+ Content: []
|
|
|
}
|
|
|
let zObj = this.$refs.zoneInput.getFormData();
|
|
|
zObj.Pic = this.$refs.pointMsg.choImg.concat();
|
|
@@ -101,13 +98,13 @@ export default {
|
|
|
Type: item.Type
|
|
|
}))
|
|
|
if (this.RoomLocalName && this.buildFloor.length && this.space) {
|
|
|
+ zObj.ObjectType = this.space;
|
|
|
zObj.RoomLocalName = this.RoomLocalName;
|
|
|
zObj.RoomLocalID = this.RoomLocalID;
|
|
|
zObj.BuildingId = this.buildFloor[0];
|
|
|
zObj.FloorId = this.buildFloor[1];
|
|
|
- param.zone = this.space;
|
|
|
- param.data.content = [zObj];
|
|
|
- createZone(param, res => {
|
|
|
+ param.Content = [zObj];
|
|
|
+ zoneCreate(param, res => {
|
|
|
this.$message.success("创建成功");
|
|
|
this.$refs.pointMsg.clearImg();
|
|
|
this.RoomLocalName = ''
|