seyason пре 1 година
родитељ
комит
20879c7033
1 измењених фајлова са 5 додато и 4 уклоњено
  1. 5 4
      fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

+ 5 - 4
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -1163,7 +1163,7 @@
                 </el-form-item>
             </el-form>
             <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="exportReport" style="width:100%;" :loading="listLoading">{{$t('export.export')}}</el-button>
+                <el-button type="primary" @click="exportReport" style="width:100%;" :loading="exportingData">{{$t('export.export')}}</el-button>
             </div>
         </el-dialog>
         <!--导出报表条件选择 -->
@@ -1952,6 +1952,7 @@
         },
         data() {
             return {
+                exportingData: false,
                 roleList:[{value: 1,label: 'CRC&LM'},{value: 2,label: 'PM'}],
                 jobResponseList:[],
                 yisibeiCompId: 3092,
@@ -5334,7 +5335,7 @@
             },
             //导出日报
             exportReport() {
-                this.listLoading = true;
+                this.exportingData = true;
                 var param = {};
                 if (this.exportParam.dateRange != null) {
                     param = {startDate:this.exportParam.dateRange[0], endDate: this.exportParam.dateRange[1]};
@@ -5349,7 +5350,7 @@
                 // param.departmentId = this.user.departmentId
                 this.http.post( this.port.report.export, param,
                 res => {
-                    this.listLoading = false;
+                    this.exportingData = false;
                     if (res.code == "ok") {
                         location.href = res.data;
                         this.exportDialog = false;
@@ -5361,7 +5362,7 @@
                     }
                 },
                 error => {
-                    this.listLoading = false;
+                    this.exportingData = false;
                     this.$message({
                         message: error,
                         type: "error"