|
@@ -736,7 +736,16 @@ const copyClick = async (item, index) => {
|
|
|
if (pkeyIds) {
|
|
|
if (isStatus.value !== '3') {
|
|
|
if (item.isRenderTableForm && !item.isCancopy) {
|
|
|
- window.$message.warning('请先保存数据再复制本表')
|
|
|
+ // window.$message.warning('请先保存数据再复制本表')
|
|
|
+ copyClickLoading.value = true
|
|
|
+ const res = await saveExcelBussData(item, index)
|
|
|
+ if (res) {
|
|
|
+ // renewData(newaddId.value)
|
|
|
+ await copeBussTab(pkeyIds)
|
|
|
+
|
|
|
+ } else {
|
|
|
+ window?.$message?.warning('复制本表操作失败')
|
|
|
+ }
|
|
|
} else {
|
|
|
if (!item.isRenderTableForm) {
|
|
|
await copeBussTab(pkeyIds)
|