Browse Source

修改业务空间颜色 引入

haojianlong 5 years ago
parent
commit
ebcc1396c3
2 changed files with 12 additions and 10 deletions
  1. 2 10
      src/components/business_space/newGraphy/graphy.vue
  2. 10 0
      src/utils/spaceColor.js

+ 2 - 10
src/components/business_space/newGraphy/graphy.vue

@@ -94,6 +94,7 @@ import canvasFun from "./canvasFun"
 import { mapGetters, mapActions } from "vuex";
 import { SColor, SPoint } from "@saga-web/draw/lib";
 import { DivideFloorScene, SpaceItem, ZoneItem, FloorView } from "@saga-web/cad-engine/lib";
+import { colorArr } from "@/utils/spaceColor"
 import unRelateBSP from "./unRelateBSP";
 import createBSP from "./createBSP";
 import {
@@ -106,16 +107,7 @@ import {
   createRelateInZoneAndISp,
   groupCreRelaZoneAndISp
 } from "@/api/scan/request"
-const colorArr = [
-  "#fed44c",
-  "#3485d6",
-  "#a384fc",
-  "#4caf50",
-  "#ff6316",
-  "#fd8bbe",
-  "#03a9f3",
-  "#ea615b"
-];
+
 //  BSP => 业务空间
 export default {
   components: {

+ 10 - 0
src/utils/spaceColor.js

@@ -0,0 +1,10 @@
+export const colorArr = [
+  "#fed44c",
+  "#3485d6",
+  "#a384fc",
+  "#4caf50",
+  "#ff6316",
+  "#fd8bbe",
+  "#03a9f3",
+  "#ea615b"
+];