Commit 10cbbf7e by 李乾广

修改bug

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