Commit 10cbbf7e by 李乾广

修改bug

1 parent 80f9966d
......@@ -171,12 +171,12 @@ export default {
const addGroupLoading = ref(false)
const handleAddGroup = (dataList) => {
const targetDataList = dataList || selectedImgList.value
if (targetDataList.length > 0) {
const strUnidList = targetDataList.map((item) => item.unid).join(',')
const params = {
unid: strUnidList,
personUnid: personUnid.value,
countdate:formData.value.date,
}
addGroupLoading.value = true
......
......@@ -29,7 +29,7 @@
</a-select>
</a-form-item>
<a-form-item label="类型">
<a-select v-model:value="formData.type" :options="formData.personTypeList" optionFilterProp="label" :allowClear="true"></a-select>
<a-select v-model:value="formData.type" :options="personTypeList" optionFilterProp="label" :allowClear="true"></a-select>
</a-form-item>
</a-form>
......@@ -58,16 +58,15 @@ export default {
gender: 0,
type: 0,
countdate: '',
personTypeList:[]
}
}
const formData = ref(getInitialFormData())
const personTypeList = ref([])
const initDialog = (data) => {
console.log('initDialog', data)
formData.value = getInitialFormData()
formData.value.personUnid = data.person_unids
formData.value.personTypeList = data.personTypeList
personTypeList.value = data.personTypeList
if (data.perrsonList.length > 0) {
formData.value.age = data.perrsonList[0].age
formData.value.gender = data.perrsonList[0].gender
......@@ -115,6 +114,7 @@ export default {
onSave,
onCancel,
initDialog,
personTypeList,
};
},
};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!