|
@@ -139,8 +139,8 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName == '超级管理员' && user.id == scope.row.id" @click="transferRole(scope.row)">转让</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName == '超级管理员' && user.id == scope.row.id" @click="transferRole(scope.row)">转让</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != '超级管理员'" @click="resetPwd(scope.row)">重置</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != '超级管理员'" @click="resetPwd(scope.row)">重置</el-button>
|
|
- <el-button size="mini" type="primary" v-if="scope.row.roleName != '超级管理员'" @click="openInsertDialog(scope.$index)">编辑</el-button>
|
|
|
|
- <el-button size="mini" type="primary" v-if="scope.row.roleName == '超级管理员'" @click="openInsertDialog1(scope.$index)">编辑</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="primary" v-if="scope.row.roleName != '超级管理员'" @click="openInsertDialog(scope.row)">编辑</el-button>
|
|
|
|
+ <el-button size="mini" type="primary" v-if="scope.row.roleName == '超级管理员'" @click="openInsertDialog1(scope.row)">编辑</el-button>
|
|
<el-button size="mini" type="danger" v-if="scope.row.roleName != '超级管理员'" @click="deleteUser(scope.row)">删除</el-button>
|
|
<el-button size="mini" type="danger" v-if="scope.row.roleName != '超级管理员'" @click="deleteUser(scope.row)">删除</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != '超级管理员' && scope.row.isActive==1" @click="showDeactiveDialog(scope.row)">停用</el-button>
|
|
<el-button size="mini" type="default" v-if="scope.row.roleName != '超级管理员' && scope.row.isActive==1" @click="showDeactiveDialog(scope.row)">停用</el-button>
|
|
<el-button size="mini" type="success" v-if="scope.row.roleName != '超级管理员' && scope.row.isActive==0" @click="setActive(scope.row, 1)">启用</el-button>
|
|
<el-button size="mini" type="success" v-if="scope.row.roleName != '超级管理员' && scope.row.isActive==0" @click="setActive(scope.row, 1)">启用</el-button>
|
|
@@ -1125,9 +1125,9 @@
|
|
},
|
|
},
|
|
|
|
|
|
// 新增、编辑人员
|
|
// 新增、编辑人员
|
|
- openInsertDialog(i) {
|
|
|
|
- if (i != null) {
|
|
|
|
- var list = JSON.parse(JSON.stringify(this.list[i])) , arr = [] , array = [];
|
|
|
|
|
|
+ openInsertDialog(row) {
|
|
|
|
+ if (row != null) {
|
|
|
|
+ var list = JSON.parse(JSON.stringify(row)) , arr = [] , array = [];
|
|
if(list.departmentCascade!='0' && list.departmentCascade!=null) {
|
|
if(list.departmentCascade!='0' && list.departmentCascade!=null) {
|
|
if(list.departmentCascade.indexOf(",")>-1) {
|
|
if(list.departmentCascade.indexOf(",")>-1) {
|
|
arr = list.departmentCascade.split(",");
|
|
arr = list.departmentCascade.split(",");
|
|
@@ -1365,8 +1365,8 @@
|
|
},
|
|
},
|
|
|
|
|
|
// 修改老板的成本
|
|
// 修改老板的成本
|
|
- openInsertDialog1(i) {
|
|
|
|
- var list1 = JSON.parse(JSON.stringify(this.list[i])) , arr1 = [] , array1 = [];
|
|
|
|
|
|
+ openInsertDialog1(row) {
|
|
|
|
+ var list1 = JSON.parse(JSON.stringify(row)) , arr1 = [] , array1 = [];
|
|
if(list1.departmentCascade!='0' && list1.departmentCascade!=null) {
|
|
if(list1.departmentCascade!='0' && list1.departmentCascade!=null) {
|
|
if(list1.departmentCascade.indexOf(",")>-1) {
|
|
if(list1.departmentCascade.indexOf(",")>-1) {
|
|
arr1 = list1.departmentCascade.split(",");
|
|
arr1 = list1.departmentCascade.split(",");
|