|
|
|
@ -38,22 +38,33 @@ |
|
|
|
</el-col> |
|
|
|
</el-form> |
|
|
|
</el-row> |
|
|
|
<el-table |
|
|
|
:data="tableData" |
|
|
|
style="width: 100%; margin-top: 20px" |
|
|
|
border="" |
|
|
|
> |
|
|
|
<el-table-column type="index" label="#"></el-table-column> |
|
|
|
<el-table-column prop="userName" label="用户名" width=""> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="email" label="邮箱" width=""> </el-table-column> |
|
|
|
<!-- <el-table-column prop="email" label="所属角色" width=""> </el-table-column> --> |
|
|
|
<el-table-column prop="phoneNumber" label="手机号" width=""> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="surname" label="姓名" width=""> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column prop="name" label="名称" width=""> </el-table-column> --> |
|
|
|
<!-- <el-table-column prop="lastModificationTime" label="开始时间"> |
|
|
|
<div style="display: flex"> |
|
|
|
<div style="width: 10%;margin-top:30px"> |
|
|
|
<el-tree |
|
|
|
:data="treedata" |
|
|
|
:props="defaultProps" |
|
|
|
@node-click="handleNodeClick" |
|
|
|
></el-tree> |
|
|
|
</div> |
|
|
|
<div style="width: 90%"> |
|
|
|
<el-table |
|
|
|
height="500" |
|
|
|
:data="tableData" |
|
|
|
style="width: 100%; margin-top: 20px" |
|
|
|
border="" |
|
|
|
> |
|
|
|
<el-table-column type="index" label="#"></el-table-column> |
|
|
|
<el-table-column prop="userName" label="用户名" width=""> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="email" label="邮箱" width=""> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column prop="email" label="所属角色" width=""> </el-table-column> --> |
|
|
|
<el-table-column prop="phoneNumber" label="手机号" width=""> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="surname" label="姓名" width=""> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column prop="name" label="名称" width=""> </el-table-column> --> |
|
|
|
<!-- <el-table-column prop="lastModificationTime" label="开始时间"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.creationTime | dateFormat }} |
|
|
|
</template> |
|
|
|
@ -63,26 +74,28 @@ |
|
|
|
{{ scope.row.lastModificationTime | dateFormat }} |
|
|
|
</template> |
|
|
|
</el-table-column> --> |
|
|
|
<el-table-column label="操作" width="430"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" @click="deleates(scope.row)" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="editmony(scope.row)" |
|
|
|
>编辑</el-button |
|
|
|
> |
|
|
|
<!-- <el-button type="primary" @click="binding(scope.row)" |
|
|
|
<el-table-column label="操作" width="430"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="primary" @click="deleates(scope.row)" |
|
|
|
>删除</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="editmony(scope.row)" |
|
|
|
>编辑</el-button |
|
|
|
> |
|
|
|
<!-- <el-button type="primary" @click="binding(scope.row)" |
|
|
|
>绑定组织</el-button |
|
|
|
> --> |
|
|
|
<el-button type="primary" @click="bandinuser(scope.row)" |
|
|
|
>绑定角色</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="editpassword(scope.row)" |
|
|
|
>修改密码</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-button type="primary" @click="bandinuser(scope.row)" |
|
|
|
>绑定角色</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="editpassword(scope.row)" |
|
|
|
>修改密码</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- <el-pagination |
|
|
|
@size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
@ -368,7 +381,9 @@ |
|
|
|
</el-form> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="addlsit" class="bulletcommit">确 定</el-button> |
|
|
|
<el-button type="primary" @click="addlsit" class="bulletcommit" |
|
|
|
>确 定</el-button |
|
|
|
> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<!-- 绑定用户组织弹框 --> |
|
|
|
@ -433,7 +448,9 @@ |
|
|
|
</el-select> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="useerdialogVisible = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="Identifyusers" class="bulletcommit">确 定</el-button> |
|
|
|
<el-button type="primary" @click="Identifyusers" class="bulletcommit" |
|
|
|
>确 定</el-button |
|
|
|
> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
<!-- 修改密码弹框 --> |
|
|
|
@ -457,7 +474,9 @@ |
|
|
|
<el-button @click="editpassworddialogVisible = false" |
|
|
|
>取 消</el-button |
|
|
|
> |
|
|
|
<el-button type="primary" @click="Changepassword" class="bulletcommit">确 定</el-button> |
|
|
|
<el-button type="primary" @click="Changepassword" class="bulletcommit" |
|
|
|
>确 定</el-button |
|
|
|
> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-card> |
|
|
|
@ -500,6 +519,12 @@ let validatePassword = /^[a-zA-Z0-9@\$\^\.\*\\?]\{6,15}$/; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
treedata: [], |
|
|
|
defaultProps: { |
|
|
|
children: "treeChildren", |
|
|
|
label: "displayName", |
|
|
|
}, |
|
|
|
orgIds:[], |
|
|
|
orgId: [], |
|
|
|
confarmPassWord: "", //确认密码 |
|
|
|
usersName: "", //用户名 |
|
|
|
@ -622,10 +647,21 @@ export default { |
|
|
|
this.password = this.changepassword; |
|
|
|
console.log(this.password); |
|
|
|
this.getlist(); |
|
|
|
this.gettreedata(); |
|
|
|
this.idkes = localStorage.getItem("dataidkes"); |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
gettreedata() { |
|
|
|
getapi("/api/app/organization-units/by-code-all").then((res) => { |
|
|
|
this.treedata = res.data; |
|
|
|
console.log(res); |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleNodeClick(data) { |
|
|
|
this.department=data.displayName |
|
|
|
console.log(data); |
|
|
|
}, |
|
|
|
iscrentddepartment() { |
|
|
|
this.department = this.$refs.department.getCheckedKeys(true); |
|
|
|
console.log(this.department, "www"); |
|
|
|
|