Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-vue
Commits
2cea9506
Commit
2cea9506
authored
Oct 09, 2023
by
‘巴博尔’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加首页数据统计
parent
24f40147
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
2 deletions
+110
-2
src/api/index.js
+107
-0
src/views/index.vue
+0
-0
src/views/user/companion/index.vue
+0
-0
vue.config.js
+3
-2
No files found.
src/api/index.js
0 → 100644
View file @
2cea9506
/*
* @Author: ‘巴博尔’ 2164119982@qq.com
* @Date: 2023-10-09 14:59:34
* @LastEditors: ‘巴博尔’ 2164119982@qq.com
* @LastEditTime: 2023-10-09 18:59:06
* @FilePath: \peizhen-vue\src\api\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
request
from
"@/utils/request"
;
// 新增用户统计
export
function
dataUserGet
(
query
)
{
return
request
({
url
:
"/system/data/dataUser"
,
method
:
"get"
,
params
:
query
,
});
}
// 新增陪诊员统计
export
function
dataEmployeesGet
(
query
)
{
return
request
({
url
:
"/system/data/dataEmployees"
,
method
:
"get"
,
params
:
query
,
});
}
// 订单销售额
export
function
saleroomGet
(
query
)
{
return
request
({
url
:
"/system/data/saleroom"
,
method
:
"get"
,
params
:
query
,
});
}
// 平台收益
export
function
platformRevenueGet
(
query
)
{
return
request
({
url
:
"/system/data/platformRevenue"
,
method
:
"get"
,
params
:
query
,
});
}
// 订单量
export
function
orderQuantityGet
(
query
)
{
return
request
({
url
:
"/system/data/orderQuantity"
,
method
:
"get"
,
params
:
query
,
});
}
// 数据总览柱状图
export
function
orderQuantityEchartsGet
(
query
)
{
return
request
({
url
:
`/system/data/findOrderColumnarVoList`
,
method
:
"get"
,
params
:
query
,
});
}
// 新增陪诊员
export
function
addEmployeesPost
(
data
)
{
return
request
({
url
:
"/merchant/employees"
,
method
:
"post"
,
data
:
data
,
});
}
// 陪诊员详情
export
function
employeesDetailsGet
(
query
)
{
return
request
({
url
:
`/merchant/employees/
${
query
.
id
}
`
,
method
:
"get"
,
});
}
// 陪诊员修改
export
function
employeesUpdatePut
(
data
)
{
return
request
({
url
:
"/merchant/employees/EmployeesUpdate"
,
method
:
"put"
,
data
:
data
,
});
}
// 陪诊员冻结
export
function
switchStatusPut
(
data
)
{
return
request
({
url
:
`/merchant/app/employees/switchStatus?emId=
${
data
.
emId
}
`
,
method
:
"put"
,
// data: data,
});
}
// 设置为陪护人员
export
function
switchIdentityPut
(
data
)
{
return
request
({
url
:
`/merchant/app/employees/switchIdentity?emId=
${
data
.
emId
}
`
,
method
:
"put"
,
// data: data,
});
}
src/views/index.vue
View file @
2cea9506
This diff is collapsed.
Click to expand it.
src/views/user/companion/index.vue
View file @
2cea9506
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
2cea9506
...
...
@@ -36,9 +36,10 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://localhost:8089`,
target
:
`https://peizheng.shanpeikj.com/api`
,
//
target: `http://192.168.0.169:8089`,
//
target: `https://peizheng.shanpeikj.com/api`,
target
:
`http://192.168.0.169:8089`
,
// target: `http://192.168.0.137:8089`,
// target: `http://192.168.0.199:8089`,
// target: `http://192.168.0.125:8089`,
changeOrigin
:
true
,
pathRewrite
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment