|
@@ -215,7 +215,7 @@
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-link class="mg-r-20" type="primary" @click="copyAccPas(scope.row)">复制</el-link>
|
|
|
- <el-link class="mg-r-20" type="primary">重置密码</el-link>
|
|
|
+ <el-link class="mg-r-20" type="primary" @click="resetPassword(scope.row)">重置密码</el-link>
|
|
|
<el-link type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-link>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -253,7 +253,7 @@
|
|
|
import {getProjectDeatil} from "@/api/manager/projectinfo";
|
|
|
import {submitContractInfo,getContractInfo,delFileFromUrl,
|
|
|
findJobByRoleId,findAllUserByCondition,findUserByName,
|
|
|
- saveUserInfoByProject,removeUsersByIds} from "@/api/manager/contractinfo";
|
|
|
+ saveUserInfoByProject,removeUsersByIds,resetPasswordByUserId} from "@/api/manager/contractinfo";
|
|
|
import {getRoleTree} from "@/api/system/role";
|
|
|
import {getDictionary} from "@/api/system/dict";
|
|
|
import {remove as removeFile} from "@/api/resource/attach";
|
|
@@ -591,6 +591,22 @@
|
|
|
|
|
|
},
|
|
|
|
|
|
+ resetPassword(row){
|
|
|
+ this.$confirm('是否将用户【'+row.name+'】密码重置为123456', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ resetPasswordByUserId(row.uId).then(()=>{
|
|
|
+ row.password = '123456';
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "重置成功!"
|
|
|
+ });
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
getContractTypeList(){
|
|
|
if(this.contractTypeList.length >1){
|
|
|
return;
|