21
This commit is contained in:
parent
5cec8deca1
commit
145905395f
|
|
@ -21,13 +21,15 @@ export interface PagedRequest {
|
|||
*/
|
||||
export interface PagedResult<T> {
|
||||
/** 数据列表 */
|
||||
items: T[]
|
||||
list: T[]
|
||||
/** 总记录数 */
|
||||
total: number
|
||||
/** 当前页码 */
|
||||
pageIndex: number
|
||||
page: number
|
||||
/** 每页数量 */
|
||||
pageSize: number
|
||||
/** 总页数 */
|
||||
totalPages: number
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ const fetchData = async () => {
|
|||
try {
|
||||
const res = await getCommissionList(queryParams)
|
||||
if (res.code === 0) {
|
||||
tableData.value = res.data.items
|
||||
tableData.value = res.data.list
|
||||
total.value = res.data.total
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@ const fetchData = async () => {
|
|||
try {
|
||||
const res = await getInviteCodeList(queryParams)
|
||||
if (res.code === 0) {
|
||||
tableData.value = res.data.items
|
||||
tableData.value = res.data.list
|
||||
total.value = res.data.total
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ const fetchData = async () => {
|
|||
try {
|
||||
const res = await getWithdrawalList(queryParams)
|
||||
if (res.code === 0) {
|
||||
tableData.value = res.data.items
|
||||
tableData.value = res.data.list
|
||||
total.value = res.data.total
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const getStatusType = (status: number): '' | 'success' | 'warning' | 'info' | 'd
|
|||
const fetchPlanners = async () => {
|
||||
const res = await getPlannerList({ pageIndex: 1, pageSize: 100 })
|
||||
if (res.code === 0) {
|
||||
plannerOptions.value = res.data.items
|
||||
plannerOptions.value = res.data.list
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -213,7 +213,7 @@ const fetchData = async () => {
|
|||
try {
|
||||
const res = await getBookingList(queryParams)
|
||||
if (res.code === 0) {
|
||||
tableData.value = res.data.items
|
||||
tableData.value = res.data.list
|
||||
total.value = res.data.total
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ const fetchData = async () => {
|
|||
try {
|
||||
const res = await getPlannerList(queryParams)
|
||||
if (res.code === 0) {
|
||||
tableData.value = res.data.items
|
||||
tableData.value = res.data.list
|
||||
total.value = res.data.total
|
||||
}
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user