|
|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-row :gutter="20">
|
|
|
- <!--部门数据-->
|
|
|
+ <!--机构数据-->
|
|
|
<el-col :span="4" :xs="24">
|
|
|
<div class="head-container">
|
|
|
<el-input
|
|
|
v-model="deptName"
|
|
|
- placeholder="请输入部门名称"
|
|
|
+ placeholder="请输入机构名称"
|
|
|
clearable
|
|
|
size="small"
|
|
|
prefix-icon="el-icon-search"
|
|
|
@@ -228,7 +228,7 @@
|
|
|
<!-- v-model="form.orgId"-->
|
|
|
<!-- :options="deptOptions"-->
|
|
|
<!-- :props="{checkStrictly: true, label:'name'}"-->
|
|
|
-<!-- placeholder="请选择归属部门">-->
|
|
|
+<!-- placeholder="请选择归属机构">-->
|
|
|
<!-- </el-cascader>-->
|
|
|
<treeselect
|
|
|
v-model="form.orgId"
|
|
|
@@ -236,7 +236,7 @@
|
|
|
:show-count="true"
|
|
|
:normalizer="tenantIdnormalizer"
|
|
|
:props="{checkStrictly: true, label:'name'}"
|
|
|
- placeholder="请选择归属部门" />
|
|
|
+ placeholder="请选择归属机构" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -364,7 +364,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, deptTreeSelect } from "@/api/system/user";
|
|
|
+import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus } from "@/api/system/user";
|
|
|
+import { deptTreeSelect } from "@/api/system/public";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
@@ -391,11 +392,11 @@ export default {
|
|
|
userList: null,
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
- // 部门树选项
|
|
|
+ // 机构树选项
|
|
|
deptOptions: undefined,
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
- // 部门名称
|
|
|
+ // 机构名称
|
|
|
deptName: undefined,
|
|
|
// 默认密码
|
|
|
initPassword: undefined,
|
|
|
@@ -443,7 +444,7 @@ export default {
|
|
|
{ key: 0, label: `用户编号`, visible: true },
|
|
|
{ key: 1, label: `用户名称`, visible: true },
|
|
|
{ key: 2, label: `用户昵称`, visible: true },
|
|
|
- { key: 3, label: `部门`, visible: true },
|
|
|
+ { key: 3, label: `机构`, visible: true },
|
|
|
{ key: 4, label: `手机号码`, visible: true },
|
|
|
{ key: 5, label: `状态`, visible: true },
|
|
|
{ key: 6, label: `创建时间`, visible: true }
|
|
|
@@ -481,7 +482,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
- // 根据名称筛选部门树
|
|
|
+ // 根据名称筛选机构树
|
|
|
deptName(val) {
|
|
|
this.$refs.tree.filter(val);
|
|
|
}
|
|
|
@@ -522,7 +523,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
})
|
|
|
},
|
|
|
- /** 查询部门下拉树结构 */
|
|
|
+ /** 查询机构下拉树结构 */
|
|
|
getDeptTree() {
|
|
|
deptTreeSelect().then(response => {
|
|
|
this.deptOptions = response.data;
|