|
@@ -410,22 +410,21 @@ const delClick = async (item) => {
|
|
|
|
|
|
//复制本表
|
|
|
const copyClick = async (item,index) => {
|
|
|
- const pkeyIds = item.pkeyId ? item.pkeyId + '' : ''
|
|
|
- if (pkeyIds) {
|
|
|
+ if (item.pkeyId) {
|
|
|
if (isStatus.value !== '3') {
|
|
|
if (!item.isRenderTableForm) {
|
|
|
- await copeBussTab(pkeyIds)
|
|
|
+ await copeBussTab(item.pkeyId + '')
|
|
|
} else if (!item.isTableForm) {
|
|
|
window?.$message?.warning('暂无表单数据')
|
|
|
} else if (item.isRenderTableForm) {
|
|
|
const res = await saveExcelBussData(item,index,false)
|
|
|
if (res) {
|
|
|
- await copeBussTab(pkeyIds)
|
|
|
+ await copeBussTab(item.pkeyId + '')
|
|
|
} else {
|
|
|
window?.$message?.warning('复制本表操作失败')
|
|
|
}
|
|
|
} else {
|
|
|
- window?.$message?.warning(`数据异常了, isRenderTableForm: ${item.isRenderTableForm}, isTableForm: ${item.isTableForm}, pkeyIds:${pkeyIds}`)
|
|
|
+ window?.$message?.warning(`数据异常了, isRenderTableForm: ${item.isRenderTableForm}, isTableForm: ${item.isTableForm}, pkeyIds:${item.pkeyId}`)
|
|
|
}
|
|
|
} else {
|
|
|
window?.$message?.warning('已上报的资料,不允许复制')
|