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