|
|
@@ -3,10 +3,9 @@
|
|
|
v-bind="bindVal"
|
|
|
v-on="onEvent"
|
|
|
v-model="form"
|
|
|
- :page.sync="page"
|
|
|
>
|
|
|
<template slot="menuLeft">
|
|
|
- <el-button type="primary" size="small" @click="handleReadMonthProject">引入当月项目</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="handleReadMonthProject">引入</el-button>
|
|
|
<el-button
|
|
|
type="danger"
|
|
|
size="small"
|
|
|
@@ -73,6 +72,14 @@ export default window.$crudCommon({
|
|
|
getSearchParams() {
|
|
|
return { ...this.params, type: this.type };
|
|
|
},
|
|
|
+ loadData() {
|
|
|
+ this.loading = true;
|
|
|
+ this.api['getList'](this.getSearchParams()).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ this.loading = false;
|
|
|
+ this.data = res.data;
|
|
|
+ })
|
|
|
+ },
|
|
|
handleExport() {
|
|
|
exportBlob(`/api/kd-scientific/asset/kyyqsbzjfyfpb?${this.website.tokenHeader}=${getToken()}`, this.params).then(res => {
|
|
|
downloadXls(res.data, `${this.params.yearAndMonth}科研仪器设备折旧费用分配表.xlsx`);
|