Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e9120f06
authored
Aug 23, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员: 会员等级取消分页功能
parent
51738f8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
16 deletions
+3
-16
src/api/member/level/index.ts
+2
-2
src/views/member/level/index.vue
+1
-14
No files found.
src/api/member/level/index.ts
View file @
e9120f06
...
...
@@ -12,8 +12,8 @@ export interface LevelVO {
}
// 查询会员等级列表
export
const
getLevel
Page
=
async
(
params
)
=>
{
return
await
request
.
get
({
url
:
`/member/level/
page
`
,
params
})
export
const
getLevel
List
=
async
(
params
)
=>
{
return
await
request
.
get
({
url
:
`/member/level/
list
`
,
params
})
}
// 查询会员等级详情
...
...
src/views/member/level/index.vue
View file @
e9120f06
...
...
@@ -96,13 +96,6 @@
</
template
>
</el-table-column>
</el-table>
<!-- 分页 -->
<Pagination
:total=
"total"
v-model:page=
"queryParams.pageNo"
v-model:limit=
"queryParams.pageSize"
@
pagination=
"getList"
/>
</ContentWrap>
<!-- 表单弹窗:添加/修改 -->
...
...
@@ -122,11 +115,8 @@ const message = useMessage() // 消息弹窗
const
{
t
}
=
useI18n
()
// 国际化
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
const
list
=
ref
([])
// 列表的数据
const
queryParams
=
reactive
({
pageNo
:
1
,
pageSize
:
10
,
name
:
null
,
status
:
null
})
...
...
@@ -136,9 +126,7 @@ const queryFormRef = ref() // 搜索的表单
const
getList
=
async
()
=>
{
loading
.
value
=
true
try
{
const
data
=
await
LevelApi
.
getLevelPage
(
queryParams
)
list
.
value
=
data
.
list
total
.
value
=
data
.
total
list
.
value
=
await
LevelApi
.
getLevelList
(
queryParams
)
}
finally
{
loading
.
value
=
false
}
...
...
@@ -146,7 +134,6 @@ const getList = async () => {
/** 搜索按钮操作 */
const
handleQuery
=
()
=>
{
queryParams
.
pageNo
=
1
getList
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment