fix : 修复征集公司回显,所属公司改为征集公司

This commit is contained in:
2024-07-03 19:39:53 +08:00
parent f26a29338a
commit 9edf5d484f
17 changed files with 56 additions and 31 deletions

View File

@@ -243,6 +243,7 @@ const showCompany = () => {
}
const selected = (select) => {
formData.value.companyIds=[]
for (let val of select) {
formData.value.companyIds.push(val.value)
}
@@ -368,7 +369,6 @@ const submitParam = (item) => {
}
}
const handleSubmit = async (instance) => {
console.log('submitParam(formData.value)', submitParam(formData.value))
if (!instance) return
instance.validate(async (valid) => {
if (!valid) {
@@ -415,16 +415,14 @@ const getCompanyOptionItem = (val) => {
if (val !== undefined) {
val.forEach(item => {
matterTree(companyNameArray.value, companyOption.value, item)
companyNameArray.value.forEach(companyItem => {
newObj = {
label: companyItem,
value: item
}
newArray.push(newObj)
})
})
companyNameArray.value.forEach(companyItem => {
newObj = {
label: companyItem
}
newArray.push(newObj)
})
}
return newArray;
}
const getDetailInfo = async () => {
@@ -460,7 +458,7 @@ const handleDelete = (row) => {
})
if (res.code === 1000) {
formData.value.fileList.splice(formData.value.fileList.findIndex((item) => item.id === row.fileId), 1);
showTable.value = formData.value.fileList.length !== 0;
// showTable.value = formData.value.fileList.length !== 0;
}
});
}

View File

@@ -77,7 +77,7 @@ const tableConfig = reactive({
},
{
prop: 'companyName',
label: '所属公司',
label: '征集公司',
align: 'center',
currentRender: ({row, index}) => (
<div style={{width: '300px', textOverflow: 'ellipsis'}}>{row.companyName}</div>)