From bd9e302e52036a06ce9c1707c9d28938ea985577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E8=B1=AA?= <1437200870@qq.com> Date: Sun, 25 Aug 2024 11:41:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=9A=E5=89=8D=E5=8F=B0?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=AE=BE=E8=AE=A1=E9=9B=8F=E5=BD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/task/task/index.vue | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/views/task/task/index.vue b/src/views/task/task/index.vue index 1fc3495..4e8d9b0 100644 --- a/src/views/task/task/index.vue +++ b/src/views/task/task/index.vue @@ -189,28 +189,28 @@ - + - + - + - + - + @@ -340,6 +340,7 @@ export default { taskInputReq:{}, taskList:[], taskInfoList:[], + taskInfo:{}, tableList:[], structureList:[], }; @@ -350,9 +351,14 @@ export default { watch: {}, //方法集合", methods: { + //选择数据表改变数据 + changeTableName(row){ + this.taskInfo = row; + }, + //查询字段 - findByInputId(row){ - findByInputId(row.id).then(res=>{ + findByInputId(taskInfo){ + findByInputId(taskInfo.id).then(res=>{ this.structureList = res.data; }) @@ -371,9 +377,9 @@ export default { }, - addTaskInput(){ + addTaskInput(taskInfo){ this.taskInputAdd = false; - this.findByInputId(); + this.findByInputId(taskInfo); this.taskInputFieldAdd = true; },