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){