|
@@ -98,7 +98,8 @@
|
|
|
</el-button>
|
|
|
<el-button class="filter-item" style="float: left;" round type="success" @click="resetSearchAssets()">重置
|
|
|
</el-button>
|
|
|
- <el-button class="filter-item" style="float: left;" round type="info" @click="exportDetail()">导出
|
|
|
+ <el-button class="filter-item" style="float: left;" round type="info" @click="exportMyAssetsIncome()"
|
|
|
+ :disabled="exportStatus">导出
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<parentTable slot="table" :data="assetsIncome.records" style=" width: 100%;">
|
|
@@ -230,7 +231,8 @@ export default {
|
|
|
},
|
|
|
assetsIncome: {
|
|
|
records: []
|
|
|
- }
|
|
|
+ },
|
|
|
+ exportStatus: true
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -274,6 +276,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
resetSearchAssets() {
|
|
|
+ this.exportStatus = true;
|
|
|
this.$router.push({ query: {} });
|
|
|
this.listQuery2 = {
|
|
|
current: 1,
|
|
@@ -317,8 +320,19 @@ export default {
|
|
|
this.$api.businessIncome.myAssetsIncome(this.listQuery2).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.assetsIncome = res.data;
|
|
|
+ if (this.listQuery2.startTime !== null && this.listQuery2.endTime !== null && res.data.records.length > 0) {
|
|
|
+ this.exportStatus = false;
|
|
|
+ } else {
|
|
|
+ this.exportStatus = true;
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ exportMyAssetsIncome() {
|
|
|
+ this.$utils.exportUtil(
|
|
|
+ "/businessIncome/my/assets/export", this.listQuery2,
|
|
|
+ "导出"
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
}
|