基础
@@ -60,6 +64,7 @@ import {batch, listNode} from "../../../api/quest/node";
import {GenNonDuplicateID} from "../../../common/until";
import panzoom from "panzoom";
import methods from "./config/methods";
+import {execute, testExecute} from "../../../api/quest/task";
export default {
name: "FlowEdit",
@@ -181,13 +186,13 @@ export default {
});
return Array.from(map.values());
},
- // 保存修改按钮
- save() {
+ /** 参数处理 */
+ handleSubmit() {
// 1. 获取所有节点与连线信息
const nodeList = this.data.nodeList
const lineList = this.lineHandle(this.data.lineList)
- this.checkData.nodeList = nodeList
- this.checkData.lineList = lineList
+ this.checkData.nodeList = this.data.nodeList
+ this.checkData.lineList = this.data.lineList
console.log(this.data)
// 2. 处理所有信息,将jsPlumb类型 ==> 数据表类型
@@ -209,11 +214,22 @@ export default {
})
nodeData.push(flowNode.methods.toMysqlNode(node,preLine,nextLine,this.taskCode))
})
- // 3. 激活接口将参数传递到后端
+ return nodeData;
+ },
+ // 测试按钮
+ test() {
+ const nodeData = this.handleSubmit();
+ testExecute(nodeData).then(res => {
+ this.$message.success(res.data)
+ })
+ },
+ // 保存按钮
+ save() {
+ const nodeData = this.handleSubmit();
+ // 激活接口将参数保存到数据库
batch(nodeData,this.$route.query.taskCode).then(res => {
this.$message.success(res.msg)
})
- console.log(nodeData)
},
// 返回校验
returnBack() {
From ddc2ff0e51085266713ee6c12718b139032907d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=86=B7=E8=B0=83?= <3084898776@qq.com>
Date: Fri, 6 Sep 2024 15:47:15 +0800
Subject: [PATCH 2/2] =?UTF-8?q?09061546:=E6=95=B0=E6=8D=AE=E6=8E=A5?=
=?UTF-8?q?=E5=85=A5=E8=8F=9C=E5=8D=95=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/rule/rule/version.vue | 22 +++++++++++++---------
src/views/source/index.vue | 9 ++++-----
2 files changed, 17 insertions(+), 14 deletions(-)
diff --git a/src/views/rule/rule/version.vue b/src/views/rule/rule/version.vue
index 2c9482f..ecac655 100644
--- a/src/views/rule/rule/version.vue
+++ b/src/views/rule/rule/version.vue
@@ -342,17 +342,18 @@
选择资产结构
-
+
-
+
选择资产集
+
@@ -387,11 +388,14 @@ import {delRule, getRule} from "/src/api/rule/rule";
import {
addGenerate,
addRule,
- disable,
- enable, findTableIdByParentId,
+ enable,
+ findTableIdByParentId,
getEditionList,
- getFindByEditionId, selectById,
- updateRule, updateRuleEngine
+ getFindByEditionId,
+ selectById,
+ updateRule,
+ updateRuleEngine,
+ findTableValueByTableName
} from "@/api/rule/ruleEdition";
@@ -493,8 +497,8 @@ export default {
created() {
this.ruleAndVersion.id = this.$route.query.id
this.findById();
- this.findList()
- this.getDataOrigin()
+ this.findList();
+ this.getDataOrigin();
},
//生命周期 - 挂载完成(可以访问DOM元素)",
mounted() {
@@ -514,7 +518,7 @@ export default {
console.log("origins", this.origins)
})
},
-
+ //表结构
chanChild() {
findTableIdByParentId(this.dataOrigin.sourceId).then(res => {
this.tableOrigin = res.data
diff --git a/src/views/source/index.vue b/src/views/source/index.vue
index 9e2cc7a..52907eb 100644
--- a/src/views/source/index.vue
+++ b/src/views/source/index.vue
@@ -178,14 +178,12 @@
+
+
+
-
是
否
-
-
-
-
@@ -285,6 +283,7 @@ export default {
maxNum: null,
maxWaitTime: null,
maxWaitSize: null,
+ driverName: null,
createBy: null,
createTime: null,
updateBy: null,