This commit is contained in:
xiongchengqiang 2020-12-17 19:21:10 +08:00
parent 00df720dce
commit ee286d414b
2 changed files with 18 additions and 2 deletions

View File

@ -3,10 +3,10 @@
<div>
<div style="display:inline-block;" v-for="(i,index) in authList.filter(i=>i.info && !i.isManage)" :key="index">
<el-button-group v-if="i.ground">
<el-button style="margin:0 4px;"
<el-button
:disabled='formList[i.permis]===1'
@click="k.click"
v-for="(k,indexK) in i.list.filter(n=>info?info[i.permis]:formList.auth[i.permis])"
v-for="(k,indexK) in i.list.filter(n=>info?info[n.permis]:formList.auth[n.permis])"
:key="indexK"
size="mini"
:type="k.type" >{{k.name}}</el-button>

View File

@ -228,6 +228,22 @@ export default {
this.$forceUpdate()
},
handleDelete (item) {
// if (item.id) {
// item.isDelete = 1
// } else {
// this.list = this.list.filter(i => i !== item)
// }
// if (this.handleGetList().length === 1) {
// this.itemInfo = {}
// }
// if (!this.list.some(i => i.isCick && !i.isDelete)) {
// if (this.list[0]) {
// this.list[0].isCick = true
// this.itemInfo = this.list[0]
// }
// }
// console.log('this.list: ', this.list)
// return
this.$confirm('此操作将永久删除, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',