183 lines
4.0 KiB
TypeScript
183 lines
4.0 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 getModelsSelect(params: any) {
|
|
return request.get<any>({
|
|
url: '/crm/vehicle/sku/preset',
|
|
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 getUserSelectparams(params: any) {
|
|
return request.get<any>({
|
|
url: '/common/preset/users',
|
|
params
|
|
})
|
|
}
|
|
//签名 编辑
|
|
static signatureEdit(params: any) {
|
|
return request.post<any>({
|
|
url: '/admin/user/update/sign',
|
|
params
|
|
})
|
|
}
|
|
//人员分组场景
|
|
static getUserGroupScene() {
|
|
return request.get<any>({
|
|
url: '/common/preset/usergroup/scene'
|
|
})
|
|
}
|
|
//人员分组
|
|
static getUserGroupSelect(params: any) {
|
|
return request.get<any>({
|
|
url: '/common/preset/usergroup',
|
|
params
|
|
})
|
|
}
|
|
//关键字抓取车辆
|
|
static getcrawlKeyword(params: any) {
|
|
return request.get<any>({
|
|
url: '/common/brand/series/crawlKeyword',
|
|
params
|
|
})
|
|
}
|
|
//关键字抓取车辆保存
|
|
static crawlModelCreate(params: any) {
|
|
return request.post<Api.Work.AddResponse>({
|
|
url: '/common/brand/series/crawlKeywordCreate',
|
|
params
|
|
})
|
|
}
|
|
//仪表盘选择下拉
|
|
static getDashboardSelect() {
|
|
return request.get<any>({
|
|
url: '/admin/resources/list/menu?is_home=1'
|
|
})
|
|
}
|
|
}
|