Browse Source

delete echarts

肖阳 4 years ago
parent
commit
54e15bfae5

+ 2 - 0
src/components/DrawFlow/src/utils/index.js

@@ -42,6 +42,7 @@ export function getColNode(colNodeArrs) {
       groupId: map[groupId][0].groupPid,
       groupId: map[groupId][0].groupPid,
       type: "route",
       type: "route",
       isRow: true,
       isRow: true,
+      // TODO "流转至" 应单独写配置文件
       isFlowTo: map[groupId][0].type === "6",
       isFlowTo: map[groupId][0].type === "6",
       conditionNodes: map[groupId]
       conditionNodes: map[groupId]
     };
     };
@@ -163,6 +164,7 @@ export function transTree(arr) {
     p.childNode = lis;
     p.childNode = lis;
     if (
     if (
       p.childNode.conditionNodes &&
       p.childNode.conditionNodes &&
+      // TODO "流转至" 应单独写配置文件
       p.childNode.conditionNodes[0].type === "6"
       p.childNode.conditionNodes[0].type === "6"
     ) {
     ) {
       p.isFlowTo = true;
       p.isFlowTo = true;

+ 50 - 42
src/views/Home.vue

@@ -30,60 +30,68 @@ const arr = [
     pids: [null]
     pids: [null]
   },
   },
   {
   {
-    type: "2",
-    title: "你好",
-    content: "contentaps9lbz9o4jg6rp1",
-    groupId: "amchc9jr6hrtm3sr",
-    id: "aps9lbz9o4jg6rp1",
-    isRow: true,
+    title: "title",
     data: {},
     data: {},
-    isParent: true,
-    pids: ["amchc9jr6hrtm3sr"]
+    id: "an3boz0zbth6i67o",
+    groupId: "a7wd1l3kz6orbpyf",
+    type: "3",
+    content: "undefinedan3boz0zbth6i67o",
+    groupPid: "a9urcgltunlo3svk",
+    isRow: false,
+    pids: ["a9urcgltunlo3svk"]
   },
   },
   {
   {
-    type: "4",
     title: "title",
     title: "title",
-    content: "contentaqfvkqc99q6xxq83",
-    groupId: "root",
-    id: "aqfvkqc99q6xxq83",
-    isRow: true,
     data: {},
     data: {},
-    isParent: true,
-    pids: ["root"]
+    id: "am3ewe040lpe90j0",
+    groupId: "a7wd1l3kz6orbpyf",
+    type: "3",
+    content: "undefinedam3ewe040lpe90j0",
+    groupPid: "a9urcgltunlo3svk",
+    isRow: false,
+    pids: ["a9urcgltunlo3svk"]
   },
   },
   {
   {
+    type: "4",
     title: "title",
     title: "title",
+    content: "contenta9urcgltunlo3svk",
+    groupId: "root",
+    id: "a9urcgltunlo3svk",
+    isRow: true,
     data: {},
     data: {},
-    id: "amchc9jr6hrtm3sr",
-    groupId: "ah97ujupz91p2gdr",
-    type: "3",
-    content: "undefinedamchc9jr6hrtm3sr",
-    groupPid: "aqfvkqc99q6xxq83",
-    isRow: false,
     isParent: true,
     isParent: true,
     childNode: {
     childNode: {
-      type: "2",
-      title: "你好",
-      content: "contentaps9lbz9o4jg6rp1",
-      groupId: "amchc9jr6hrtm3sr",
-      id: "aps9lbz9o4jg6rp1",
+      id: "a7wd1l3kz6orbpyf",
+      groupId: "a9urcgltunlo3svk",
+      type: "route",
       isRow: true,
       isRow: true,
-      data: {},
-      isParent: true,
-      pids: ["amchc9jr6hrtm3sr"]
+      isFlowTo: false,
+      conditionNodes: [
+        {
+          title: "title",
+          data: {},
+          id: "an3boz0zbth6i67o",
+          groupId: "a7wd1l3kz6orbpyf",
+          type: "3",
+          content: "undefinedan3boz0zbth6i67o",
+          groupPid: "a9urcgltunlo3svk",
+          isRow: false,
+          pids: ["a9urcgltunlo3svk"]
+        },
+        {
+          title: "title",
+          data: {},
+          id: "am3ewe040lpe90j0",
+          groupId: "a7wd1l3kz6orbpyf",
+          type: "3",
+          content: "undefinedam3ewe040lpe90j0",
+          groupPid: "a9urcgltunlo3svk",
+          isRow: false,
+          pids: ["a9urcgltunlo3svk"]
+        }
+      ]
     },
     },
-    pids: ["aqfvkqc99q6xxq83"]
-  },
-  {
-    title: "title",
-    data: {},
-    id: "a8rg79hnv5e74gct",
-    groupId: "ah97ujupz91p2gdr",
-    type: "3",
-    content: "undefineda8rg79hnv5e74gct",
-    groupPid: "aqfvkqc99q6xxq83",
-    isRow: false,
-    pids: ["aqfvkqc99q6xxq83"]
+    pids: ["root"]
   }
   }
 ];
 ];
 // @ is an alias to /src
 // @ is an alias to /src
@@ -114,7 +122,7 @@ export default {
     getData() {
     getData() {
       console.log(this.$refs.flow);
       console.log(this.$refs.flow);
       let res = this.$refs.flow.getResData();
       let res = this.$refs.flow.getResData();
-      console.log("这是返回的一维数组", JSON.stringify(res));
+      console.log("这是返回的一维数组", res);
     },
     },
     nodeChange() {
     nodeChange() {
       this.node.content = "nihao";
       this.node.content = "nihao";

+ 0 - 60
src/views/echartDemo.vue

@@ -1,60 +0,0 @@
-<template>
-  <div class="echartDemo">
-    <echarts-demo
-      :areaData="areaData"
-      :option="option"
-      :cityConfig="cityConfig"
-      :areaItems="areaItems"
-    ></echarts-demo>
-  </div>
-</template>
-
-<script>
-let mapJson = require("./json/xuzhou.json");
-import AreaData from "./js/data";
-export default {
-  name: "EachartsDom",
-  data() {
-    return {
-      areaData: new AreaData(),
-      areaItems: { 丰县: [116.59957, 34.69972] },
-      cityConfig: {
-        name: "徐州市",
-        dataJson: mapJson
-      },
-      option: {
-        backgroundColor: "#02AFDB",
-        tooltip: {},
-        geo: {
-          map: "徐州市",
-          roam: true,
-          label: {
-            normal: {
-              show: true,
-              textStyle: {
-                color: "rgba(0,0,0,0.4)"
-              }
-            }
-          },
-          itemStyle: {
-            normal: {
-              borderColor: "rgba(0, 0, 0, 0.2)"
-            },
-            emphasis: {
-              areaColor: null,
-              shadowOffsetX: 0,
-              shadowOffsetY: 0,
-              shadowBlur: 20,
-              borderWidth: 0,
-              shadowColor: "rgba(0, 0, 0, 0.5)"
-            }
-          }
-        }
-      }
-    };
-  },
-  mounted() {}
-};
-</script>
-
-<style></style>

+ 0 - 26
src/views/getNode.js

@@ -1,26 +0,0 @@
-class FlowNode {
-  constructor({ nodeType, nodeId, nodeName, groupId, parentGroupId, ...data }) {
-    if (nodeType === "1") {
-      return {
-        id: "root",
-        groupId: "root",
-        type: "root",
-        title: "所有人",
-        content: "请选择",
-        isRow: true,
-        isRoot: true,
-        data: {}
-      };
-    }
-    if (nodeType === "5") {
-      return null;
-    }
-    this.data = data;
-    this.id = nodeId;
-    this.title = nodeName;
-    this.type = nodeType;
-    this.groupId = groupId;
-    this.groupPid = parentGroupId;
-  }
-}
-export { FlowNode };

+ 0 - 24
src/views/js/data.js

@@ -1,24 +0,0 @@
-class areaData {
-  constructor() {
-    return [
-      {
-        areaName: "丰县",
-        DateItems: [
-          {
-            title: "标题1",
-            value: "10"
-          },
-          {
-            title: "标题2",
-            value: "20"
-          },
-          {
-            title: "标题3",
-            value: "30"
-          }
-        ]
-      }
-    ];
-  }
-}
-export default areaData;

File diff suppressed because it is too large
+ 0 - 0
src/views/json/xuzhou.json


Some files were not shown because too many files changed in this diff