diff --git a/package.json b/package.json
index db43daf..5d6457f 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,17 @@
"url": "https://gitee.com/y_project/MuYu-Cloud.git"
},
"dependencies": {
+ "@antv/x6": "^2.18.1",
+ "@antv/x6-plugin-clipboard": "^2.1.6",
+ "@antv/x6-plugin-history": "^2.2.4",
+ "@antv/x6-plugin-keyboard": "^2.2.3",
+ "@antv/x6-plugin-selection": "^2.2.2",
+ "@antv/x6-plugin-snapline": "^2.1.7",
+ "@antv/x6-plugin-stencil": "^2.1.5",
+ "@antv/x6-plugin-transform": "^2.1.8",
+ "@antv/x6-vue-shape": "^2.1.2",
"@riophae/vue-treeselect": "0.4.0",
+ "@vue/composition-api": "^1.7.2",
"axios": "0.24.0",
"clipboard": "2.0.8",
"core-js": "3.25.3",
@@ -45,6 +55,7 @@
"file-saver": "2.0.5",
"fuse.js": "6.4.3",
"highlight.js": "9.18.5",
+ "insert-css": "^2.0.0",
"js-beautify": "1.13.0",
"js-cookie": "3.0.1",
"jsencrypt": "3.0.0-rc.1",
diff --git a/src/App.vue b/src/App.vue
index 69a3716..8047d20 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -10,7 +10,7 @@ import ThemePicker from "@/components/ThemePicker";
export default {
name: "App",
- components: {ThemePicker},
+ components: { ThemePicker },
metaInfo() {
return {
title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
@@ -25,4 +25,13 @@ export default {
#app .theme-picker {
display: none;
}
+
+#app {
+ font-family: Avenir, Helvetica, Arial, sans-serif;
+ width: 100%;
+ height: 100%;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ color: #2c3e50;
+}
diff --git a/src/api/task/task.js b/src/api/task/task.js
index 318ba9f..a38f9ec 100644
--- a/src/api/task/task.js
+++ b/src/api/task/task.js
@@ -60,4 +60,14 @@ export function findStructureList(tableId) {
})
}
+//添加节点任务记录
+export function addTaskInput(data) {
+ return request({
+ url: "/task/taskInput/addTaskInput",
+ method: "POST",
+ data:data
+ })
+}
+
+
diff --git a/src/assets/img/1.png b/src/assets/img/1.png
new file mode 100644
index 0000000..f135f39
Binary files /dev/null and b/src/assets/img/1.png differ
diff --git a/src/assets/img/2.png b/src/assets/img/2.png
new file mode 100644
index 0000000..3f7b32c
Binary files /dev/null and b/src/assets/img/2.png differ
diff --git a/src/assets/img/3.png b/src/assets/img/3.png
new file mode 100644
index 0000000..04bdaec
Binary files /dev/null and b/src/assets/img/3.png differ
diff --git a/src/assets/img/4.png b/src/assets/img/4.png
new file mode 100644
index 0000000..2f3d483
Binary files /dev/null and b/src/assets/img/4.png differ
diff --git a/src/router/index.js b/src/router/index.js
index 4d9fcc1..5f3357c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -47,7 +47,7 @@ export const constantRoutes = [
children: [// 父级路由下面还有子路由
{
path: 'index/:id',// 这个index可以自己定义
- component: () => import('@/views/task/task/easyFlow.vue'),
+ component: () => import('@/views/task/task/antvX6.vue'),
name: "easyFlow",
meta: { title: '设计', icon: 'dashboard', activeMenu: '/task/task' }
}
diff --git a/src/views/task/task/antvX6.vue b/src/views/task/task/antvX6.vue
new file mode 100644
index 0000000..68a443b
--- /dev/null
+++ b/src/views/task/task/antvX6.vue
@@ -0,0 +1,648 @@
+
+
+
选择节点
+
+
提交
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择数据表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.columnName }}
+
+
+
+
+
+
+ {{ scope.row.columnRemark }}
+
+
+
+
+
+
+ {{ scope.row.isPrimary }}
+
+
+
+
+
+
+ {{ scope.row.columnType }}
+
+
+
+
+
+
+ {{ scope.row.columnLength }}
+
+
+
+
+
+
+ {{ scope.row.columnDecimals }}
+
+
+
+
+
+
+ {{ scope.row.isNull }}
+
+
+
+
+
+
+ {{ scope.row.defaultValue }}
+
+
+
+
+
+
+ {{ scope.row.isDictionary }}
+
+
+
+
+
+ 非空规则
+ aa规则
+ 我啊规则
+ 收到规则
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/task/task/index.vue b/src/views/task/task/index.vue
index 4eccf29..88a0afd 100644
--- a/src/views/task/task/index.vue
+++ b/src/views/task/task/index.vue
@@ -399,7 +399,7 @@ export default {
methods: {
//跳转到任务设计界面
toDesign(row){
- this.$router.push({path:'/easyFlow'});
+ this.$router.push({path:'/easyFlow/index/:'+row.id});
},
//选择数据表改变数据