136 lines
2.9 KiB
TypeScript
136 lines
2.9 KiB
TypeScript
|
|
import request from '@/utils/http'
|
||
|
|
|
||
|
|
export class commonService {
|
||
|
|
//通知列表
|
||
|
|
static getNoticeList(params: Api.Common.PaginatingParams) {
|
||
|
|
return request.get<Api.Common.CommonListData>({
|
||
|
|
url: '/common/notice/list',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通知详情
|
||
|
|
static getNoticeDetail(params: any) {
|
||
|
|
return request.get<Api.Common.CommonListData>({
|
||
|
|
url: '/common/notice/show',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通知已读
|
||
|
|
static readNotice(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/common/notice/read',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通知删除
|
||
|
|
static delNotice(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/common/notice/destroy',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通知未读列表
|
||
|
|
static getUnReadNoticeList() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/notice/unread'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//货币下拉列表
|
||
|
|
static getCurrencySelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/currency'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
//国家下拉列表
|
||
|
|
static getCountrySelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/crm/customer/getCountry'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//品牌下拉列表
|
||
|
|
static getBrandSelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/brand'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//车系下拉列表
|
||
|
|
static getSeriesSelect(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/brand/series',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//港口下拉列表
|
||
|
|
static getPortSelect(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/port',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//颜色下拉列表
|
||
|
|
static getColorSelect(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/color',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//改装下拉列表
|
||
|
|
static getModificationSelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/modification'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//字典下拉框
|
||
|
|
static getDictSelect(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/dict/scope',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//字典项下拉框
|
||
|
|
static getDictItemSelect(params: any) {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/dictItem',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//字典分类下拉框
|
||
|
|
static getDictTypeSelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/admin/dict/group'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//账户下拉框
|
||
|
|
static getAccountSelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/account'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//名下客户下拉框
|
||
|
|
static getCustomerSelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/crm/customer/preset'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//角色下拉框
|
||
|
|
static getRoleSelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/roles'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//用户下拉框
|
||
|
|
static getUserSelect() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/preset/users'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//签名 编辑
|
||
|
|
static signatureEdit(params: any) {
|
||
|
|
return request.post<any>({
|
||
|
|
url: '/admin/user/update/sign',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|