Commit b4349af3 authored by 黄奎's avatar 黄奎

页面修改

parent 0ce4d62a
<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
<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
<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
......@@ -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="downloadStudentStaticYear" />
@click="downloadStudentMarketYear" />
</div>
</div>
<customYearFirst :dataList="dataList" :tabCheck="tabCheck"></customYearFirst>
......@@ -62,14 +62,14 @@
},
methods: {
//下载文件
downloadStudentStaticYear() {
downloadStudentMarketYear() {
this.loading = true;
var msg = JSON.parse(JSON.stringify(this.msg));
var url = "/StudentStat/DownLoadStudentStaticYear";
var fileName = "课程顾问部年数据统计.xls";
var url = "/StudentStat/DownLoadStudentMarketYear";
var fileName = "市场部年数据统计.xls";
if (this.tabCheck == 2) {
url = "/StudentStat/DownLoadStudentStaticYearRate";
fileName = "课程顾问部年成长率数据统计.xls";
url = "/StudentStat/DownLoadStudentMarketYearRate";
fileName = "市场部年成长率数据统计.xls";
}
EduDownLoad(
url,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment