Commit 11014c33 authored by 水落(YangLei)'s avatar 水落(YangLei)

feat: 用户中心bug修复,表格分页增加跳转

parent 0053138f
...@@ -140,6 +140,7 @@ export default { ...@@ -140,6 +140,7 @@ export default {
current: this.initQuery.pageNum, current: this.initQuery.pageNum,
pageSize: this.initQuery.pageSize, pageSize: this.initQuery.pageSize,
total: this.total, total: this.total,
showQuickJumper: true,
}; };
}, },
isRowSelection() { isRowSelection() {
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
valueFormat="YYYY-MM-DD HH:mm:ss" valueFormat="YYYY-MM-DD HH:mm:ss"
/> />
</my-form-item> </my-form-item>
<my-form-item label="登录用户"> <my-form-item label="操作用户Id">
<a-input v-model="query.userId" /> <a-input v-model="query.operatorId" />
</my-form-item> </my-form-item>
<my-form-item label="业务模块"> <my-form-item label="业务模块">
<a-select v-model="query.loginType" allowClear> <a-select v-model="query.loginType" allowClear>
...@@ -61,9 +61,6 @@ export default { ...@@ -61,9 +61,6 @@ export default {
}; };
}, },
methods: { methods: {
refreshTable() {
this.$refs.table.getData();
},
showDrawer(type, noFooter) { showDrawer(type, noFooter) {
this.$refs['table'].show({ type, noFooter }); this.$refs['table'].show({ type, noFooter });
}, },
......
<template>
<my-table url="table" addBtn="addBtn">
<template #search="{query}">
<a-form-model-item label="所属组织">
<a-input v-model="query.name" />
</a-form-model-item>
<a-form-model-item label="所属组织">
<a-input v-model="query.name" />
</a-form-model-item>
<a-form-model-item label="所属组织">
<a-input v-model="query.name" />
</a-form-model-item>
<a-form-model-item label="所属组织">
<a-input v-model="query.name" />
</a-form-model-item>
<a-form-model-item label="所属组织">
<a-input v-model="query.name" />
</a-form-model-item>
<a-form-model-item label="所属组织">
<a-input v-model="query.name" />
</a-form-model-item>
</template>
<template #add>
<a-input v-model="add.name" />
</template>
<a-table-column title="姓名" data-index="name" />
<a-table-column title="操作">
<template #default="row">
<span>
<a> {{ row }}</a>
<a-divider type="vertical" />
<a>Delete</a>
</span>
</template>
</a-table-column>
</my-table>
</template>
<script>
export default {
data: () => ({
add: {},
addBtn: {},
}),
};
</script>
import UserManagement from './UserManagement';
export default UserManagement;
\ No newline at end of file
...@@ -54,6 +54,16 @@ export default { ...@@ -54,6 +54,16 @@ export default {
return this.form.userAvatar ? `${this.$fileUrl}${this.form.userAvatar}` : null; return this.form.userAvatar ? `${this.$fileUrl}${this.form.userAvatar}` : null;
}, },
}, },
mounted() {
if (this.loginId) {
const userInfo = this.$store.state.userInfo;
this.form.userName = userInfo.userName;
this.form.fixedPhone = userInfo.fixedPhone;
this.form.mobilePhone = userInfo.mobilePhone;
this.form.userEmail = userInfo.userEmail;
this.form.userAvatar = userInfo.userAvatar;
}
},
watch: { watch: {
'$store.state.userInfo'(userInfo) { '$store.state.userInfo'(userInfo) {
this.form.userName = userInfo.userName; this.form.userName = userInfo.userName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment