Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-user
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-user
Commits
c24ee99a
提交
c24ee99a
authored
9月 14, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接口请求字段替换
上级
78153493
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
30 行增加
和
31 行删除
+30
-31
base.ts
src/api/base.ts
+1
-1
api.ts
src/modules/channel/api.ts
+3
-3
api.ts
src/modules/home/api.ts
+1
-1
api.ts
src/modules/school/contact/api.ts
+3
-3
api.ts
src/modules/school/project/api.ts
+3
-3
api.ts
src/modules/school/school/api.ts
+3
-3
api.ts
src/modules/user/all/api.ts
+2
-2
api.ts
src/modules/user/goose/api.ts
+4
-5
api.ts
src/modules/user/peak/api.ts
+3
-3
api.ts
src/modules/user/wechat/api.ts
+3
-3
api.ts
src/modules/user/zws/api.ts
+3
-3
vite.config.ts
vite.config.ts
+1
-1
没有找到文件。
src/api/base.ts
浏览文件 @
c24ee99a
...
@@ -32,5 +32,5 @@ export function uploadFile(data: Record<string, any>) {
...
@@ -32,5 +32,5 @@ export function uploadFile(data: Record<string, any>) {
// 获取个人信息
// 获取个人信息
// 获取用户信息
// 获取用户信息
export
function
getUserInfo
()
{
export
function
getUserInfo
()
{
return
httpRequest
.
get
(
'/api/
users
/v1/index/index/info'
)
return
httpRequest
.
get
(
'/api/
customer
/v1/index/index/info'
)
}
}
src/modules/channel/api.ts
浏览文件 @
c24ee99a
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
// 获取搜索条件
export
function
getConditionList
(
params
:
{
channel
:
boolean
})
{
export
function
getConditionList
(
params
:
{
channel
:
boolean
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/index/index/condition'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/index/index/condition'
,
{
params
})
}
}
export
function
getChannelList
(
params
:
{
export
function
getChannelList
(
params
:
{
created_time_start
?:
string
created_time_start
?:
string
...
@@ -12,9 +12,9 @@ export function getChannelList(params: {
...
@@ -12,9 +12,9 @@ export function getChannelList(params: {
tags
?:
string
tags
?:
string
company_short_name
?:
string
company_short_name
?:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/channel/index/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/channel/index/index'
,
{
params
})
}
}
// 获取详情
// 获取详情
export
function
getChannelDetail
(
params
:
{
id
:
string
})
{
export
function
getChannelDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/channel/index/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/channel/index/view'
,
{
params
})
}
}
src/modules/home/api.ts
浏览文件 @
c24ee99a
...
@@ -2,5 +2,5 @@ import httpRequest from '@/utils/axios'
...
@@ -2,5 +2,5 @@ import httpRequest from '@/utils/axios'
// 获取课程列表
// 获取课程列表
export
function
getAllDataList
()
{
export
function
getAllDataList
()
{
return
httpRequest
.
get
(
'/api/
users
/v1/index/index/index'
)
return
httpRequest
.
get
(
'/api/
customer
/v1/index/index/index'
)
}
}
src/modules/school/contact/api.ts
浏览文件 @
c24ee99a
...
@@ -10,14 +10,14 @@ export function getContactList(params: {
...
@@ -10,14 +10,14 @@ export function getContactList(params: {
[
'per-page'
]?:
string
[
'per-page'
]?:
string
page
:
string
page
:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/school/user/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/school/user/index'
,
{
params
})
}
}
// 获取联系人详情
// 获取联系人详情
export
function
getContactDetail
(
params
:
{
id
:
string
})
{
export
function
getContactDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/school/user/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/school/user/view'
,
{
params
})
}
}
export
function
importContact
(
data
:
{
file
:
any
})
{
export
function
importContact
(
data
:
{
file
:
any
})
{
return
httpRequest
.
post
(
'/api/
users
/v1/school/user/import'
,
data
,
{
return
httpRequest
.
post
(
'/api/
customer
/v1/school/user/import'
,
data
,
{
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
})
})
}
}
src/modules/school/project/api.ts
浏览文件 @
c24ee99a
...
@@ -12,14 +12,14 @@ export function getProjectList(params: {
...
@@ -12,14 +12,14 @@ export function getProjectList(params: {
[
'per-page'
]?:
string
[
'per-page'
]?:
string
page
?:
string
page
?:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/school/project/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/school/project/index'
,
{
params
})
}
}
// 获取学校详情
// 获取学校详情
export
function
getProjectDetail
(
params
:
{
id
:
string
})
{
export
function
getProjectDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/school/project/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/school/project/view'
,
{
params
})
}
}
export
function
importProject
(
data
:
{
file
:
any
})
{
export
function
importProject
(
data
:
{
file
:
any
})
{
return
httpRequest
.
post
(
'/api/
users
/v1/school/project/import'
,
data
,
{
return
httpRequest
.
post
(
'/api/
customer
/v1/school/project/import'
,
data
,
{
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
})
})
}
}
src/modules/school/school/api.ts
浏览文件 @
c24ee99a
...
@@ -11,15 +11,15 @@ export function getSchoolList(params: {
...
@@ -11,15 +11,15 @@ export function getSchoolList(params: {
[
'per-page'
]?:
string
[
'per-page'
]?:
string
page
?:
string
page
?:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/school/school/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/school/school/index'
,
{
params
})
}
}
// 获取学校详情
// 获取学校详情
export
function
getSchoolDetail
(
params
:
{
id
:
string
})
{
export
function
getSchoolDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/school/school/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/school/school/view'
,
{
params
})
}
}
// 获取学校详情
// 获取学校详情
export
function
importSchool
(
data
:
{
file
:
any
})
{
export
function
importSchool
(
data
:
{
file
:
any
})
{
return
httpRequest
.
post
(
'/api/
users
/v1/school/school/import'
,
data
,
{
return
httpRequest
.
post
(
'/api/
customer
/v1/school/school/import'
,
data
,
{
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
headers
:
{
'Content-Type'
:
'multipart/form-data'
}
})
})
}
}
src/modules/user/all/api.ts
浏览文件 @
c24ee99a
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
// 获取搜索条件
export
function
getConditionList
(
params
:
{
all
:
boolean
})
{
export
function
getConditionList
(
params
:
{
all
:
boolean
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/index/index/condition'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/index/index/condition'
,
{
params
})
}
}
// 获取全部学员信息
// 获取全部学员信息
export
function
getAllUserList
(
params
:
{
export
function
getAllUserList
(
params
:
{
...
@@ -14,5 +14,5 @@ export function getAllUserList(params: {
...
@@ -14,5 +14,5 @@ export function getAllUserList(params: {
email
?:
string
email
?:
string
mobile
?:
string
mobile
?:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/customer/all/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/customer/all/index'
,
{
params
})
}
}
src/modules/user/goose/api.ts
浏览文件 @
c24ee99a
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
// 获取搜索条件
export
function
getConditionList
(
params
:
{
xiaoe
:
boolean
})
{
export
function
getConditionList
(
params
:
{
xiaoe
:
boolean
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/index/index/condition'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/index/index/condition'
,
{
params
})
}
}
// 获取全部学员信息
// 获取全部学员信息
export
function
getGooseList
(
params
:
{
export
function
getGooseList
(
params
:
{
...
@@ -18,9 +18,9 @@ export function getGooseList(params: {
...
@@ -18,9 +18,9 @@ export function getGooseList(params: {
from
?:
string
from
?:
string
sales
?:
string
sales
?:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/customer/xiaoe/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/customer/xiaoe/index'
,
{
params
})
}
}
// 获取小鹅通详情
// 获取小鹅通详情
export
function
getGooseUserDetail
(
params
:
{
id
:
string
})
{
export
function
getGooseUserDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/users/v1/customer/xiaoe/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/customer/v1/customer/xiaoe/view'
,
{
params
})
}
}
\ No newline at end of file
src/modules/user/peak/api.ts
浏览文件 @
c24ee99a
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
// 获取搜索条件
export
function
getConditionList
(
params
:
{
dustess
:
boolean
})
{
export
function
getConditionList
(
params
:
{
dustess
:
boolean
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/index/index/condition'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/index/index/condition'
,
{
params
})
}
}
// 获取全部学员信息
// 获取全部学员信息
export
function
getPeakUserList
(
params
:
{
export
function
getPeakUserList
(
params
:
{
...
@@ -16,9 +16,9 @@ export function getPeakUserList(params: {
...
@@ -16,9 +16,9 @@ export function getPeakUserList(params: {
createuser_name
?:
string
createuser_name
?:
string
owner
?:
string
owner
?:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/customer/dustess/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/customer/dustess/index'
,
{
params
})
}
}
// 获取详情
// 获取详情
export
function
getPeakUserDetail
(
params
:
{
id
:
string
})
{
export
function
getPeakUserDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/customer/dustess/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/customer/dustess/view'
,
{
params
})
}
}
src/modules/user/wechat/api.ts
浏览文件 @
c24ee99a
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
// 获取搜索条件
export
function
getConditionList
(
params
:
{
wechat
:
boolean
})
{
export
function
getConditionList
(
params
:
{
wechat
:
boolean
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/index/index/condition'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/index/index/condition'
,
{
params
})
}
}
// 获取全部学员信息
// 获取全部学员信息
export
function
getWechatUserList
(
params
:
{
export
function
getWechatUserList
(
params
:
{
...
@@ -19,9 +19,9 @@ export function getWechatUserList(params: {
...
@@ -19,9 +19,9 @@ export function getWechatUserList(params: {
[
'per-page'
]?:
string
[
'per-page'
]?:
string
page
?:
string
page
?:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/customer/wechat/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/customer/wechat/index'
,
{
params
})
}
}
// 获取详情
// 获取详情
export
function
getwechatUserDetail
(
params
:
{
id
:
string
})
{
export
function
getwechatUserDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/customer/wechat/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/customer/wechat/view'
,
{
params
})
}
}
src/modules/user/zws/api.ts
浏览文件 @
c24ee99a
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
...
@@ -2,7 +2,7 @@ import httpRequest from '@/utils/axios'
// 获取搜索条件
// 获取搜索条件
export
function
getConditionList
(
params
:
{
zws
:
boolean
})
{
export
function
getConditionList
(
params
:
{
zws
:
boolean
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/index/index/condition'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/index/index/condition'
,
{
params
})
}
}
// 获取全部学员信息
// 获取全部学员信息
export
function
getZwsUserList
(
params
:
{
export
function
getZwsUserList
(
params
:
{
...
@@ -20,9 +20,9 @@ export function getZwsUserList(params: {
...
@@ -20,9 +20,9 @@ export function getZwsUserList(params: {
sales_rep
?:
string
sales_rep
?:
string
channel
?:
string
channel
?:
string
})
{
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/customer/zws/index'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/customer/zws/index'
,
{
params
})
}
}
// 获取详情
// 获取详情
export
function
getZwsUserDetail
(
params
:
{
id
:
string
})
{
export
function
getZwsUserDetail
(
params
:
{
id
:
string
})
{
return
httpRequest
.
get
(
'/api/
users
/v1/customer/zws/view'
,
{
params
})
return
httpRequest
.
get
(
'/api/
customer
/v1/customer/zws/view'
,
{
params
})
}
}
vite.config.ts
浏览文件 @
c24ee99a
...
@@ -24,7 +24,7 @@ export default defineConfig(({ mode }) => ({
...
@@ -24,7 +24,7 @@ export default defineConfig(({ mode }) => ({
cert
:
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'./https/dev.ezijing.com.pem'
))
cert
:
fs
.
readFileSync
(
path
.
join
(
__dirname
,
'./https/dev.ezijing.com.pem'
))
},
},
proxy
:
{
proxy
:
{
// '/api/
users
': {
// '/api/
customer
': {
// // target: 'http://localhost-customer-system-backend.ezijing.com',
// // target: 'http://localhost-customer-system-backend.ezijing.com',
// target: 'https://customer-backend-api.ezijing.com',
// target: 'https://customer-backend-api.ezijing.com',
// rewrite: path => path.replace(/^\/api\/users/, ''),
// rewrite: path => path.replace(/^\/api\/users/, ''),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论