|
|
@ -19,6 +19,7 @@ |
|
|
|
:filter-node-method="filterNode" |
|
|
|
@node-click="handleNodeClick" |
|
|
|
lazy |
|
|
|
:default-expanded-keys="autoOpenArr" |
|
|
|
:load="lazyLoadTree"> |
|
|
|
|
|
|
|
<span slot-scope="{ node, data }" |
|
|
@ -303,7 +304,6 @@ import { Loading } from 'element-ui' // 引入Loading服务 |
|
|
|
import nextTick from 'dai-js/tools/nextTick' |
|
|
|
import debounce from "lodash/debounce"; |
|
|
|
import deepClone from "@/utils/deepClone.js"; |
|
|
|
|
|
|
|
let loading // 加载动画 |
|
|
|
export default { |
|
|
|
data () { |
|
|
@ -322,6 +322,7 @@ export default { |
|
|
|
return time.getTime() > nowData |
|
|
|
} |
|
|
|
return { |
|
|
|
autoOpenArr:[], |
|
|
|
boxHeight: true, |
|
|
|
searchHeight: 190, |
|
|
|
filterText: '', |
|
|
@ -542,11 +543,13 @@ export default { |
|
|
|
const {data,code,msg} = await requestGet(url) |
|
|
|
if(data[0].children.length>0){ |
|
|
|
this.treeData = data |
|
|
|
this.autoOpenArr.push(this.treeData[0].id); |
|
|
|
}else{ |
|
|
|
this.treeData = [] |
|
|
|
setTimeout(() => { |
|
|
|
this.loadTree() |
|
|
|
}, 5) |
|
|
|
|
|
|
|
this.$message.error('暂未找到!') |
|
|
|
} |
|
|
|
}else { |
|
|
|