Browse Source

Merge branch 'dev-statics'

master
13176889840 3 years ago
parent
commit
b96c7b0e75
  1. 8
      src/views/modules/shequzhili/statics/cEvent.vue
  2. 7
      src/views/modules/shequzhili/statics/gridEvent.vue

8
src/views/modules/shequzhili/statics/cEvent.vue

@ -42,7 +42,7 @@
size="small">总计</el-button> size="small">总计</el-button>
<el-button @click="exportHandle" <el-button @click="exportHandle"
class="diy-button--reset" class="diy-button--reset"
size="small">导出</el-button> size="small" :loading="exportLoading">导出</el-button>
</div> </div>
<el-table class="resi-table" v-loading="dataListLoading" :data="dataList" border style="width: 100%" <el-table class="resi-table" v-loading="dataListLoading" :data="dataList" border style="width: 100%"
:height="tableHeight"> :height="tableHeight">
@ -103,6 +103,7 @@ export default {
deleteIsBatch: true, deleteIsBatch: true,
exportURL: '/data/stats/factAgencyUserHouseDaily/export' exportURL: '/data/stats/factAgencyUserHouseDaily/export'
}, },
exportLoading: false,
dataListLoading: false, dataListLoading: false,
optionsA: [], optionsA: [],
totalVisible: false, totalVisible: false,
@ -179,6 +180,8 @@ export default {
}, },
exportHandle () { exportHandle () {
const url = '/data/aggregator/org/orgProjectDetailList/export' const url = '/data/aggregator/org/orgProjectDetailList/export'
this.dataForm.type = 1
this.exportLoading = true
this.$http({ this.$http({
method: 'Post', method: 'Post',
url, url,
@ -199,9 +202,12 @@ export default {
aLink.click() aLink.click()
document.body.removeChild(aLink) // document.body.removeChild(aLink) //
window.URL.revokeObjectURL(url) //blob window.URL.revokeObjectURL(url) //blob
// this.exportLoading = false
} else this.$message.error('下载失败') } else this.$message.error('下载失败')
this.exportLoading = false
}).catch(err => { }).catch(err => {
console.log('err', err) console.log('err', err)
this.exportLoading = false
return this.$message.error('网络错误') return this.$message.error('网络错误')
}) })
}, },

7
src/views/modules/shequzhili/statics/gridEvent.vue

@ -46,7 +46,7 @@
size="small">总计</el-button> --> size="small">总计</el-button> -->
<el-button @click="exportHandle" <el-button @click="exportHandle"
class="diy-button--reset" class="diy-button--reset"
size="small">导出</el-button> size="small" :loading="exportLoading">导出</el-button>
</div> </div>
<el-table class="resi-table" v-loading="dataListLoading" :data="dataList" border style="width: 100%" <el-table class="resi-table" v-loading="dataListLoading" :data="dataList" border style="width: 100%"
:height="tableHeight"> :height="tableHeight">
@ -103,6 +103,7 @@ export default {
deleteIsBatch: true, deleteIsBatch: true,
exportURL: '/data/stats/factAgencyUserHouseDaily/export' exportURL: '/data/stats/factAgencyUserHouseDaily/export'
}, },
exportLoading: false,
dataListLoading: false, dataListLoading: false,
dataList: [], dataList: [],
optionsA: [], optionsA: [],
@ -184,6 +185,7 @@ export default {
this.getTableList(); this.getTableList();
}, },
exportHandle () { exportHandle () {
this.exportLoading = true
const url = '/data/aggregator/org/memberProjectInfoList/export' const url = '/data/aggregator/org/memberProjectInfoList/export'
this.$http({ this.$http({
method: 'Post', method: 'Post',
@ -205,9 +207,12 @@ export default {
aLink.click() aLink.click()
document.body.removeChild(aLink) // document.body.removeChild(aLink) //
window.URL.revokeObjectURL(url) //blob window.URL.revokeObjectURL(url) //blob
// this.exportLoading = false
} else this.$message.error('下载失败') } else this.$message.error('下载失败')
this.exportLoading = false
}).catch(err => { }).catch(err => {
console.log('err', err) console.log('err', err)
this.exportLoading = false
return this.$message.error('网络错误') return this.$message.error('网络错误')
}) })
}, },

Loading…
Cancel
Save