From 73da99e5f04963d8a494a98c05f0df6dd1484f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B1=E5=B1=8B?= <3180483789@qq.com> Date: Fri, 14 Jul 2023 18:15:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=96=B0=E5=A2=9E=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/task/modules/TaskForm.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue b/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue index 34c6289..8182b65 100644 --- a/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue +++ b/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue @@ -45,11 +45,12 @@ -
- {{ item.type_Name }} : +
+ {{ item.type_Name }} - {{ child.type_name - }} + + {{ child.type_Name }} +
@@ -338,9 +339,12 @@ export default { methods: { tasktype() { getAction(this.url.listtasktype).then((res) => { - this.options = res.result - console.log(res.result, '1326454') - console.log(this.options, '1556666') + const data = res.result; + this.options = Object.entries(data).map(([key, value]) => { + const item = JSON.parse(key); + item.children = value; + return item; + }) }) }, popupCallback(value,row){