Commit bc38f3ab authored by 黄奎's avatar 黄奎

页面修改

parent f35ed81d
......@@ -247,7 +247,7 @@
this.conMsg.AdvisorRemark = "";
this.conMsg.AdvisorExpectDate = "";
this.conMsg.AdvisorRate = "";
this.commonName='';
this.commonName = '';
this.isShowAdd = false;
},
changePage(val) {
......
......@@ -15,13 +15,17 @@
</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="downloadStudentStaticYear" />
</div>
</div>
<yearFirst :dataList="dataList" :tabCheck="tabCheck"></yearFirst>
</div>
</template>
<script>
import {
EduDownLoad
} from "../../api/common/common";
import yearFirst from '../sale/yearFirst';
import {
GetStudentStaticYear
......@@ -41,7 +45,7 @@
data() {
return {
tabCheck: 1,
dataList:[],
dataList: [],
msg: {
YearStr: '',
rowsPerPage: 0
......@@ -57,6 +61,24 @@
this.getList();
},
methods: {
//下载文件
downloadStudentStaticYear() {
this.loading = true;
var msg = JSON.parse(JSON.stringify(this.msg));
var url = "/StudentStat/DownLoadStudentStaticYear";
var fileName = "课程顾问部年数据统计.xls";
if (this.tabCheck == 2) {
url = "/StudentStat/DownLoadStudentStaticYearRate";
fileName = "课程顾问部年成长率数据统计.xls";
}
EduDownLoad(
url,
msg,
fileName, res => {
this.loading = false;
}
);
},
//获取数据
getList() {
if (this.tabCheck == 1) {
......@@ -80,5 +102,4 @@
}
}
</script>
\ No newline at end of file
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