xialei 1 rok temu
rodzic
commit
1af75358ed

+ 10 - 6
src/views/accounts/caiwutongji/commission/index.vue

@@ -92,6 +92,8 @@
92 92
 
93 93
                         <el-button size="small" style="width: 100px; margin-top: 20px;" type="primary" @click="getList(1)">查询
94 94
                         </el-button>
95
+
96
+                        <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
95 97
                     </div>
96 98
 
97 99
                 </div>
@@ -346,13 +348,15 @@ export default {
346 348
         },
347 349
         // 导出
348 350
         exportSearchResult() {
349
-            RewardExcelApi(this.paramsData).then(res => {
350
-                console.log(res.data)
351
-                console.log(res.data.path)
352
-                window.open(res.data.path)
353
-                // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
351
+            this.tableFrom.is_excel = 1;
352
+            getYongJinCountApi(this.tableFrom).then(res => {
353
+                console.log( res.data)
354
+                console.log( res.data.path)
355
+                this.tableFrom.is_excel = 0;
356
+                this.$message.success('导出成功')
357
+                window.open( res.data.path)
354 358
             }).catch((res) => {
355
-
359
+                this.$message.error('导出失败');
356 360
             })
357 361
         },
358 362
 

+ 9 - 6
src/views/accounts/caiwutongji/fenrun/index.vue

@@ -47,6 +47,7 @@
47 47
                   <!-- <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button> -->
48 48
 
49 49
                   <el-button type="primary" size="small" @click="getList(1)" style="width: 100px; margin-top: 20px;">查询</el-button>
50
+                  <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
50 51
                 </div>
51 52
             </div>
52 53
 
@@ -238,13 +239,15 @@ export default {
238 239
         this.getList();
239 240
       },
240 241
       exportSearchResult() {
241
-        RewardExcelApi(this.paramsData).then(res => {
242
-          console.log( res.data)
243
-          console.log( res.data.path)
244
-          window.open( res.data.path)
245
-          // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
242
+        this.tableFrom.is_excel = 1;
243
+        getFenrunApi(this.tableFrom).then(res => {
244
+            console.log( res.data)
245
+            console.log( res.data.path)
246
+            this.tableFrom.is_excel = 0;
247
+            this.$message.success('导出成功')
248
+            window.open( res.data.path)
246 249
         }).catch((res) => {
247
-
250
+            this.$message.error('导出失败');
248 251
         })
249 252
       },
250 253
 

+ 10 - 6
src/views/accounts/caiwutongji/fugou/index.vue

@@ -73,6 +73,8 @@
73 73
                   <!-- <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button> -->
74 74
 
75 75
                   <el-button type="primary" size="small" @click="getList(1)" style="width: 100px; margin-top: 20px;">查询</el-button>
76
+                  <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
77
+                  
76 78
                 </div>
77 79
             </div>
78 80
 
@@ -284,13 +286,15 @@ export default {
284 286
         this.getList();
285 287
       },
286 288
       exportSearchResult() {
287
-        RewardExcelApi(this.paramsData).then(res => {
288
-          console.log( res.data)
289
-          console.log( res.data.path)
290
-          window.open( res.data.path)
291
-          // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
289
+        this.tableFrom.is_excel = 1;
290
+        getFugouCountApi(this.tableFrom).then(res => {
291
+            console.log( res.data)
292
+            console.log( res.data.path)
293
+            this.tableFrom.is_excel = 0;
294
+            this.$message.success('导出成功')
295
+            window.open( res.data.path)
292 296
         }).catch((res) => {
293
-
297
+            this.$message.error('导出失败');
294 298
         })
295 299
       },
296 300
 

+ 9 - 6
src/views/accounts/caiwutongji/hongbao/index.vue

@@ -47,6 +47,7 @@
47 47
                   <!-- <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button> -->
48 48
 
49 49
                   <el-button type="primary" size="small" @click="getList(1)" style="width: 100px; margin-top: 20px;">查询</el-button>
50
+                  <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
50 51
                 </div>
51 52
             </div>
52 53
 
@@ -237,13 +238,15 @@ export default {
237 238
         this.getList();
238 239
       },
239 240
       exportSearchResult() {
240
-        RewardExcelApi(this.paramsData).then(res => {
241
-          console.log( res.data)
242
-          console.log( res.data.path)
243
-          window.open( res.data.path)
244
-          // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
241
+        this.tableFrom.is_excel = 1;
242
+        getHongbaoCountApi(this.tableFrom).then(res => {
243
+            console.log( res.data)
244
+            console.log( res.data.path)
245
+            this.tableFrom.is_excel = 0;
246
+            this.$message.success('导出成功')
247
+            window.open( res.data.path)
245 248
         }).catch((res) => {
246
-
249
+            this.$message.error('导出失败');
247 250
         })
248 251
       },
249 252
 

+ 9 - 6
src/views/accounts/caiwutongji/jingdou/index.vue

@@ -48,6 +48,7 @@
48 48
                   <!-- <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button> -->
49 49
 
50 50
                   <el-button type="primary" size="small" @click="getList(1)" style="width: 100px; margin-top: 20px;">查询</el-button>
51
+                  <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
51 52
                 </div>
52 53
             </div>
53 54
 
@@ -238,13 +239,15 @@ export default {
238 239
         this.getList();
239 240
       },
240 241
       exportSearchResult() {
241
-        RewardExcelApi(this.paramsData).then(res => {
242
-          console.log( res.data)
243
-          console.log( res.data.path)
244
-          window.open( res.data.path)
245
-          // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
242
+        this.tableFrom.is_excel = 1;
243
+        getJingdouCountApi(this.tableFrom).then(res => {
244
+            console.log( res.data)
245
+            console.log( res.data.path)
246
+            this.tableFrom.is_excel = 0;
247
+            this.$message.success('导出成功')
248
+            window.open( res.data.path)
246 249
         }).catch((res) => {
247
-
250
+            this.$message.error('导出失败');
248 251
         })
249 252
       },
250 253
 

+ 10 - 6
src/views/accounts/caiwutongji/pension/index.vue

@@ -64,6 +64,8 @@
64 64
 
65 65
                         <el-button size="small" style="width: 100px; margin-top: 20px;" type="primary" @click="getList(1)">查询
66 66
                         </el-button>
67
+
68
+                        <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
67 69
                     </div>
68 70
 
69 71
                 </div>
@@ -272,13 +274,15 @@ export default {
272 274
             this.getList();
273 275
         },
274 276
         exportSearchResult() {
275
-            RewardExcelApi(this.paramsData).then(res => {
276
-                console.log(res.data)
277
-                console.log(res.data.path)
278
-                window.open(res.data.path)
279
-                // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
277
+            this.tableFrom.is_excel = 1;
278
+            getYongJinCountApi(this.tableFrom).then(res => {
279
+                console.log( res.data)
280
+                console.log( res.data.path)
281
+                this.tableFrom.is_excel = 0;
282
+                this.$message.success('导出成功')
283
+                window.open( res.data.path)
280 284
             }).catch((res) => {
281
-
285
+                this.$message.error('导出失败');
282 286
             })
283 287
         },
284 288
 

+ 6 - 5
src/views/accounts/caiwutongji/point/index.vue

@@ -45,9 +45,8 @@
45 45
 
46 46
                 <div class="bottom-button">
47 47
                   <el-button size="small" @click="reset" style="width: 100px; margin-top: 20px; border: 1px solid; " >重置</el-button>
48
-                  <!-- <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button> -->
49
-
50 48
                   <el-button type="primary" size="small" @click="getList(1)" style="width: 100px; margin-top: 20px;">查询</el-button>
49
+                  <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
51 50
                 </div>
52 51
             </div>
53 52
 
@@ -238,13 +237,15 @@ export default {
238 237
         this.getList();
239 238
       },
240 239
       exportSearchResult() {
241
-        RewardExcelApi(this.paramsData).then(res => {
240
+        this.tableFrom.is_excel = 1;
241
+        getPointCountApi(this.tableFrom).then(res => {
242 242
           console.log( res.data)
243 243
           console.log( res.data.path)
244
+          this.tableFrom.is_excel = 0;
245
+          this.$message.success('导出成功')
244 246
           window.open( res.data.path)
245
-          // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
246 247
         }).catch((res) => {
247
-
248
+          this.$message.error('导出失败');
248 249
         })
249 250
       },
250 251
 

+ 10 - 6
src/views/accounts/caiwutongji/pv/index.vue

@@ -47,6 +47,8 @@
47 47
                   <!-- <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button> -->
48 48
 
49 49
                   <el-button type="primary" size="small" @click="getList(1)" style="width: 100px; margin-top: 20px;">查询</el-button>
50
+
51
+                  <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
50 52
                 </div>
51 53
             </div>
52 54
 
@@ -237,13 +239,15 @@ export default {
237 239
         this.getList();
238 240
       },
239 241
       exportSearchResult() {
240
-        RewardExcelApi(this.paramsData).then(res => {
241
-          console.log( res.data)
242
-          console.log( res.data.path)
243
-          window.open( res.data.path)
244
-          // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
242
+        this.tableFrom.is_excel = 1;
243
+        getPvCountApi(this.tableFrom).then(res => {
244
+            console.log( res.data)
245
+            console.log( res.data.path)
246
+            this.tableFrom.is_excel = 0;
247
+            this.$message.success('导出成功')
248
+            window.open( res.data.path)
245 249
         }).catch((res) => {
246
-
250
+            this.$message.error('导出失败');
247 251
         })
248 252
       },
249 253
 

+ 9 - 6
src/views/accounts/caiwutongji/vr/index.vue

@@ -46,6 +46,7 @@
46 46
                   <!-- <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button> -->
47 47
 
48 48
                   <el-button type="primary" size="small" @click="getList(1)" style="width: 100px; margin-top: 20px;">查询</el-button>
49
+                  <el-button type="primary" size="small" @click="exportSearchResult" style="width: 100px; margin-top: 20px;">导出</el-button>
49 50
                 </div>
50 51
             </div>
51 52
 
@@ -235,13 +236,15 @@ export default {
235 236
         this.getList();
236 237
       },
237 238
       exportSearchResult() {
238
-        RewardExcelApi(this.paramsData).then(res => {
239
-          console.log( res.data)
240
-          console.log( res.data.path)
241
-          window.open( res.data.path)
242
-          // window.open(SettingMer.https + `/excel/download/0?token=` + getToken()+`&path=` + res.data.path)
239
+        this.tableFrom.is_excel = 1;
240
+        getVrCountApi(this.tableFrom).then(res => {
241
+            console.log( res.data)
242
+            console.log( res.data.path)
243
+            this.tableFrom.is_excel = 0;
244
+            this.$message.success('导出成功')
245
+            window.open( res.data.path)
243 246
         }).catch((res) => {
244
-
247
+            this.$message.error('导出失败');
245 248
         })
246 249
       },
247 250