fix 文档拆分修改

This commit is contained in:
赵霄
2024-01-25 11:47:44 +08:00
parent 5a80e20e9a
commit 6e90773b5a
2 changed files with 7 additions and 3 deletions
@@ -10,6 +10,7 @@
:show-icon="true"
:tree-data="treeData"
:selected-keys="selectedKeys"
:expanded-keys.sync="expandedKeys"
:replaceFields="{key: 'id'}">
<template #title="record">
<div class="tree-operate-node"
@@ -282,7 +283,8 @@ export default {
disabledMixinsCreate: true,
tableSlotField: ['item_content', 'interpretation_articles'],
uploadData: {},
isBackTitle: true
isBackTitle: true,
expandedKeys: []
}
},
computed: {
@@ -378,6 +380,7 @@ export default {
getClauseTreeData(params).then(res => {
if (res.success) {
this.treeData = res.result || []
this.expandedKeys = this.treeData.length > 0 ? this.treeData[0].id : []
}
}).finally(() => {
this.treeLoading = false
@@ -146,10 +146,11 @@ export default {
// 抽屉关闭
onClose () {
this.visible = false
this.onClearSelected()
},
// 取消
cancelSplit () {
this.visible = false
this.onClose()
},
// 拆分
submitSplit () {
@@ -178,7 +179,7 @@ export default {
addDocSplit(params).then(res => {
if (res.success) {
this.$message.success(this.$t('operationSuccessful'))
this.visible = false
this.onClose()
this.$emit('ok')
} else {
this.$message.warning(res.message)