diff --git a/src/views/components/task/rule/index.vue b/src/views/components/task/rule/index.vue new file mode 100644 index 0000000..447eeaa --- /dev/null +++ b/src/views/components/task/rule/index.vue @@ -0,0 +1,151 @@ + + + + diff --git a/src/views/task/task/antvX6.vue b/src/views/task/task/antvX6.vue index 50eb730..c829004 100644 --- a/src/views/task/task/antvX6.vue +++ b/src/views/task/task/antvX6.vue @@ -37,6 +37,13 @@ :taskId="taskId"> + + + + + @@ -48,6 +55,7 @@ import { findByNodeId } from '@/api/task/task' import formData from '/src/views/components/task/formData.vue' import formJoin from '/src/views/components/task/formJoin.vue' import dataOutInput from '/src/views/components/task/formDataOut.vue' +import ruleForm from "@/views/components/task/rule/index"; export default { name: "antvX6", @@ -55,11 +63,13 @@ export default { formData, formJoin, dataOutInput, + ruleForm, }, data() { return { //数据输出弹窗界面 taskDataOutPut:false, + ruleOpen: false, //任务设计添加表弹窗 taskInputAdd:false, //联查界面 @@ -101,6 +111,12 @@ export default { image: require("@/assets/img/4.png"), data:{} }, + { + id: 5, + name: "规则", + image: require("@/assets/img/5.png"), + data:{} + }, ], //画布 graph:null, @@ -112,6 +128,7 @@ export default { taskInputForm:false, formData:false, formJoin:false, + ruleDestroy:false, formOut:false, taskId:this.$route.params.id, }; @@ -121,6 +138,12 @@ export default { this.initGraph(); }, methods: { + + ruleDestroyValue(data) { + this.ruleDestroy = data; + this.ruleOpen = data; + }, + findFormValue(){ this.formData=false; this.taskInputForm=false; @@ -188,6 +211,10 @@ export default { this.taskDataOutPut = true; this.formOut = true; } + if (thisData == "规则") { + this.ruleOpen = true; + this.ruleDestroy = true; + } });