Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
b4349af3
Commit
b4349af3
authored
Mar 04, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0ce4d62a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
117 additions
and
73 deletions
+117
-73
customDailyTotal.vue
src/pages/sale/customDailyTotal.vue
+51
-34
customMonthFirst.vue
src/pages/sale/customMonthFirst.vue
+30
-16
customMonthSecond.vue
src/pages/sale/customMonthSecond.vue
+29
-16
customyearTotal.vue
src/pages/sale/customyearTotal.vue
+7
-7
No files found.
src/pages/sale/customDailyTotal.vue
View file @
b4349af3
<
style
>
.Sysuser_Date
.el-input__inner
{
background
:
transparent
!important
;
border
:
0
!important
;
}
.myTable_Zk
tbody
tr
:first-child
td
{
background
:
yellow
!important
;
}
.Sysuser_Date
.el-input__inner
{
background
:
transparent
!important
;
border
:
0
!important
;
}
.myTable_Zk
tbody
tr
:first-child
{
background
:
yellow
!important
;
z-index
:
1
!important
;
}
.TotalredClass
{
color
:
red
;
}
.myTable_Zk
tbody
tr
:first-child
td
{
background
:
yellow
!important
;
}
.myTable_Zk
tbody
tr
:first-child
{
background
:
yellow
!important
;
z-index
:
1
!important
;
}
.TotalredClass
{
color
:
red
;
}
</
style
>
<
template
>
<div
class=
"page-body"
>
...
...
@@ -21,19 +23,21 @@
<div
class=
"col-3 Sysuser_Date q-mr-lg"
>
<q-field
filled
dense
>
<template
v-slot:control
>
<el-date-picker
v-model=
"myDate"
style=
"width:100%"
value-format=
"yyyy-MM"
@
change=
"getCheckDate()"
size=
"small"
type=
"month"
placeholder=
"选择年月"
>
<el-date-picker
v-model=
"myDate"
style=
"width:100%"
value-format=
"yyyy-MM"
@
change=
"getCheckDate()"
size=
"small"
type=
"month"
placeholder=
"选择年月"
>
</el-date-picker>
</
template
>
</q-field>
</div>
<div
style=
"display:none"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:15px;"
label=
"下载
"
/>
<div>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:15px;"
label=
"下载"
@
click=
"downloadStudentMarket
"
/>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
ref=
"table"
:loading=
"loading"
:style=
"{'height':tableHeight+'px'}"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-header-column-table no-bottom-table myTable_Zk"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
""
>
<q-table
:pagination=
"msg"
ref=
"table"
:loading=
"loading"
:style=
"{'height':tableHeight+'px'}"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-header-column-table no-bottom-table myTable_Zk"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
""
>
<
template
v-slot:bottom
>
</
template
>
</q-table>
...
...
@@ -44,7 +48,9 @@
import
{
GetStudentMarket
}
from
'../../api/sale/sale'
;
import
{
EduDownLoad
}
from
"../../api/common/common"
;
export
default
{
props
:
{},
meta
:
{
...
...
@@ -212,8 +218,8 @@
],
dataList
:
[],
loading
:
false
,
myDate
:
''
,
tableHeight
:
500
,
myDate
:
''
,
tableHeight
:
500
,
msg
:
{
YearStr
:
''
,
MonthStr
:
''
,
...
...
@@ -229,23 +235,35 @@
mounted
()
{
let
d
=
new
Date
();
this
.
msg
.
YearStr
=
d
.
getFullYear
().
toString
();
this
.
msg
.
MonthStr
=
(
d
.
getMonth
()
+
1
).
toString
();
this
.
myDate
=
this
.
msg
.
YearStr
+
'-'
+
this
.
msg
.
MonthStr
this
.
msg
.
MonthStr
=
(
d
.
getMonth
()
+
1
).
toString
();
this
.
myDate
=
this
.
msg
.
YearStr
+
'-'
+
this
.
msg
.
MonthStr
this
.
getList
();
},
methods
:
{
getCheckDate
(){
if
(
this
.
myDate
){
this
.
msg
.
YearStr
=
this
.
myDate
.
split
(
'-'
)[
0
];
this
.
msg
.
MonthStr
=
this
.
myDate
.
split
(
'-'
)[
1
];
this
.
getList
();
//下载文件
downloadStudentMarket
()
{
this
.
loading
=
true
;
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
EduDownLoad
(
"/StudentStat/DownLoadStudentMarket"
,
msg
,
"市场部每日数据统计.xls"
,
res
=>
{
this
.
loading
=
false
;
}
);
},
getCheckDate
()
{
if
(
this
.
myDate
)
{
this
.
msg
.
YearStr
=
this
.
myDate
.
split
(
'-'
)[
0
];
this
.
msg
.
MonthStr
=
this
.
myDate
.
split
(
'-'
)[
1
];
this
.
getList
();
}
},
//获取数据
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
GetStudentMarket
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
;
}
...
...
@@ -253,8 +271,7 @@
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
</
style
>
\ No newline at end of file
src/pages/sale/customMonthFirst.vue
View file @
b4349af3
<
style
>
.Sysuser_Date
.el-input__inner
{
background
:
transparent
!important
;
border
:
0
!important
;
}
.Sysuser_Date
.el-input__inner
{
background
:
transparent
!important
;
border
:
0
!important
;
}
</
style
>
<
template
>
<div>
...
...
@@ -10,19 +10,21 @@
<div
class=
"col-3 Sysuser_Date q-mr-lg"
>
<q-field
filled
dense
>
<template
v-slot:control
>
<el-date-picker
v-model=
"msg.YearStr"
@
change=
"getList"
style=
"width:100%"
value-format=
"yyyy"
size=
"small"
type=
"year"
placeholder=
"选择年"
>
<el-date-picker
v-model=
"msg.YearStr"
@
change=
"getList"
style=
"width:100%"
value-format=
"yyyy"
size=
"small"
type=
"year"
placeholder=
"选择年"
>
</el-date-picker>
</
template
>
</q-field>
</div>
<div>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:15px;
display:none;
"
label=
"下载
"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:15px;
"
label=
"下载
"
@
click=
"downloadStudentMarketMonth
"
/>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
ref=
"table"
:loading=
"loading"
:style=
"{'height':tableHeight+'px'}"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-header-column-table no-bottom-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
""
>
<q-table
:pagination=
"msg"
ref=
"table"
:loading=
"loading"
:style=
"{'height':tableHeight+'px'}"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-header-column-table no-bottom-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
""
>
<
template
v-slot:bottom
>
</
template
>
</q-table>
...
...
@@ -33,7 +35,9 @@
import
{
GetStudentMarketMonth
}
from
'../../api/sale/sale'
;
import
{
EduDownLoad
}
from
"../../api/common/common"
;
export
default
{
props
:
{},
meta
:
{
...
...
@@ -201,8 +205,8 @@
],
dataList
:
[],
loading
:
false
,
myDate
:
''
,
tableHeight
:
500
,
myDate
:
''
,
tableHeight
:
500
,
msg
:
{
YearStr
:
''
,
rowsPerPage
:
0
...
...
@@ -220,11 +224,22 @@
this
.
getList
();
},
methods
:
{
downloadStudentMarketMonth
()
{
this
.
loading
=
true
;
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
EduDownLoad
(
"/StudentStat/DownLoadStudentMarketMonth"
,
msg
,
"市场部每月数据统计.xls"
,
res
=>
{
this
.
loading
=
false
;
}
);
},
//获取数据
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
GetStudentMarketMonth
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
;
}
...
...
@@ -232,8 +247,7 @@
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
</
style
>
\ No newline at end of file
src/pages/sale/customMonthSecond.vue
View file @
b4349af3
<
style
>
.Sysuser_Date
.el-input__inner
{
background
:
transparent
!important
;
border
:
0
!important
;
}
.TotalredClass
{
color
:
red
;
}
.Sysuser_Date
.el-input__inner
{
background
:
transparent
!important
;
border
:
0
!important
;
}
.TotalredClass
{
color
:
red
;
}
</
style
>
<
template
>
<div>
...
...
@@ -20,8 +21,7 @@
</q-field>
</div>
<div>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:15px;display:none;"
label=
"下载"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:15px;"
label=
"下载"
@
click=
"downloadStudentMarketMonthRate"
/>
</div>
</div>
<div
class=
"page-content"
>
...
...
@@ -103,6 +103,9 @@
import
{
GetStudentMarketMonthRate
}
from
'../../api/sale/sale'
;
import
{
EduDownLoad
}
from
"../../api/common/common"
;
export
default
{
props
:
{},
meta
:
{
...
...
@@ -113,11 +116,11 @@
return
{
tabCheck
:
1
,
dataList
:
[],
loading
:
false
,
tableHeight
:
500
,
loading
:
false
,
tableHeight
:
500
,
msg
:
{
YearStr
:
''
,
rowsPerPage
:
0
rowsPerPage
:
0
},
columns
:
[{
name
:
'ItemName'
,
...
...
@@ -217,10 +220,21 @@
this
.
getList
();
},
methods
:
{
downloadStudentMarketMonthRate
()
{
this
.
loading
=
true
;
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
EduDownLoad
(
"/StudentStat/DownLoadStudentMarketMonthRate"
,
msg
,
"市场部每月成长率数据统计.xls"
,
res
=>
{
this
.
loading
=
false
;
}
);
},
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
GetStudentMarketMonthRate
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
;
}
...
...
@@ -228,5 +242,4 @@
}
}
}
</
script
>
</
script
>
\ No newline at end of file
src/pages/sale/customyearTotal.vue
View file @
b4349af3
...
...
@@ -14,9 +14,9 @@
</
template
>
</q-field>
</div>
<div
style=
"display:none;"
>
<div>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"download"
style=
"margin-top:15px;"
label=
"下载"
@
click=
"downloadStudent
Static
Year"
/>
@
click=
"downloadStudent
Market
Year"
/>
</div>
</div>
<customYearFirst
:dataList=
"dataList"
:tabCheck=
"tabCheck"
></customYearFirst>
...
...
@@ -62,14 +62,14 @@
},
methods
:
{
//下载文件
downloadStudent
Static
Year
()
{
downloadStudent
Market
Year
()
{
this
.
loading
=
true
;
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
var
url
=
"/StudentStat/DownLoadStudent
Static
Year"
;
var
fileName
=
"
课程顾问
部年数据统计.xls"
;
var
url
=
"/StudentStat/DownLoadStudent
Market
Year"
;
var
fileName
=
"
市场
部年数据统计.xls"
;
if
(
this
.
tabCheck
==
2
)
{
url
=
"/StudentStat/DownLoadStudent
Static
YearRate"
;
fileName
=
"
课程顾问
部年成长率数据统计.xls"
;
url
=
"/StudentStat/DownLoadStudent
Market
YearRate"
;
fileName
=
"
市场
部年成长率数据统计.xls"
;
}
EduDownLoad
(
url
,
...
...
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