|
@@ -217,7 +217,7 @@
|
|
</div>
|
|
</div>
|
|
<!-- <p :style="ins == 9 ? 'float: right;margin-right: 25px;width:20%' : 'float: right;margin-right: 25px;width:10%'" > -->
|
|
<!-- <p :style="ins == 9 ? 'float: right;margin-right: 25px;width:20%' : 'float: right;margin-right: 25px;width:10%'" > -->
|
|
<p :style="`${ins == 9 || ins == 14 || ins == 21 ? 'width: 20%' : 'width: 10%'}`" class="tableRightBtn">
|
|
<p :style="`${ins == 9 || ins == 14 || ins == 21 ? 'width: 20%' : 'width: 10%'}`" class="tableRightBtn">
|
|
- <el-button type="primary" @click="exportExcel" size="mini">{{ $t('reporderived') }}</el-button>
|
|
|
|
|
|
+ <el-button type="primary" :loading="exportReportLoading" @click="exportExcel" size="mini">{{ $t('reporderived') }}</el-button>
|
|
<el-button type="primary" @click="fillAll" size="mini" v-if="ins == 14">{{ $t('quanBuBuZu') }}</el-button>
|
|
<el-button type="primary" @click="fillAll" size="mini" v-if="ins == 14">{{ $t('quanBuBuZu') }}</el-button>
|
|
<el-button type="primary" @click="exportExcelByQuarter" size="mini" v-if="ins == 9 && user.companyId == 876">{{ $t('an-ji-du-dao-chu') }}</el-button>
|
|
<el-button type="primary" @click="exportExcelByQuarter" size="mini" v-if="ins == 9 && user.companyId == 876">{{ $t('an-ji-du-dao-chu') }}</el-button>
|
|
<el-button type="primary" @click="setWarning" size="mini" v-if="ins == 21">{{ $t('sheZhiYuJing') }}</el-button>
|
|
<el-button type="primary" @click="setWarning" size="mini" v-if="ins == 21">{{ $t('sheZhiYuJing') }}</el-button>
|
|
@@ -1968,7 +1968,8 @@ export default {
|
|
groupConsumptionTimer: null,
|
|
groupConsumptionTimer: null,
|
|
tabsType: 'all',
|
|
tabsType: 'all',
|
|
tabParams: {},
|
|
tabParams: {},
|
|
- groupTaskKey: 1
|
|
|
|
|
|
+ groupTaskKey: 1,
|
|
|
|
+ exportReportLoading: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
@@ -2638,6 +2639,7 @@ export default {
|
|
this.userId ? sl.userId = this.userId : ''
|
|
this.userId ? sl.userId = this.userId : ''
|
|
dept ? sl.deptId = dept : ''
|
|
dept ? sl.deptId = dept : ''
|
|
} else if(this.ins == 24) {
|
|
} else if(this.ins == 24) {
|
|
|
|
+ this.exportReportLoading = true
|
|
if(this.tabsType == 'all') {
|
|
if(this.tabsType == 'all') {
|
|
fName = this.$t('fenZuHaoYongJinDuBiao') + '.xlsx'
|
|
fName = this.$t('fenZuHaoYongJinDuBiao') + '.xlsx'
|
|
url = "/project/exportGroupExpendProcessList"
|
|
url = "/project/exportGroupExpendProcessList"
|
|
@@ -2687,6 +2689,7 @@ export default {
|
|
}
|
|
}
|
|
this.http.post(url, sl,
|
|
this.http.post(url, sl,
|
|
res => {
|
|
res => {
|
|
|
|
+ this.exportReportLoading = false
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
var filePath = res.data;
|
|
var filePath = res.data;
|
|
const a = document.createElement('a'); // 创建a标签
|
|
const a = document.createElement('a'); // 创建a标签
|
|
@@ -2702,6 +2705,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
error => {
|
|
error => {
|
|
|
|
+ this.exportReportLoading = false
|
|
this.$message({
|
|
this.$message({
|
|
message: error,
|
|
message: error,
|
|
type: "error"
|
|
type: "error"
|