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