fix 文档拆分修改
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
:show-icon="true"
|
:show-icon="true"
|
||||||
:tree-data="treeData"
|
:tree-data="treeData"
|
||||||
:selected-keys="selectedKeys"
|
:selected-keys="selectedKeys"
|
||||||
|
:expanded-keys.sync="expandedKeys"
|
||||||
:replaceFields="{key: 'id'}">
|
:replaceFields="{key: 'id'}">
|
||||||
<template #title="record">
|
<template #title="record">
|
||||||
<div class="tree-operate-node"
|
<div class="tree-operate-node"
|
||||||
@@ -282,7 +283,8 @@ export default {
|
|||||||
disabledMixinsCreate: true,
|
disabledMixinsCreate: true,
|
||||||
tableSlotField: ['item_content', 'interpretation_articles'],
|
tableSlotField: ['item_content', 'interpretation_articles'],
|
||||||
uploadData: {},
|
uploadData: {},
|
||||||
isBackTitle: true
|
isBackTitle: true,
|
||||||
|
expandedKeys: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -378,6 +380,7 @@ export default {
|
|||||||
getClauseTreeData(params).then(res => {
|
getClauseTreeData(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.treeData = res.result || []
|
this.treeData = res.result || []
|
||||||
|
this.expandedKeys = this.treeData.length > 0 ? this.treeData[0].id : []
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.treeLoading = false
|
this.treeLoading = false
|
||||||
|
|||||||
@@ -146,10 +146,11 @@ export default {
|
|||||||
// 抽屉关闭
|
// 抽屉关闭
|
||||||
onClose () {
|
onClose () {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
|
this.onClearSelected()
|
||||||
},
|
},
|
||||||
// 取消
|
// 取消
|
||||||
cancelSplit () {
|
cancelSplit () {
|
||||||
this.visible = false
|
this.onClose()
|
||||||
},
|
},
|
||||||
// 拆分
|
// 拆分
|
||||||
submitSplit () {
|
submitSplit () {
|
||||||
@@ -178,7 +179,7 @@ export default {
|
|||||||
addDocSplit(params).then(res => {
|
addDocSplit(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(this.$t('operationSuccessful'))
|
this.$message.success(this.$t('operationSuccessful'))
|
||||||
this.visible = false
|
this.onClose()
|
||||||
this.$emit('ok')
|
this.$emit('ok')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user