|
@@ -89,7 +89,20 @@
|
|
<el-table-column label="合同段名称" prop="contract_name" align="center"></el-table-column>
|
|
<el-table-column label="合同段名称" prop="contract_name" align="center"></el-table-column>
|
|
<el-table-column label="角色类型" prop="roleName" align="center" ></el-table-column>
|
|
<el-table-column label="角色类型" prop="roleName" align="center" ></el-table-column>
|
|
<el-table-column label="用户姓名" width="120" prop="user_name" align="center"></el-table-column>
|
|
<el-table-column label="用户姓名" width="120" prop="user_name" align="center"></el-table-column>
|
|
- <el-table-column label="登录账户111" width="100" prop="account" align="center"></el-table-column>
|
|
|
|
|
|
+ <el-table-column label="登录账户"
|
|
|
|
+ width="100"
|
|
|
|
+ prop="account"
|
|
|
|
+ align="center"
|
|
|
|
+ :formatter="(row) => {
|
|
|
|
+ if (!row.account) return '--'
|
|
|
|
+ const length = row.account.length
|
|
|
|
+ return length > 1
|
|
|
|
+ ? `${row.account[0]}${'*'.repeat(3)}${row.account[length-1]}`
|
|
|
|
+ : row.account
|
|
|
|
+ }"
|
|
|
|
+
|
|
|
|
+ >
|
|
|
|
+ </el-table-column>
|
|
<!-- <el-table-column label="登录密码" width="100" prop="pwd" header-align="center"></el-table-column> -->
|
|
<!-- <el-table-column label="登录密码" width="100" prop="pwd" header-align="center"></el-table-column> -->
|
|
<el-table-column label="电子签名" width="130" prop="signature" align="center" >
|
|
<el-table-column label="电子签名" width="130" prop="signature" align="center" >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -105,8 +118,8 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span class="scope_span scope_span1" @click="copy(scope.row)">复制账号密码</span>
|
|
<span class="scope_span scope_span1" @click="copy(scope.row)">复制账号密码</span>
|
|
<span class="scope_span scope_span1" @click="edit(scope.row.id,scope.row.rid,scope.row.contractId,scope.row.projectId)">编辑人员信息</span>
|
|
<span class="scope_span scope_span1" @click="edit(scope.row.id,scope.row.rid,scope.row.contractId,scope.row.projectId)">编辑人员信息</span>
|
|
- <span class="scope_span scope_span1" @click="userReset(scope.row.id)">重置密码</span>
|
|
|
|
- <span class="scope_del" @click="del(scope.row)">删除</span>
|
|
|
|
|
|
+ <span class="scope_span scope_span1" @click="userReset(scope.row.id)" style="cursor: not-allowed">重置密码</span>
|
|
|
|
+ <span class="scope_del" @click="del(scope.row)" style="cursor: not-allowed">删除</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -205,24 +218,24 @@
|
|
},"json");
|
|
},"json");
|
|
},
|
|
},
|
|
del(row){
|
|
del(row){
|
|
- if (confirm("确定要删除吗?")){
|
|
|
|
- $.post("/user/deleteRole", {userId:row.id,id:row.rid,ruId : row.urId, projectId : row.projectId, contractId : row.contractId}, json=> {
|
|
|
|
- if(json.result==1){
|
|
|
|
- Vue.prototype.$message({
|
|
|
|
- message: "操作成功",
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
- var index = this.list.findIndex(d => d.urId === row.urId);
|
|
|
|
- this.list.splice(index, 1);
|
|
|
|
- this.updateProjectContract();
|
|
|
|
- }else{
|
|
|
|
- Vue.prototype.$message({
|
|
|
|
- message:json.msg,
|
|
|
|
- type: 'error'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- },"json");
|
|
|
|
- }
|
|
|
|
|
|
+ // if (confirm("确定要删除吗?")){
|
|
|
|
+ // $.post("/user/deleteRole", {userId:row.id,id:row.rid,ruId : row.urId, projectId : row.projectId, contractId : row.contractId}, json=> {
|
|
|
|
+ // if(json.result==1){
|
|
|
|
+ // Vue.prototype.$message({
|
|
|
|
+ // message: "操作成功",
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // });
|
|
|
|
+ // var index = this.list.findIndex(d => d.urId === row.urId);
|
|
|
|
+ // this.list.splice(index, 1);
|
|
|
|
+ // this.updateProjectContract();
|
|
|
|
+ // }else{
|
|
|
|
+ // Vue.prototype.$message({
|
|
|
|
+ // message:json.msg,
|
|
|
|
+ // type: 'error'
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // },"json");
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
//加载页面数据
|
|
//加载页面数据
|
|
loadData(){
|
|
loadData(){
|
|
@@ -253,23 +266,23 @@
|
|
window.location.href = "/template/user/edit.html?id=" + id + "&type="+this.type+"&menuIndex="+this.menuIndex;
|
|
window.location.href = "/template/user/edit.html?id=" + id + "&type="+this.type+"&menuIndex="+this.menuIndex;
|
|
},
|
|
},
|
|
userReset(id){
|
|
userReset(id){
|
|
- if (confirm("确定重置密码吗?")){
|
|
|
|
- $.post("/user/resetPwd", {
|
|
|
|
- userId: id
|
|
|
|
- }, json=> {
|
|
|
|
- if(json.result==1){
|
|
|
|
- Vue.prototype.$message({
|
|
|
|
- message: "重置成功",
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
- }else{
|
|
|
|
- Vue.prototype.$message({
|
|
|
|
- message: json.msg,
|
|
|
|
- type: 'error'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- },"json");
|
|
|
|
- }
|
|
|
|
|
|
+ // if (confirm("确定重置密码吗?")){
|
|
|
|
+ // $.post("/user/resetPwd", {
|
|
|
|
+ // userId: id
|
|
|
|
+ // }, json=> {
|
|
|
|
+ // if(json.result==1){
|
|
|
|
+ // Vue.prototype.$message({
|
|
|
|
+ // message: "重置成功",
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // });
|
|
|
|
+ // }else{
|
|
|
|
+ // Vue.prototype.$message({
|
|
|
|
+ // message: json.msg,
|
|
|
|
+ // type: 'error'
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // },"json");
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
//添加页面
|
|
//添加页面
|
|
add: function(){
|
|
add: function(){
|