Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
P
park-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
huang
park-ui
Commits
b82ce2ec
提交
b82ce2ec
authored
6月 24, 2020
作者:
350505825@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交代码
上级
7f782850
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
233 行增加
和
127 行删除
+233
-127
firstPage.js
src/api/system/firstPage.js
+9
-0
index.vue
src/views/analysis/eattingAnalysis/index.vue
+19
-4
index.vue
src/views/analysis/personalAnalysis/index.vue
+20
-4
PanelGroup.vue
src/views/dashboard/PanelGroup.vue
+165
-107
index.vue
src/views/formalRecipe/formalRecipeCheck/index.vue
+5
-1
index.vue
src/views/index.vue
+7
-7
index.vue
src/views/rule/allowance/index.vue
+8
-4
没有找到文件。
src/api/system/firstPage.js
0 → 100644
浏览文件 @
b82ce2ec
import
request
from
'@/utils/request'
// 查询数据
export
function
allData
()
{
return
request
({
url
:
'/firstPage/getData'
,
method
:
'get'
,
})
}
src/views/analysis/eattingAnalysis/index.vue
浏览文件 @
b82ce2ec
...
@@ -46,12 +46,12 @@
...
@@ -46,12 +46,12 @@
<el-table-column
label=
"名称"
align=
"center"
prop=
"userName"
/>
<el-table-column
label=
"名称"
align=
"center"
prop=
"userName"
/>
<el-table-column
label=
"账号"
align=
"center"
prop=
"employeeId"
/>
<el-table-column
label=
"账号"
align=
"center"
prop=
"employeeId"
/>
<el-table-column
label=
"早餐就餐份数"
align=
"center"
prop=
"breakfastCount"
/>
<el-table-column
label=
"早餐就餐份数"
align=
"center"
prop=
"breakfastCount"
/>
<el-table-column
label=
"早餐就餐总费用"
align=
"center"
prop=
"breakfastPrice"
/>
<el-table-column
label=
"早餐就餐总费用"
align=
"center"
prop=
"breakfastPrice"
:formatter=
"formatterrebreakfastPrice"
/>
<el-table-column
label=
"午餐就餐份数"
align=
"center"
prop=
"lunchCount"
/>
<el-table-column
label=
"午餐就餐份数"
align=
"center"
prop=
"lunchCount"
/>
<el-table-column
label=
"午餐就餐总费用"
align=
"center"
prop=
"lunchPrice"
/>
<el-table-column
label=
"午餐就餐总费用"
align=
"center"
prop=
"lunchPrice"
:formatter=
"formatterrelunchPrice"
/>
<el-table-column
label=
"晚餐就餐份数"
align=
"center"
prop=
"dinnerCount"
/>
<el-table-column
label=
"晚餐就餐份数"
align=
"center"
prop=
"dinnerCount"
/>
<el-table-column
label=
"晚餐就餐总费用"
align=
"center"
prop=
"dinnerPrice"
/>
<el-table-column
label=
"晚餐就餐总费用"
align=
"center"
prop=
"dinnerPrice"
:formatter=
"formatterredinnerPrice"
/>
<el-table-column
label=
"全天用餐总费用"
align=
"center"
prop=
"totalPrice"
/>
<el-table-column
label=
"全天用餐总费用"
align=
"center"
prop=
"totalPrice"
:formatter=
"formatterretotalPrice"
/>
<el-table-column
label=
"日期"
align=
"center"
prop=
"createDate"
/>
<el-table-column
label=
"日期"
align=
"center"
prop=
"createDate"
/>
</el-table>
</el-table>
...
@@ -122,6 +122,21 @@
...
@@ -122,6 +122,21 @@
});
});
},
},
methods
:
{
methods
:
{
formatterrebreakfastPrice
(
row
,
column
)
{
return
row
.
breakfastPrice
/
100
;
},
formatterrelunchPrice
(
row
,
column
)
{
return
row
.
lunchPrice
/
100
;
},
formatterredinnerPrice
(
row
,
column
)
{
return
row
.
dinnerPrice
/
100
;
},
formatterretotalPrice
(
row
,
column
)
{
return
row
.
totalPrice
/
100
;
},
/** 查询就餐列表 */
/** 查询就餐列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
src/views/analysis/personalAnalysis/index.vue
浏览文件 @
b82ce2ec
...
@@ -43,10 +43,11 @@
...
@@ -43,10 +43,11 @@
<el-table-column
label=
"员工账号"
align=
"center"
prop=
"userId"
/>
<el-table-column
label=
"员工账号"
align=
"center"
prop=
"userId"
/>
<el-table-column
label=
"所属部门"
align=
"center"
prop=
"department"
/>
<el-table-column
label=
"所属部门"
align=
"center"
prop=
"department"
/>
<el-table-column
label=
"员工名称"
align=
"center"
prop=
"nickName"
/>
<el-table-column
label=
"员工名称"
align=
"center"
prop=
"nickName"
/>
<el-table-column
label=
"余额"
align=
"center"
prop=
"balance"
/>
<el-table-column
label=
"余额"
align=
"center"
prop=
"balance"
:formatter=
"formatterbalance"
/>
<el-table-column
label=
"充值数"
align=
"center"
prop=
"rechargeTotal"
/>
<el-table-column
label=
"充值总额"
align=
"center"
prop=
"rechargeTotal"
:formatter=
"formatterrechargeTotal"
/>
<el-table-column
label=
"消费数"
align=
"center"
prop=
"consumeTotal"
/>
<el-table-column
label=
"待付款"
align=
"center"
prop=
"prepayment"
:formatter=
"formatterprepayment"
/>
<!--
<el-table-column
label=
"补贴金额"
align=
"center"
prop=
"allowanceTotal"
/>
-->
<el-table-column
label=
"消费总额"
align=
"center"
prop=
"consumeTotal"
:formatter=
"formatterconsumeTotal"
/>
<el-table-column
label=
"补贴金额"
align=
"center"
prop=
"allowanceTotal"
:formatter=
"formatterallowanceTotal"
/>
</el-table>
</el-table>
<pagination
<pagination
...
@@ -107,6 +108,21 @@
...
@@ -107,6 +108,21 @@
});
});
},
},
methods
:
{
methods
:
{
formatterbalance
(
row
,
column
)
{
return
row
.
balance
/
100
;
},
formatterrechargeTotal
(
row
,
column
)
{
return
row
.
rechargeTotal
/
100
;
},
formatterprepayment
(
row
,
column
)
{
return
row
.
prepayment
/
100
;
},
formatterconsumeTotal
(
row
,
column
)
{
return
row
.
consumeTotal
/
100
;
},
formatterallowanceTotal
(
row
,
column
)
{
return
row
.
allowanceTotal
/
100
;
},
/** 查询客餐申请列表 */
/** 查询客餐申请列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
src/views/dashboard/PanelGroup.vue
浏览文件 @
b82ce2ec
<
template
>
<
template
>
<el-row
:gutter=
"40"
class=
"panel-group"
>
<el-row
:gutter=
"40"
class=
"panel-group"
>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<div
class=
"card-panel"
@
click=
"handleSetLineChartData('newVisitis')"
>
<div
class=
"card-panel"
>
<div
class=
"card-panel-icon-wrapper icon-people"
>
<svg-icon
icon-class=
"people"
class-name=
"card-panel-icon"
/>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
用户总数
</div>
<div
class=
"card-panel-text2"
>
{{
personCount
}}
</div>
</div>
</div>
</el-col>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<div
class=
"card-panel"
>
<div
class=
"card-panel-icon-wrapper icon-people"
>
<div
class=
"card-panel-icon-wrapper icon-people"
>
<svg-icon
icon-class=
"
peoples
"
class-name=
"card-panel-icon"
/>
<svg-icon
icon-class=
"
money
"
class-name=
"card-panel-icon"
/>
</div>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
<div
class=
"card-panel-text"
>
访客
本月充值金额
</div>
<div
class=
"card-panel-text2"
>
{{
rechargePrice
/
100
}}
</div>
</div>
<count-to
:start-val=
"0"
:end-val=
"102400"
:duration=
"2600"
class=
"card-panel-num"
/>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<div
class=
"card-panel"
@
click=
"handleSetLineChartData('messages')"
>
<div
class=
"card-panel"
>
<div
class=
"card-panel-icon-wrapper icon-message"
>
<div
class=
"card-panel-icon-wrapper icon-message"
>
<svg-icon
icon-class=
"m
essage
"
class-name=
"card-panel-icon"
/>
<svg-icon
icon-class=
"m
oney
"
class-name=
"card-panel-icon"
/>
</div>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
<div
class=
"card-panel-text"
>
消息
本月消费金额
</div>
<div
class=
"card-panel-text2"
>
{{
consumePrice
/
100
}}
</div>
</div>
<count-to
:start-val=
"0"
:end-val=
"81212"
:duration=
"3000"
class=
"card-panel-num"
/>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<div
class=
"card-panel"
@
click=
"handleSetLineChartData('purchases')"
>
<div
class=
"card-panel"
>
<div
class=
"card-panel-icon-wrapper icon-money"
>
<div
class=
"card-panel-icon-wrapper icon-money"
>
<svg-icon
icon-class=
"money"
class-name=
"card-panel-icon"
/>
<svg-icon
icon-class=
"money"
class-name=
"card-panel-icon"
/>
</div>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
<div
class=
"card-panel-text"
>
金额
实时余额
</div>
<div
class=
"card-panel-text2"
v-text=
"balanceTotalPrice / 100"
>
</div>
</div>
<count-to
:start-val=
"0"
:end-val=
"9280"
:duration=
"3200"
class=
"card-panel-num"
/>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<el-col
:xs=
"12"
:sm=
"12"
:lg=
"6"
class=
"card-panel-col"
>
<div
class=
"card-panel"
@
click=
"handleSetLineChartData('shoppings')"
>
<div
class=
"card-panel"
>
<div
class=
"card-panel-icon-wrapper icon-shopping"
>
<div
class=
"card-panel-icon-wrapper icon-shopping"
>
<svg-icon
icon-class=
"
shopping
"
class-name=
"card-panel-icon"
/>
<svg-icon
icon-class=
"
money
"
class-name=
"card-panel-icon"
/>
</div>
</div>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-description"
>
<div
class=
"card-panel-text"
>
<div
class=
"card-panel-text"
>
订单
退款总金额
</div>
<div
class=
"card-panel-text2"
>
{{
drawbackTotalPrice
/
100
}}
</div>
</div>
<count-to
:start-val=
"0"
:end-val=
"13600"
:duration=
"3600"
class=
"card-panel-num"
/>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
...
@@ -56,22 +78,50 @@
...
@@ -56,22 +78,50 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
CountTo
from
'vue-count-to'
import
{
allData
export
default
{
}
from
"@/api/system/firstPage"
;
components
:
{
CountTo
export
default
{
data
()
{
return
{
rechargePrice
:
null
,
personCount
:
null
,
consumePrice
:
null
,
balanceTotalPrice
:
null
,
drawbackTotalPrice
:
null
,
}
},
// components: {
// CountTo
// },
created
()
{
// this.getRechargePrice();
// this.getConsumePrice();
// this.getDrawbackTotalPrice();
// this.getPersonCount();
// this.getBalanceTotalPrice();
this
.
getData
();
},
},
methods
:
{
methods
:
{
handleSetLineChartData
(
type
)
{
// 获取数据
this
.
$emit
(
'handleSetLineChartData'
,
type
)
getData
()
{
this
.
loading
=
true
;
allData
().
then
(
response
=>
{
this
.
personCount
=
response
.
data
.
personCount
;
this
.
rechargePrice
=
response
.
data
.
rechangeAllCount
;
this
.
consumePrice
=
response
.
data
.
consumeAllCount
;
this
.
balanceTotalPrice
=
response
.
data
.
nowBalanceAllCount
;
this
.
drawbackTotalPrice
=
response
.
data
.
drawbackTotalPrice
;
this
.
loading
=
false
;
});
},
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.panel-group
{
.panel-group
{
margin-top
:
18px
;
margin-top
:
18px
;
.card-panel-col
{
.card-panel-col
{
...
@@ -153,14 +203,22 @@ export default {
...
@@ -153,14 +203,22 @@ export default {
margin-bottom
:
12px
;
margin-bottom
:
12px
;
}
}
.card-panel-text2
{
line-height
:
18px
;
color
:
#000000
;
font-size
:
18px
;
font-weight
:
bold
;
margin-bottom
:
12px
;
}
.card-panel-num
{
.card-panel-num
{
font-size
:
20px
;
font-size
:
20px
;
}
}
}
}
}
}
}
}
@media
(
max-width
:
550px
)
{
@media
(
max-width
:
550px
)
{
.card-panel-description
{
.card-panel-description
{
display
:
none
;
display
:
none
;
}
}
...
@@ -177,5 +235,5 @@ export default {
...
@@ -177,5 +235,5 @@ export default {
float
:
none
!
important
;
float
:
none
!
important
;
}
}
}
}
}
}
</
style
>
</
style
>
src/views/formalRecipe/formalRecipeCheck/index.vue
浏览文件 @
b82ce2ec
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<el-table-column
label=
"客餐类型"
align=
"center"
prop=
"applyPeriod"
/>
<el-table-column
label=
"客餐类型"
align=
"center"
prop=
"applyPeriod"
/>
<el-table-column
label=
"客餐理由"
align=
"center"
prop=
"remark"
/>
<el-table-column
label=
"客餐理由"
align=
"center"
prop=
"remark"
/>
<el-table-column
label=
"客餐数量"
align=
"center"
prop=
"applyAmount"
/>
<el-table-column
label=
"客餐数量"
align=
"center"
prop=
"applyAmount"
/>
<el-table-column
label=
"客餐总金额"
align=
"center"
prop=
"totalMoneny"
/>
<el-table-column
label=
"客餐总金额"
align=
"center"
prop=
"totalMoneny"
:formatter=
"formatterTotalMoneny"
/>
<el-table-column
label=
"申请人"
align=
"center"
prop=
"nickName"
/>
<el-table-column
label=
"申请人"
align=
"center"
prop=
"nickName"
/>
<el-table-column
label=
"所在部门"
align=
"center"
prop=
"deptName"
/>
<el-table-column
label=
"所在部门"
align=
"center"
prop=
"deptName"
/>
<el-table-column
label=
"状态"
align=
"center"
prop=
"status"
>
<el-table-column
label=
"状态"
align=
"center"
prop=
"status"
>
...
@@ -154,6 +154,10 @@
...
@@ -154,6 +154,10 @@
});
});
},
},
methods
:
{
methods
:
{
formatterTotalMoneny
(
row
,
column
)
{
return
row
.
totalMoneny
/
100
;
},
/** 查询客餐申请列表 */
/** 查询客餐申请列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
src/views/index.vue
浏览文件 @
b82ce2ec
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"dashboard-editor-container"
>
<div
class=
"dashboard-editor-container"
>
<panel-group
@
handleSetLineChartData=
"handleSetLineChartData"
/>
<panel-group
@
handleSetLineChartData=
"handleSetLineChartData"
/>
<!--
<el-row
style=
"background:#fff;padding:16px 16px 0;margin-bottom:32px;"
>
<el-row
style=
"background:#fff;padding:16px 16px 0;margin-bottom:32px;"
>
<line-chart
:chart-data=
"lineChartData"
/>
<line-chart
:chart-data=
"lineChartData"
/>
</el-row>
</el-row>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<bar-chart
/>
<bar-chart
/>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
-->
</div>
</div>
...
@@ -59,10 +59,10 @@ export default {
...
@@ -59,10 +59,10 @@ export default {
name
:
'Index'
,
name
:
'Index'
,
components
:
{
components
:
{
PanelGroup
,
PanelGroup
,
LineChart
,
//
LineChart,
RaddarChart
,
//
RaddarChart,
PieChart
,
//
PieChart,
BarChart
//
BarChart
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/views/rule/allowance/index.vue
浏览文件 @
b82ce2ec
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"40"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
type=
"selection"
width=
"40"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"部门"
align=
"center"
prop=
"deptName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"部门"
align=
"center"
prop=
"deptName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"补贴"
align=
"center"
prop=
"departmentAllowance"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"补贴"
align=
"center"
prop=
"departmentAllowance"
:
formatter=
"formatter"
:
show-overflow-tooltip=
"true"
/>
</el-table>
</el-table>
<!--分页按钮组-->
<!--分页按钮组-->
...
@@ -69,6 +69,10 @@
...
@@ -69,6 +69,10 @@
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
formatter
(
row
,
column
)
{
return
row
.
departmentAllowance
/
100
;
},
/** get all announcement list */
/** get all announcement list */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
@@ -102,7 +106,7 @@
...
@@ -102,7 +106,7 @@
this
.
reset
();
this
.
reset
();
const
depId
=
row
.
depId
||
this
.
ids
[
0
]
const
depId
=
row
.
depId
||
this
.
ids
[
0
]
getCurrentDepAllowance
(
depId
).
then
(
response
=>
{
getCurrentDepAllowance
(
depId
).
then
(
response
=>
{
let
departmentAllowance
=
parseFloat
(
response
.
data
.
departmentAllowance
)
let
departmentAllowance
=
parseFloat
(
response
.
data
.
departmentAllowance
)
/
100
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
response
.
data
.
departmentAllowance
=
departmentAllowance
response
.
data
.
departmentAllowance
=
departmentAllowance
this
.
open
=
true
;
this
.
open
=
true
;
...
@@ -113,8 +117,8 @@
...
@@ -113,8 +117,8 @@
submitForm
:
function
()
{
submitForm
:
function
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
form
.
depId
!=
undefined
)
{
if
(
this
.
form
.
depId
!=
=
undefined
)
{
console
.
log
(
this
.
form
)
this
.
form
.
departmentAllowance
*=
100
updateDepAllowance
(
this
.
form
).
then
(
response
=>
{
updateDepAllowance
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论