Commit bc38f3ab authored by 黄奎's avatar 黄奎

页面修改

parent f35ed81d
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
this.conMsg.AdvisorRemark = ""; this.conMsg.AdvisorRemark = "";
this.conMsg.AdvisorExpectDate = ""; this.conMsg.AdvisorExpectDate = "";
this.conMsg.AdvisorRate = ""; this.conMsg.AdvisorRate = "";
this.commonName=''; this.commonName = '';
this.isShowAdd = false; this.isShowAdd = false;
}, },
changePage(val) { changePage(val) {
......
...@@ -15,13 +15,17 @@ ...@@ -15,13 +15,17 @@
</q-field> </q-field>
</div> </div>
<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>
</div> </div>
<yearFirst :dataList="dataList" :tabCheck="tabCheck"></yearFirst> <yearFirst :dataList="dataList" :tabCheck="tabCheck"></yearFirst>
</div> </div>
</template> </template>
<script> <script>
import {
EduDownLoad
} from "../../api/common/common";
import yearFirst from '../sale/yearFirst'; import yearFirst from '../sale/yearFirst';
import { import {
GetStudentStaticYear GetStudentStaticYear
...@@ -41,7 +45,7 @@ ...@@ -41,7 +45,7 @@
data() { data() {
return { return {
tabCheck: 1, tabCheck: 1,
dataList:[], dataList: [],
msg: { msg: {
YearStr: '', YearStr: '',
rowsPerPage: 0 rowsPerPage: 0
...@@ -57,6 +61,24 @@ ...@@ -57,6 +61,24 @@
this.getList(); this.getList();
}, },
methods: { 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() { getList() {
if (this.tabCheck == 1) { if (this.tabCheck == 1) {
...@@ -80,5 +102,4 @@ ...@@ -80,5 +102,4 @@
} }
} }
</script>
</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