Bläddra i källkod

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

haojianlong 5 år sedan
förälder
incheckning
d091a75c2c
2 ändrade filer med 12 tillägg och 1 borttagningar
  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;
     }