Compare commits

..

No commits in common. '44dfc3e8546bc4e15134cda825a5903e3191493e' and '1feab42ac5865beb38629f13da78a3433a9ec491' have entirely different histories.

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

@ -45,12 +45,11 @@
<a-col > <a-col >
<a-form-model-item label="任务类型" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="typeId"> <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"/> --> <!-- <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"> <div v-for="item in options" :key="item.id" style="margin-bottom: 10px">
<span style="margin-right: 10px;">{{ item.type_Name }} </span> <span style="margin-right: 10px">{{ item.type_Name }} :</span>
<a-radio-group v-model="model.typeId" :key="`children-${item.id}`"> <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"> <a-radio v-for="child in item.children" :key="child.id" :value="child.id">{{ child.type_name
<span>{{ child.type_Name }}</span> }}</a-radio>
</a-radio>
</a-radio-group> </a-radio-group>
</div> </div>
</a-form-model-item> </a-form-model-item>
@ -339,12 +338,9 @@ export default {
methods: { methods: {
tasktype() { tasktype() {
getAction(this.url.listtasktype).then((res) => { getAction(this.url.listtasktype).then((res) => {
const data = res.result; this.options = res.result
this.options = Object.entries(data).map(([key, value]) => { console.log(res.result, '1326454')
const item = JSON.parse(key); console.log(this.options, '1556666')
item.children = value;
return item;
})
}) })
}, },
popupCallback(value,row){ popupCallback(value,row){

Loading…
Cancel
Save