Compare commits

..

2 Commits

  1. 18
      ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue

@ -45,11 +45,12 @@
<a-col >
<a-form-model-item label="任务类型" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="typeId">
<!-- <j-dict-select-tag v-model="model.typeId" type="radio" style="width: 100%" dict-code="task_type,type_name,id"/> -->
<div v-for="item in options" :key="item.id" style="margin-bottom: 10px">
<span style="margin-right: 10px">{{ item.type_Name }} :</span>
<div v-for="item in options" :key="item.id">
<span style="margin-right: 10px;">{{ item.type_Name }} </span>
<a-radio-group v-model="model.typeId" :key="`children-${item.id}`">
<a-radio v-for="child in item.children" :key="child.id" :value="child.id">{{ child.type_name
}}</a-radio>
<a-radio v-for="child in item.children" :key="child.id" :value="child.id">
<span>{{ child.type_Name }}</span>
</a-radio>
</a-radio-group>
</div>
</a-form-model-item>
@ -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){

Loading…
Cancel
Save