[update] 修改bug77934
This commit is contained in:
@@ -287,6 +287,10 @@ export default {
|
||||
initTreeData (params) {
|
||||
this.treeLoading = true
|
||||
getTreeList(params).then(res => {
|
||||
this.treeData = []
|
||||
this.currentTreeNode = []
|
||||
this.currentTreeNodeCode = []
|
||||
this.filters.nodeCode = null
|
||||
if (res.success) {
|
||||
this.treeData = res.result || []
|
||||
} else {
|
||||
@@ -305,10 +309,10 @@ export default {
|
||||
this.initTreeData({ nodeName: this.treeInput })
|
||||
},
|
||||
// 左侧树点击选中
|
||||
treeSelect (record) {
|
||||
this.currentTreeNode = [record.key]
|
||||
this.currentTreeNodeCode = [record.nodeCode]
|
||||
this.searchParams.nodeCode = record.nodeCode
|
||||
treeSelect ({ dataRef }) {
|
||||
this.currentTreeNode = [dataRef.key]
|
||||
this.currentTreeNodeCode = [dataRef.nodeCode]
|
||||
this.filters.nodeCode = dataRef.nodeCode
|
||||
this.loadData(1)
|
||||
},
|
||||
// 左侧树点击新增
|
||||
@@ -362,6 +366,7 @@ export default {
|
||||
this.currentTreeNode = null
|
||||
this.searchParams = {}
|
||||
this.selectedRowKeys = []
|
||||
delete this.filters.nodeCode
|
||||
this.getTableHeader()
|
||||
this.loadData()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user