|
@@ -3,7 +3,7 @@
|
|
|
<div class="page_item end_item">
|
|
<div class="page_item end_item">
|
|
|
<div class="page_search">
|
|
<div class="page_search">
|
|
|
<div class="search_content">
|
|
<div class="search_content">
|
|
|
- <div class="content_left">
|
|
|
|
|
|
|
+ <div class="content_left" style="line-height: normal;">
|
|
|
<div class="grade_title">用户查询</div>
|
|
<div class="grade_title">用户查询</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -58,14 +58,14 @@ const pageSize = ref(20)
|
|
|
// 用户表格数据
|
|
// 用户表格数据
|
|
|
const userTableData = ref([])
|
|
const userTableData = ref([])
|
|
|
// 查询参数
|
|
// 查询参数
|
|
|
-const searchParams = ref({})
|
|
|
|
|
|
|
+const searchParams = ref<{ userAccount?: string; phone?: string }>({})
|
|
|
// 获取用户信息
|
|
// 获取用户信息
|
|
|
const GetUserInfo = async ()=>{
|
|
const GetUserInfo = async ()=>{
|
|
|
let params = {
|
|
let params = {
|
|
|
pageNum:currentPage.value,
|
|
pageNum:currentPage.value,
|
|
|
pageSize:pageSize.value,
|
|
pageSize:pageSize.value,
|
|
|
- userAccount:searchParams.value.userAccount,
|
|
|
|
|
- phone:searchParams.value.phone,
|
|
|
|
|
|
|
+ userAccount:searchParams.value.userAccount || '',
|
|
|
|
|
+ phone:searchParams.value.phone || '',
|
|
|
}
|
|
}
|
|
|
let res = await getUserInfoApi(params)
|
|
let res = await getUserInfoApi(params)
|
|
|
|
|
|
|
@@ -114,17 +114,17 @@ const userStatusMsg = ref([
|
|
|
{
|
|
{
|
|
|
statusFlag:0,
|
|
statusFlag:0,
|
|
|
title:'禁用',
|
|
title:'禁用',
|
|
|
- themeClass: 'abnormal_icon'
|
|
|
|
|
|
|
+ themeClass: 'abnormal_icon' as const
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
statusFlag:1,
|
|
statusFlag:1,
|
|
|
title:'启用',
|
|
title:'启用',
|
|
|
- themeClass: 'normal_icon'
|
|
|
|
|
|
|
+ themeClass: 'normal_icon' as const
|
|
|
},
|
|
},
|
|
|
])
|
|
])
|
|
|
onMounted(async ()=>{
|
|
onMounted(async ()=>{
|
|
|
// 初次加载不查询
|
|
// 初次加载不查询
|
|
|
- // await GetUserInfo()
|
|
|
|
|
|
|
+ await GetUserInfo()
|
|
|
})
|
|
})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|