Browse Source

Merge branch 'dev' of http://39.106.8.246:3003/web/ibms into dev

shaun-sheep 4 years ago
parent
commit
aba40131ba

+ 1 - 1
src/components/business_space/newGraphy/graphy.vue

@@ -92,7 +92,7 @@
     <!-- 创建新的业务空间 -->
     <createBSP ref="createBSP" @createRoom="createRoom"></createBSP>
     <!-- 批量创建选择弹窗 -->
-    <el-dialog title="提示" :visible.sync="groupCreateDialogVis" width="30%">
+    <el-dialog title="提示" :visible.sync="groupCreateDialogVis" width="30%" :close-on-click-modal="false">
       <div id="autoRelate">
         <p>批量创建面积大于此值的默认空间为业务空间:</p>
         <div style="padding:10px 20px;margin:0 0 10px 0;">

+ 20 - 0
src/views/business_space/dataUtil/topology.vue

@@ -221,6 +221,26 @@ export default {
     clickInputFile() {
       this.$refs.file.click()
     },
+    uuid(len, radix) {
+      var chars = '0123456789abcdef'.split('');
+      var uuid = [],
+        i;
+      radix = radix || chars.length;
+      if (len) {
+        for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix];
+      } else {
+        var r;
+        uuid[8] = uuid[13] = uuid[18] = uuid[23] = '';
+        uuid[14] = '4';
+        for (i = 0; i < 32; i++) {
+          if (!uuid[i]) {
+            r = 0 | Math.random() * 16;
+            uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r];
+          }
+        }
+      }
+      return uuid.join('');
+    }
   },
 }
 </script>