提交 cb27b59b 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

快捷按钮功能修复

上级 102e69b3
......@@ -38,14 +38,18 @@ export default {
methods:{
all(){
this.dataAuthorityId = [...this.authoritys]
this.row.dataAuthorityId = this.dataAuthorityId
},
self(){
this.dataAuthorityId = this.authoritys.filter(item=>item.ID===this.row.ID)
this.row.dataAuthorityId = this.dataAuthorityId
},
selfAndChildren(){
const arrBox = []
this.getChildrenId(this.row,arrBox)
this.dataAuthorityId = this.authoritys.filter(item=>arrBox.indexOf(item.ID)>-1)
this.row.dataAuthorityId = this.dataAuthorityId
},
getChildrenId(row,arrBox){
arrBox.push(row.ID)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册