-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:Tencent/tdesign-vue-next-starter…
… into main
- Loading branch information
Showing
23 changed files
with
181 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { request } from '@/utils/request'; | ||
import type { ProjectListResult, PurchaseListResult } from '@/api/model/detailModel'; | ||
|
||
const Api = { | ||
PurchaseList: '/get-purchase-list', | ||
ProjectList: '/get-project-list', | ||
}; | ||
|
||
export function getPurchaseList() { | ||
return request.get<PurchaseListResult>({ | ||
url: Api.PurchaseList, | ||
}); | ||
} | ||
|
||
export function getProjectList() { | ||
return request.get<ProjectListResult>({ | ||
url: Api.ProjectList, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { request } from '@/utils/request'; | ||
import type { CardListResult, ListResult } from '@/api/model/listModel'; | ||
|
||
const Api = { | ||
BaseList: '/get-list', | ||
CardList: '/get-card-list', | ||
}; | ||
|
||
export function getList() { | ||
return request.get<ListResult>({ | ||
url: Api.BaseList, | ||
}); | ||
} | ||
|
||
export function getCardList() { | ||
return request.get<CardListResult>({ | ||
url: Api.CardList, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export interface PurchaseListResult { | ||
list: Array<PurchaseInfo>; | ||
} | ||
export interface PurchaseInfo { | ||
adminName: string; | ||
index: string; | ||
pdName: string; | ||
pdNum: string; | ||
pdType: string; | ||
purchaseNum: number; | ||
updateTime: Date; | ||
} | ||
|
||
export interface ProjectListResult { | ||
list: Array<ProjectInfo>; | ||
} | ||
export interface ProjectInfo { | ||
adminName: string; | ||
adminPhone: string; | ||
index: number; | ||
name: string; | ||
updateTime: Date; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export interface ListResult { | ||
list: Array<ListModel>; | ||
} | ||
export interface ListModel { | ||
adminName: string; | ||
amount: string; | ||
contractType: number; | ||
index: number; | ||
name: string; | ||
no: string; | ||
paymentType: number; | ||
status: number; | ||
updateTime: Date; | ||
} | ||
|
||
export interface CardListResult { | ||
list: Array<CardList>; | ||
} | ||
export interface CardList { | ||
banner: string; | ||
description: string; | ||
index: number; | ||
isSetup: boolean; | ||
name: string; | ||
type: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.