|
@@ -224,7 +224,7 @@
|
|
<template v-for="(item,index) in DragModalTableForm">
|
|
<template v-for="(item,index) in DragModalTableForm">
|
|
<HcDragModal :eid="item.pkeyId" :height="DragModalHeight" :isShow="item.isShow" :loading="item.loading"
|
|
<HcDragModal :eid="item.pkeyId" :height="DragModalHeight" :isShow="item.isShow" :loading="item.loading"
|
|
:loadingText="item.loadingText" :title="item.title"
|
|
:loadingText="item.loadingText" :title="item.title"
|
|
- isSortTop @close="TableFormClose($event, item, index)">
|
|
|
|
|
|
+ isSortTop @close="TableFormClose(item, index)">
|
|
<HcDragNode :more-menu="dragNodeMoreMenu" @menuTap="dragNodeMoreMenuTap($event, item)">
|
|
<HcDragNode :more-menu="dragNodeMoreMenu" @menuTap="dragNodeMoreMenuTap($event, item)">
|
|
<HcTableForm :ref="(el) => setItemRefs(el, item)" :api="apis" :classify="item.classify"
|
|
<HcTableForm :ref="(el) => setItemRefs(el, item)" :api="apis" :classify="item.classify"
|
|
:datas="changeFormDatas(item?.pkeyId, 'window')" :height="item.height"
|
|
:datas="changeFormDatas(item?.pkeyId, 'window')" :height="item.height"
|
|
@@ -765,19 +765,15 @@ const setInitDragModalTableForm = (item, index) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-const TableFormClose = async (closeFunc, item, index) => {
|
|
|
|
|
|
+//关闭窗口
|
|
|
|
+const TableFormClose = async ({pkeyId, index}, indexs) => {
|
|
|
|
+ const list = deepClone(DragModalTableForm.value)
|
|
//取表单的数据
|
|
//取表单的数据
|
|
- await setChangeFormDatas(item?.pkeyId, 'collapse')
|
|
|
|
- console.log(item, index)
|
|
|
|
|
|
+ await setChangeFormDatas(pkeyId, 'collapse')
|
|
//关闭窗口
|
|
//关闭窗口
|
|
- const list = DragModalTableForm.value
|
|
|
|
- console.log(list)
|
|
|
|
- list.splice(index, 1)
|
|
|
|
- listDatas.value[item.index].isWindow = false
|
|
|
|
|
|
+ list.splice(indexs, 1)
|
|
DragModalTableForm.value = list
|
|
DragModalTableForm.value = list
|
|
- console.log(list)
|
|
|
|
- //关闭窗口
|
|
|
|
- //closeFunc()
|
|
|
|
|
|
+ listDatas.value[index].isWindow = false
|
|
}
|
|
}
|
|
|
|
|
|
const dragNodeMoreMenu = [
|
|
const dragNodeMoreMenu = [
|