haojianlong 4 lat temu
rodzic
commit
233a2b643a

+ 1 - 0
src/api/scan/config.js

@@ -6,6 +6,7 @@ export const sass = 'sass';
 export const physics = '/data-platform-3';
 export const business = '/business-space'
 export const venders = '/venders'
+export const dataCenter = '/datacenter2/object'
 export const zone = {
   GeneralZone: 'zone-general', //默认分区
   PowerSupplyZone: 'zone-power-supply', //供电分区

+ 3 - 5
src/api/scan/request.js

@@ -1,5 +1,5 @@
 import fetch from './fetch'
-import { api, api1, baseUrl, business, physics, venders, zone } from './config.js'
+import { api, api1, baseUrl, business, physics, venders, zone, dataCenter } from './config.js'
 import http from './httpUtil'
 import storage from '@/framework/utils/storage'
 
@@ -846,7 +846,6 @@ export function ShaftRelationBusinessSpace(param, success) {
 
 //获取竖井类型
 export function getCenoteType(param, success) {
-  // let url = `${baseUrl}/datacenter2/shaft/query-shaft-functype`
   let url = `${baseUrl}/datacenter2/object/shaft/query-shaft-functype`
   http.postJson(url, param, success)
 }
@@ -859,14 +858,13 @@ export function getCenoteTableData(param, success) {
 
 //查询竖井信息
 export function queryCenoteTableData(param, success) {
-  // let url = `${baseUrl}/datacenter2/shaft/query`
-  let url = `${baseUrl}/datacenter2/object/shaft/query`
+  let url = `${baseUrl}${dataCenter}/shaft/query`
   http.postJson(url, param, success)
 }
 
 //添加竖井信息
 export function createCenoteTableData(param, success) {
-  let url = `${baseUrl}/datacenter2/shaft/create`
+  let url = `${baseUrl}${dataCenter}/shaft/create`
   http.postJson(url, param, success)
 }
 

+ 1 - 1
src/views/ledger/cenotelist/cenoteadd/index.vue

@@ -93,7 +93,7 @@ export default {
         })
         if (!item.localName) {
           flag = 1
-        } else if (!item.hasOwnProperty('structureInfo') || !item.structureInfo.shaftFuncType) {
+        } else if (!item.hasOwnProperty('infos') || !item.infos.shaftFuncType) {
           flag = 2
         }
         if (keys.length && Object.keys(item).length) {