|
@@ -38,7 +38,7 @@ export default {
|
|
|
} else if (this.partyType === 'position') {
|
|
} else if (this.partyType === 'position') {
|
|
|
this.lazyTree = true
|
|
this.lazyTree = true
|
|
|
this.defaultExpandedKeys = ['0']
|
|
this.defaultExpandedKeys = ['0']
|
|
|
- this.defaultExpandAll = false
|
|
|
|
|
|
|
+ this.defaultExpandAll = true
|
|
|
this.loadPositionTreeData(init, resetParams)
|
|
this.loadPositionTreeData(init, resetParams)
|
|
|
} else {
|
|
} else {
|
|
|
this.lazyTree = false
|
|
this.lazyTree = false
|
|
@@ -108,7 +108,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 点击节点
|
|
// 点击节点
|
|
|
handleNodeClick (data) {
|
|
handleNodeClick (data) {
|
|
|
- console.log(data)
|
|
|
|
|
const ids = []
|
|
const ids = []
|
|
|
this.getChildrenIds(data, ids)
|
|
this.getChildrenIds(data, ids)
|
|
|
if (data.id === '0' || data.disabled) return
|
|
if (data.id === '0' || data.disabled) return
|
|
@@ -275,7 +274,6 @@ export default {
|
|
|
loadPosTreeNode (node, resolve) {
|
|
loadPosTreeNode (node, resolve) {
|
|
|
let params = {}
|
|
let params = {}
|
|
|
const type = this.partyTypeIdValue !== '' ? this.partyTypeIdValue : '1'
|
|
const type = this.partyTypeIdValue !== '' ? this.partyTypeIdValue : '1'
|
|
|
- console.log(this.isUseScope)
|
|
|
|
|
if (this.isUseScope) {
|
|
if (this.isUseScope) {
|
|
|
// 选择器范围模式参数
|
|
// 选择器范围模式参数
|
|
|
params.type = type === '2' ? '1' : type
|
|
params.type = type === '2' ? '1' : type
|
|
@@ -303,7 +301,6 @@ export default {
|
|
|
Object.assign(params, this.moreSearchParams)
|
|
Object.assign(params, this.moreSearchParams)
|
|
|
}
|
|
}
|
|
|
if (this.$utils.isEmpty(node.data) || node.data.id === '0') {
|
|
if (this.$utils.isEmpty(node.data) || node.data.id === '0') {
|
|
|
- console.log('6',params)
|
|
|
|
|
getPositionTreeData(params).then(res => {
|
|
getPositionTreeData(params).then(res => {
|
|
|
this.loadingTree = false
|
|
this.loadingTree = false
|
|
|
const arr = JSON.parse(JSON.stringify(res.data))
|
|
const arr = JSON.parse(JSON.stringify(res.data))
|
|
@@ -343,7 +340,6 @@ export default {
|
|
|
resolve([])
|
|
resolve([])
|
|
|
})
|
|
})
|
|
|
} else if (node.data.id !== '0') {
|
|
} else if (node.data.id !== '0') {
|
|
|
- console.log('5',params)
|
|
|
|
|
if (type === '2') {
|
|
if (type === '2') {
|
|
|
params = {}
|
|
params = {}
|
|
|
params.type = '1'
|
|
params.type = '1'
|
|
@@ -355,7 +351,6 @@ export default {
|
|
|
|
|
|
|
|
let arrList = []
|
|
let arrList = []
|
|
|
const second = this.$store.getters.level.second || ''
|
|
const second = this.$store.getters.level.second || ''
|
|
|
- console.log(second)
|
|
|
|
|
if ((type === '1' || type === '2') && this.filtrate && second) {
|
|
if ((type === '1' || type === '2') && this.filtrate && second) {
|
|
|
const showBoo = arr.some((item) => item.id === second)
|
|
const showBoo = arr.some((item) => item.id === second)
|
|
|
if (showBoo) {
|
|
if (showBoo) {
|