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