|
@@ -51,7 +51,15 @@
|
|
|
plain
|
|
plain
|
|
|
icon="el-icon-upload2"
|
|
icon="el-icon-upload2"
|
|
|
@click="exportXls"
|
|
@click="exportXls"
|
|
|
- >导出数据</el-button>
|
|
|
|
|
|
|
+ >导出全部数据</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="success"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-upload2"
|
|
|
|
|
+ :disabled="multipleSelection.length==0"
|
|
|
|
|
+ @click="selectExportXls"
|
|
|
|
|
+ >导出所选数据</el-button>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -59,9 +67,14 @@
|
|
|
v-loading="loading"
|
|
v-loading="loading"
|
|
|
row-key="id"
|
|
row-key="id"
|
|
|
height="500"
|
|
height="500"
|
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
:row-class-name="tableRowClassName"
|
|
:row-class-name="tableRowClassName"
|
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
|
|
>
|
|
>
|
|
|
|
|
+ <el-table-column
|
|
|
|
|
+ type="selection"
|
|
|
|
|
+ width="55">
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="serialNum" label="序号" width="250"></el-table-column>
|
|
<el-table-column prop="serialNum" label="序号" width="250"></el-table-column>
|
|
|
<el-table-column prop="name" label="收入子项目" width="300"></el-table-column>
|
|
<el-table-column prop="name" label="收入子项目" width="300"></el-table-column>
|
|
|
<el-table-column prop="budgetRevenue" label="预算收入(当前)">
|
|
<el-table-column prop="budgetRevenue" label="预算收入(当前)">
|
|
@@ -307,6 +320,25 @@
|
|
|
},
|
|
},
|
|
|
exportXls() {
|
|
exportXls() {
|
|
|
this.changePage(1,true);
|
|
this.changePage(1,true);
|
|
|
|
|
+ },
|
|
|
|
|
+ selectExportXls() {
|
|
|
|
|
+ var self = this;
|
|
|
|
|
+
|
|
|
|
|
+ fundIncomeInfoApi.selectExportXls(self.multipleSelection).then(function(response) {
|
|
|
|
|
+ var jsonData = response.data;
|
|
|
|
|
+
|
|
|
|
|
+ if (jsonData.result) {
|
|
|
|
|
+ //导出
|
|
|
|
|
+ self.$message({
|
|
|
|
|
+ showClose: true,
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ message: `报表已生成,<a href="${jsonData.data}">请点击链接下载</a>`,
|
|
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
|
|
+ duration: 30000
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
onDetailModalClose(refreshed) {
|
|
onDetailModalClose(refreshed) {
|
|
|
this.showModal = false;
|
|
this.showModal = false;
|