|
|
@@ -276,12 +276,13 @@ import OrgTree from '@/components/orgTree'
|
|
|
import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus } from "@/api/system/user";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import {deptTreeSelect} from "@/api/system/public";
|
|
|
-
|
|
|
+import tableList from "@/mixins/tableList";
|
|
|
|
|
|
export default {
|
|
|
name: "User",
|
|
|
dicts: ['sys_normal_disable', 'sys_user_sex'],
|
|
|
components: { OrgTree },
|
|
|
+ mixins:[tableList],
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
|
@@ -385,12 +386,12 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getDeptTree();
|
|
|
- this.getConfigKey("sys.user.initPassword").then(response => {
|
|
|
- this.initPassword = response.msg;
|
|
|
- });
|
|
|
+ // this.getConfigKey("sys.user.initPassword").then(response => {
|
|
|
+ // this.initPassword = response.msg;
|
|
|
+ // });
|
|
|
},
|
|
|
mounted(){
|
|
|
- console.log(this.queryParams,'aaaaaa')
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
/** 查询机构树数据 */
|
|
|
@@ -421,7 +422,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
/** 查询列表 */
|
|
|
- getList(id) {
|
|
|
+ getList() {
|
|
|
this.loading = true;
|
|
|
listUser(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
|
|
|
//兼容框架userId字段
|
|
|
@@ -482,19 +483,6 @@ export default {
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
|
- /** 搜索按钮操作 */
|
|
|
- handleQuery() {
|
|
|
- this.queryParams.pageNum = 1;
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- /** 重置按钮操作 */
|
|
|
- resetQuery() {
|
|
|
- this.dateRange = [];
|
|
|
- this.resetForm("queryForm");
|
|
|
- this.queryParams.orgId = undefined;
|
|
|
- this.$refs.tree.setCurrentKey(null);
|
|
|
- this.handleQuery();
|
|
|
- },
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.userId);
|