优化
This commit is contained in:
parent
00df720dce
commit
ee286d414b
@ -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>
|
||||
|
||||
@ -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: '取消',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user