|
@@ -45,7 +45,7 @@
|
|
|
:pid="`table-form-${item?.id}`"
|
|
|
:area-id="areaId"
|
|
|
:table-id="item.tableId"
|
|
|
- :agreement-id="agreementId"
|
|
|
+ :agreement-id="item.agreementId"
|
|
|
style="width: 100%;"
|
|
|
@excelBodyTap="excelTableFormClick($event)"
|
|
|
@render="tableFormRender($event, item, index)"
|
|
@@ -525,6 +525,7 @@ const dragNodeMoreMenuTap = ({ key }, items) => {
|
|
|
|
|
|
const copyClickLoading = ref(false)
|
|
|
const copyClick = async (items) => {
|
|
|
+ items.isTableRender = true
|
|
|
const { id, isTableRender, isTableForm } = items
|
|
|
if (id) {
|
|
|
if (isStatus.value !== 3) {
|
|
@@ -536,7 +537,7 @@ const copyClick = async (items) => {
|
|
|
copyClickLoading.value = true
|
|
|
const isSave = await saveExcelBussData(items, null, false)
|
|
|
if (isSave) {
|
|
|
- await copeBussTab(id)
|
|
|
+ await copeBussTab(id, isSave)
|
|
|
} else {
|
|
|
copyClickLoading.value = false
|
|
|
window?.$message?.warning('复制本表操作失败')
|
|
@@ -553,7 +554,7 @@ const copyClick = async (items) => {
|
|
|
}
|
|
|
|
|
|
//复制表的请求
|
|
|
-const copeBussTab = async (pkeyId) => {
|
|
|
+const copeBussTab = async (pkeyId, aid) => {
|
|
|
copyClickLoading.value = true
|
|
|
const { error, code } = await landApi.copeTab({
|
|
|
id: pkeyId,
|
|
@@ -561,7 +562,7 @@ const copeBussTab = async (pkeyId) => {
|
|
|
copyClickLoading.value = false
|
|
|
if (!error && code === 200) {
|
|
|
window?.$message?.success('操作成功')
|
|
|
- renewData()
|
|
|
+ renewData(aid)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -654,9 +655,7 @@ const getBussPdfInfo = async ({ id }, dragItem = null, showTip = true) => {
|
|
|
|
|
|
//通知数据更新
|
|
|
const renewData = (id) => {
|
|
|
-
|
|
|
const activeKey = getStoreValue('activeKey')
|
|
|
-
|
|
|
emit('renew', id, activeKey)
|
|
|
ActiveKey.value = ''
|
|
|
|
|
@@ -677,7 +676,10 @@ const setDragModalLoading = (dragItem, text = '保存中...', show = false) => {
|
|
|
const getFormRef = async (pkeyId) => {
|
|
|
const itemRef = itemRefs.value
|
|
|
const index = arrIndex(itemRef, 'pKeyId', pkeyId)
|
|
|
- return itemRef[index].ref
|
|
|
+ if (index !== -1) {
|
|
|
+ return itemRef[index].ref
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//删除打开的窗口
|