浏览代码

改回之前的接口 添加业务空间名不可为空

haojianlong 5 年之前
父节点
当前提交
d091a75c2c
共有 2 个文件被更改,包括 12 次插入1 次删除
  1. 8 1
      src/api/scan/request.js
  2. 4 0
      src/components/business_space/newGraphy/createBSP.vue

+ 8 - 1
src/api/scan/request.js

@@ -1316,10 +1316,17 @@ export function buildingQueryAndCount(param, success) {
 //创建分区信息
 export function createZone(param, success) {
     let data = param.data
-    let url = `${baseUrl}/datacenter/${zone[param.zone]}/create-bd-fl`;
+    let url = `${baseUrl}/datacenter/${zone[param.zone]}/create`;
     http.postJson(url, data, success)
 }
 
+//创建分区信息
+// export function createZone(param, success) {
+//     let data = param.data
+//     let url = `${baseUrl}/datacenter/${zone[param.zone]}/create-bd-fl`;
+//     http.postJson(url, data, success)
+// }
+
 //删除分区信息
 export function deleteZone(param, success) {
     let data = param.data

+ 4 - 0
src/components/business_space/newGraphy/createBSP.vue

@@ -26,6 +26,10 @@ export default {
     },
     // 确认
     confirm() {
+      if (this.roomName == '') {
+        this.$message.warning("请填写空间名称");
+        return
+      }
       this.$emit('createRoom', this.roomName);
       this.dialogVisible = false;
     }