Browse Source

替换删除建筑楼层接口

zhangyu 3 years ago
parent
commit
2c57674cb2

+ 1 - 1
config/index.js

@@ -10,7 +10,7 @@ module.exports = {
     // Paths
     assetsSubDirectory: 'static',
     assetsPublicPath: '/',
-    proxyTable: proxyTable["14"],
+    proxyTable: proxyTable["18"],
 
     // Various Dev Server settings
     host: '0.0.0.0', // can be overwritten by process.env.HOST

+ 12 - 0
src/api/scan/request.js

@@ -1765,6 +1765,12 @@ export function manageDeleteFloor(param, success) {
   http.postJson(url, param, success)
 }
 
+//建筑楼层管理-删除楼层(该接口有删除失败的原因)
+export function deleteFloorInfo(param, success) {
+	let url = `${baseUrl}${floor}/single/delete`;
+	http.postJson(url, param, success)
+}
+
 //建筑楼层管理-修改楼层
 export function manageUpdateFloor(param, success) {
   let url = `${baseUrl}${floor}/update`;
@@ -2347,6 +2353,12 @@ export function objectDeleteBuild(param, success) {
   http.postJson(url, param, success)
 }
 
+//根据id删除建筑信息(该接口有删除失败的原因)
+export function deleteBuildInfo(param, success) {
+  let url = `${baseUrl}${object}/building/single/delete`
+  http.postJson(url, param, success)
+}
+
 // 查询记录
 export function problemQuery(param, success) {
   // let url = `${baseUrl}${dataCenter}/problems/query`

+ 1 - 1
src/framework/layout/layout-store.js

@@ -26,7 +26,7 @@ export default {
     },
     projectId: '',
     group_code: '',
-    projects: project["14"],
+    projects: project["18"],
     breadcrumb: [],
     uploaderList: [], //当前上传文件列表
     secret: "saga123456", //项目密码

+ 5 - 3
src/views/ready/buildfloor/index.vue

@@ -103,8 +103,10 @@ import {
   buildingQueryAndCount,
   floorQueryAndSign,
   manageDeleteFloor,
-  objectCreateBuild,
   objectDeleteBuild,
+  deleteFloorInfo,
+  deleteBuildInfo,
+  objectCreateBuild,
   objectQueryBuild,
   objectUpdateBuild
 } from "@/api/scan/request";
@@ -317,7 +319,7 @@ export default {
       if (this.delText == "楼层") {
         let delParam = [{ id: this.curFloorId }];
         this.delDialogVis = false;
-        manageDeleteFloor(delParam, res => {
+        deleteFloorInfo(delParam, res => {
           this.$message.success("删除成功");
           this.buildDisabled = false
           this.init();
@@ -331,7 +333,7 @@ export default {
         } else {
           let param = [{ id: this.curBuildId }];
           this.delDialogVis = false;
-          objectDeleteBuild(param, res => {
+          deleteBuildInfo(param, res => {
             this.$message.success("删除成功");
             this.buildDisabled = false
             this.handleBuildQuery()