|
|
@@ -1914,6 +1914,7 @@ const tableFormSaveClick = async (item, dragItem = null) => {
|
|
|
|
|
|
//保存表单数据
|
|
|
const inputTitle = ref('')
|
|
|
+const isRemoveForSubTab = ref(null)
|
|
|
const saveExcelBussData = async (
|
|
|
{ pkeyId },
|
|
|
dragItem = null,
|
|
|
@@ -1924,7 +1925,11 @@ const saveExcelBussData = async (
|
|
|
const isRegExp = await refs?.isFormRegExp()
|
|
|
if (isRegExp) {
|
|
|
const formData = refs?.getFormData()
|
|
|
- const { error, code, msg, data } = await wbsApi.saveExcelBussData(formData)
|
|
|
+ const { error, code, msg, data } = await wbsApi.saveExcelBussData({
|
|
|
+ ...formData,
|
|
|
+ isRemoveForSubTab:isRemoveForSubTab.value,
|
|
|
+
|
|
|
+ })
|
|
|
setDragModalLoading(dragItem)
|
|
|
if (!error && code === 200) {
|
|
|
if (showTip) {
|
|
|
@@ -2570,8 +2575,9 @@ const clearSaveClick = async (type)=>{
|
|
|
const itemFormData = refs?.getFormData()
|
|
|
|
|
|
// 主动调用保存接口 - 使用重新加载后的数据
|
|
|
+ isRemoveForSubTab.value = true
|
|
|
await tableFormSaveClick(itemFormData)
|
|
|
-
|
|
|
+ isRemoveForSubTab.value = false
|
|
|
if (DragModalTableForm.value.length > 0) {
|
|
|
let draindex = arrIndex(
|
|
|
DragModalTableForm.value,
|