|
|
@ -700,19 +700,36 @@ const handleSend = async (id: number) => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
|
|
|
|
if (row && row.claimAddress?.trim()) { |
|
|
|
row.filePathList = row.claimAddress.split(',') |
|
|
|
} |
|
|
|
if (row && row.claimAddressName?.trim()) { |
|
|
|
row.claimAddressNameList = row.claimAddressName.split(','); |
|
|
|
} |
|
|
|
|
|
|
|
if (row && row.filePathList && row.filePathList.length > 0) { |
|
|
|
row.filePathListView = row.filePathList.map((item) => { |
|
|
|
row.filePathListView = row.filePathList.map((item, index) => { |
|
|
|
return { |
|
|
|
name: item, |
|
|
|
name: row.claimAddressNameList ? row.claimAddressNameList[index] || item : item, |
|
|
|
url: item |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// if (row && row.claimAddress?.trim()) { |
|
|
|
// row.filePathList = row.claimAddress.split(',') |
|
|
|
// } |
|
|
|
// |
|
|
|
// if (row && row.filePathList && row.filePathList.length > 0) { |
|
|
|
// row.filePathListView = row.filePathList.map((item) => { |
|
|
|
// return { |
|
|
|
// name: item, |
|
|
|
// url: item |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// } |
|
|
|
|
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
if (!row || !row.claimAmount) { |
|
|
|
nextTick(() => { |
|
|
|