穿梭框修改成点击列触发
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
border
|
||||
v-loading="dataListLoading"
|
||||
@selection-change="selectionChangeHandle"
|
||||
@row-click="transferRole"
|
||||
highlight-current-row
|
||||
style="width: 100%;"
|
||||
height="350"
|
||||
@@ -89,11 +90,11 @@
|
||||
fixed="right"
|
||||
header-align="center"
|
||||
align="center"
|
||||
width="240"
|
||||
width="200"
|
||||
label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="small" @click="queryHandle(scope.row.oper_id)">查看</el-button>
|
||||
<el-button type="text" size="small" @click="transferRole(scope.row.oper_id,row)" style="">角色</el-button>
|
||||
<!--<el-button type="text" size="small" @click="transferRole(scope.row.oper_id,row)" style="">角色</el-button>-->
|
||||
<el-button v-if="isAuth('sys:user:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.oper_id,scope.row.oper_no)">修改</el-button>
|
||||
<el-button v-if="isAuth('sys:user:update')" type="text" size="small" @click="updatePasswordHandle(scope.row)">改密</el-button>
|
||||
<el-button v-if="isAuth('sys:user:delete')" type="text" size="small" @click="deleteHandle(scope.row)">删除</el-button>
|
||||
@@ -230,13 +231,16 @@
|
||||
})
|
||||
},
|
||||
// 查询用户已有角色
|
||||
transferRole: function (id,row) {
|
||||
this.roleid=id;
|
||||
transferRole: function (row,event,column) {
|
||||
// if(event.target.nodeName!="INPUT"){
|
||||
// alert(row.oper_id);
|
||||
// }
|
||||
this.roleid=row.oper_id;
|
||||
this.dataListLoading = true
|
||||
let const_this=this
|
||||
var operNm = this.dataForm.operNm
|
||||
this.$http({
|
||||
url: this.$http.adornUrl(`/buipubbpc1/buiOperQueryRole.do?oper_id=${id}`),
|
||||
url: this.$http.adornUrl(`/buipubbpc1/buiOperQueryRole.do?oper_id=${row.oper_id}`),
|
||||
method: 'post',
|
||||
params: this.$http.adornParams({
|
||||
'oper_nm': operNm
|
||||
|
||||
Reference in New Issue
Block a user