Prechádzať zdrojové kódy

提交自定义维度的导出

Lijy 2 rokov pred
rodič
commit
f89cdfcefa

+ 12 - 0
fhKeeper/formulahousekeeper/timesheet/src/views/project/cost.vue

@@ -409,6 +409,8 @@
                 if(!this.theCustomListFlg) {
                     param.type = this.exportParam.type*1
                 } 
+                    console.log(this.radio)
+
                 if(this.theCustomListFlg) {
                     url = '/project/exportTimeCostByUserCustom'
                     fileName = this.radio + this.$t('statistical') + '.xlsx'
@@ -424,6 +426,16 @@
                 if(this.permissions.countCost && this.permissions.countHours && (this.radio == this.$t('other.project') || this.radio == this.$t('projectclassification'))){
                     param.exportContent = this.exportParam.exportContent
                 }
+
+                if(this.radio == this.namess) {
+                    url = '/project/exportDegreeCost'
+                    param = {
+                        startDate:this.exportParam.dateRange[0],
+                        endDate: this.exportParam.dateRange[1],
+                        projectId: this.exportParam.projectId,
+                    }
+                    fileName = this.radio + '成本统计' + '.xlsx'
+                }
                 this.http.post(url, param,
                     res => {
                         if (res.code == "ok") {