commit
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
closable>
|
closable>
|
||||||
{{tag.name}}
|
{{tag.name}}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
<el-tag v-show="delList.length > 0" type="danger" closable size="mini" @close="handleCloseAll()">全部删除</el-tag>
|
<el-tag v-show="delList.length > 0 && !checkBox" type="danger" closable size="mini" @close="handleCloseAll()">全部删除</el-tag>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="roleFormButton" class="demo-drawer-footer">
|
<div id="roleFormButton" class="demo-drawer-footer">
|
||||||
@@ -198,7 +198,6 @@
|
|||||||
}),
|
}),
|
||||||
checkChange2 (row, type, c) {
|
checkChange2 (row, type, c) {
|
||||||
if (this.checkBox) {
|
if (this.checkBox) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (type) {
|
if (type) {
|
||||||
this.nodeList2.push(row.id)
|
this.nodeList2.push(row.id)
|
||||||
@@ -219,7 +218,6 @@
|
|||||||
},
|
},
|
||||||
checkChange (row, type, c) {
|
checkChange (row, type, c) {
|
||||||
if (this.checkBox) {
|
if (this.checkBox) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (type) {
|
if (type) {
|
||||||
this.nodeList2.push(row.id)
|
this.nodeList2.push(row.id)
|
||||||
@@ -281,10 +279,13 @@
|
|||||||
this.$refs.tree.setCheckedKeys([])
|
this.$refs.tree.setCheckedKeys([])
|
||||||
this.$refs.tree.setCheckedKeys([data.id])
|
this.$refs.tree.setCheckedKeys([data.id])
|
||||||
this.roleList = [data]
|
this.roleList = [data]
|
||||||
|
this.delList = [data]
|
||||||
} else if (getlist.length === 0) {
|
} else if (getlist.length === 0) {
|
||||||
this.roleList = [{}]
|
this.roleList = [{}]
|
||||||
|
this.delList = []
|
||||||
} else if (getlist.length === 1) {
|
} else if (getlist.length === 1) {
|
||||||
this.roleList = [data]
|
this.roleList = [data]
|
||||||
|
this.delList = [data]
|
||||||
}
|
}
|
||||||
} else { // 多选
|
} else { // 多选
|
||||||
this.roleList = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes())
|
this.roleList = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes())
|
||||||
|
|||||||
Reference in New Issue
Block a user