[fix 87676] 资料中心-表格更新不刷新树节点

This commit is contained in:
danshihao
2024-07-31 19:19:20 +08:00
parent bfbcf911ed
commit ca776e4bcb
@@ -136,7 +136,7 @@
</div>
<!--表格数据新增编辑-->
<profile-center-modal ref="modalForm" @ok="modalFormOk" />
<profile-center-modal ref="modalForm" @ok="tableModalFormOk" />
<!--树节点新增编辑-->
<profile-center-tree-modal ref="treeModal" @ok="modalFormOk" />
</a-card>
@@ -304,6 +304,13 @@ export default {
this.selectedTreeKeys = [dataRef.id]
this.loadData(1)
},
// 表格更新回调,不重置树
tableModalFormOk () {
// 新增/修改 成功时,重载列表
this.loadData()
// 清空列表选中
this.onClearSelected()
},
modalFormOk () {
this.selectedTreeKeys = []
this.initTreeData()
@@ -407,7 +414,7 @@ export default {
@import '~@assets/less/common.less';
.tree-operate-node-selected {
//background-color: #ffd9d1 !important;
background-color: #e6f4ff !important;
}
/deep/ .table-page-search-wrapper .ant-form-inline .ant-form-item > .ant-form-item-label {