|
@@ -36,7 +36,7 @@
|
|
v-model="checkedKeys"
|
|
v-model="checkedKeys"
|
|
:treeData="treeData"
|
|
:treeData="treeData"
|
|
>
|
|
>
|
|
- <a-icon v-if="authType == 0" slot="switcherIcon" type="file" />
|
|
|
|
|
|
+ <!-- <a-icon v-if="authType == 0" slot="switcherIcon" type="file" /> -->
|
|
</a-tree>
|
|
</a-tree>
|
|
</div>
|
|
</div>
|
|
<a-form-model-item :label-col="{span: 0}" :wrapper-col="{span: 24}" style="text-align: center;margin: 18px 0 0;">
|
|
<a-form-model-item :label-col="{span: 0}" :wrapper-col="{span: 24}" style="text-align: center;margin: 18px 0 0;">
|
|
@@ -104,7 +104,7 @@ export default {
|
|
onExpand (expandedKeys) {
|
|
onExpand (expandedKeys) {
|
|
console.log(expandedKeys)
|
|
console.log(expandedKeys)
|
|
this.expandedKeys = expandedKeys
|
|
this.expandedKeys = expandedKeys
|
|
- // this.autoExpandParent = false
|
|
|
|
|
|
+ this.autoExpandParent = false
|
|
},
|
|
},
|
|
// 点击复选框
|
|
// 点击复选框
|
|
onCheck (checkedKeys, info) {
|
|
onCheck (checkedKeys, info) {
|
|
@@ -325,19 +325,19 @@ export default {
|
|
|
|
|
|
this.treeData = treeData
|
|
this.treeData = treeData
|
|
|
|
|
|
- if (this.authType == 0) {
|
|
|
|
- let leafNodes = []
|
|
|
|
- setTimeout(() => {
|
|
|
|
- if (leafNodes.length == 0) {
|
|
|
|
- leafNodes = document.querySelectorAll('ul > li.leafNode:first-child')
|
|
|
|
- for (let i = 0; i < leafNodes.length; i++) {
|
|
|
|
- const cn = leafNodes[i].parentNode.className
|
|
|
|
- leafNodes[i].parentNode.className += cn.indexOf('leafParent') < 0 ? ' leafParent' : ''
|
|
|
|
- leafNodes[i].parentNode.parentNode.style.padding = '6px 0'
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }, 100)
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.authType == 0) {
|
|
|
|
+ // let leafNodes = []
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // if (leafNodes.length == 0) {
|
|
|
|
+ // leafNodes = document.querySelectorAll('ul > li.leafNode:first-child')
|
|
|
|
+ // for (let i = 0; i < leafNodes.length; i++) {
|
|
|
|
+ // const cn = leafNodes[i].parentNode.className
|
|
|
|
+ // leafNodes[i].parentNode.className += cn.indexOf('leafParent') < 0 ? ' leafParent' : ''
|
|
|
|
+ // leafNodes[i].parentNode.parentNode.style.padding = '6px 0'
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }, 100)
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|