许成详 6 年前
父节点
当前提交
c28d700730

+ 1
- 1
src/components/dashboardList/page.scss 查看文件

@@ -10,9 +10,9 @@
10 10
       }
11 11
       >div{
12 12
         width: 100%;
13
+        height: 130px;
13 14
         position: relative;
14 15
         overflow: hidden;
15
-        padding-bottom: 30%;
16 16
         border-radius: 10px;
17 17
         background: #ccc;
18 18
         >div{

+ 5
- 1
src/pages/system/dataStatistics/cardCouponList/index.vue 查看文件

@@ -37,7 +37,7 @@
37 37
           type="primary" @click="search">搜索</el-button>
38 38
         <el-button
39 39
           size="mini"
40
-          type="success" @click="search">导出Excel</el-button>
40
+          type="success" @click="exportExcel">导出Excel</el-button>
41 41
       </div>
42 42
       <div class="moreFilter"></div>
43 43
     </div>
@@ -153,6 +153,7 @@ export default {
153 153
   methods: {
154 154
     ...mapStaActions([
155 155
       'getCardCouponList',
156
+      'getCardCouponListExcel',
156 157
     ]),
157 158
     search () { // 搜索
158 159
       this.page = 1
@@ -169,6 +170,9 @@ export default {
169 170
         this.total = res.total
170 171
       })
171 172
     },
173
+    exportExcel () {
174
+      window.location.href = `${this.toolClass.ReplaceOrg(this.$api.statistics.cardCouponListExcel.url)}?token=${localStorage.getItem('JWT')}`
175
+    },
172 176
   }
173 177
 }
174 178
 </script>

+ 9
- 3
src/pages/system/dataStatistics/cardCouponUsedList/index.vue 查看文件

@@ -70,7 +70,7 @@
70 70
           type="primary" @click="search">搜索</el-button>
71 71
         <el-button
72 72
           size="mini"
73
-          type="success" @click="search">导出Excel</el-button>
73
+          type="success" @click="exportExcel">导出Excel</el-button>
74 74
       </div>
75 75
       <div class="moreFilter"></div>
76 76
     </div>
@@ -95,7 +95,7 @@
95 95
           prop="ReceivingType"
96 96
           label="获取方式">
97 97
           <template slot-scope="scope">
98
-            {{scope.row.ReceivingType === 'system' ? '系统' : scope.row.ReceivingType === 'case' ? '案场' : scope.row.ReceivingType === 'channel' ? '渠道' : ''}}
98
+            {{scope.row.ReceivingType === 'event' ? '系统' : scope.row.ReceivingType === 'case' ? '案场' : scope.row.ReceivingType === 'channel' ? '渠道' : scope.row.ReceivingType === 'give' ? '后台赠送' : ''}}
99 99
           </template>
100 100
         </el-table-column>
101 101
         <el-table-column
@@ -186,7 +186,10 @@ export default {
186 186
         id: 'channel'
187 187
       }, {
188 188
         value: '系统',
189
-        id: 'system'
189
+        id: 'event'
190
+      }, {
191
+        value: '后台赠送',
192
+        id: 'give'
190 193
       }],
191 194
       statusList: [{
192 195
         value: '不限',
@@ -250,6 +253,9 @@ export default {
250 253
         this.total = res.total
251 254
       })
252 255
     },
256
+    exportExcel () {
257
+      window.location.href = `${this.toolClass.ReplaceOrg(this.$api.statistics.cardCouponUsedListExcel.url)}?token=${localStorage.getItem('JWT')}`
258
+    },
253 259
   }
254 260
 }
255 261
 </script>

+ 4
- 1
src/pages/system/dataStatistics/courseOrderList/index.vue 查看文件

@@ -53,7 +53,7 @@
53 53
           type="primary" @click="search">搜索</el-button>
54 54
         <el-button
55 55
           size="mini"
56
-          type="success" @click="search">导出Excel</el-button>
56
+          type="success" @click="exportExcel">导出Excel</el-button>
57 57
       </div>
58 58
       <div class="moreFilter"></div>
59 59
     </div>
@@ -198,6 +198,9 @@ export default {
198 198
         this.total = res.total
199 199
       })
200 200
     },
201
+    exportExcel () {
202
+      window.location.href = `${this.toolClass.ReplaceOrg(this.$api.statistics.courseOrderExcel.url)}?token=${localStorage.getItem('JWT')}`
203
+    },
201 204
   }
202 205
 }
203 206
 </script>

+ 4
- 1
src/pages/system/dataStatistics/courseStatisticsList/index.vue 查看文件

@@ -37,7 +37,7 @@
37 37
           type="primary" @click="search">搜索</el-button>
38 38
         <el-button
39 39
           size="mini"
40
-          type="success" @click="search">导出Excel</el-button>
40
+          type="success" @click="exportExcel">导出Excel</el-button>
41 41
       </div>
42 42
       <div class="moreFilter"></div>
43 43
     </div>
@@ -172,6 +172,9 @@ export default {
172 172
         this.total = res.total
173 173
       })
174 174
     },
175
+    exportExcel () {
176
+      window.location.href = `${this.toolClass.ReplaceOrg(this.$api.statistics.courseListExcel.url)}?token=${localStorage.getItem('JWT')}`
177
+    },
175 178
   }
176 179
 }
177 180
 </script>

+ 5
- 2
src/pages/system/dataStatistics/courseVerifyList/index.vue 查看文件

@@ -46,7 +46,7 @@
46 46
           type="primary" @click="search">搜索</el-button>
47 47
         <el-button
48 48
           size="mini"
49
-          type="success" @click="search">导出Excel</el-button>
49
+          type="success" @click="exportExcel">导出Excel</el-button>
50 50
       </div>
51 51
       <div class="moreFilter"></div>
52 52
     </div>
@@ -192,11 +192,14 @@ export default {
192 192
     },
193 193
     getList () {
194 194
       this.getCourseVerifyList(this.postData).then((res) => {
195
-        console.log(JSON.stringify(res))
195
+        // console.log(JSON.stringify(res))
196 196
         this.postData.page = res.page
197 197
         this.total = res.total
198 198
       })
199 199
     },
200
+    exportExcel () {
201
+      window.location.href = `${this.toolClass.ReplaceOrg(this.$api.statistics.courseVerifyListExcel.url)}?token=${localStorage.getItem('JWT')}`
202
+    },
200 203
   }
201 204
 }
202 205
 </script>

+ 4
- 1
src/pages/system/dataStatistics/goodsOrderList/index.vue 查看文件

@@ -56,7 +56,7 @@
56 56
           type="primary" @click="search">搜索</el-button>
57 57
         <el-button
58 58
           size="mini"
59
-          type="success" @click="search">导出Excel</el-button>
59
+          type="success" @click="exportExcel">导出Excel</el-button>
60 60
       </div>
61 61
       <div class="moreFilter"></div>
62 62
     </div>
@@ -214,6 +214,9 @@ export default {
214 214
         this.total = res.total
215 215
       })
216 216
     },
217
+    exportExcel () {
218
+      window.location.href = `${this.toolClass.ReplaceOrg(this.$api.statistics.goodsOrderExcel.url)}?token=${localStorage.getItem('JWT')}`
219
+    },
217 220
   }
218 221
 }
219 222
 </script>

+ 4
- 1
src/pages/system/dataStatistics/goodsStatisticsList/index.vue 查看文件

@@ -37,7 +37,7 @@
37 37
           type="primary" @click="search">搜索</el-button>
38 38
         <el-button
39 39
           size="mini"
40
-          type="success" @click="search">导出Excel</el-button>
40
+          type="success" @click="exportExcel">导出Excel</el-button>
41 41
       </div>
42 42
       <div class="moreFilter"></div>
43 43
     </div>
@@ -160,6 +160,9 @@ export default {
160 160
         this.total = res.total
161 161
       })
162 162
     },
163
+    exportExcel () {
164
+      window.location.href = `${this.toolClass.ReplaceOrg(this.$api.statistics.goodsExcel.url)}?token=${localStorage.getItem('JWT')}`
165
+    },
163 166
   }
164 167
 }
165 168
 </script>

+ 12
- 0
src/store/sta/sta.js 查看文件

@@ -118,6 +118,18 @@ export default {
118 118
         }).catch(reject)
119 119
       })
120 120
     },
121
+    getCardCouponListExcel ({ commit }, payload) {
122
+      return new Promise((resolve, reject) => {
123
+        ajax(api.statistics.cardCouponListExcel.url, {
124
+          method: api.statistics.cardCouponListExcel.method,
125
+          queryData: {
126
+            ...payload,
127
+          }
128
+        }).then(res => {
129
+          resolve(res)
130
+        }).catch(reject)
131
+      })
132
+    },
121 133
     getCardCouponUsedList ({ commit }, payload) {
122 134
       return new Promise((resolve, reject) => {
123 135
         ajax(api.statistics.cardCouponUsedList.url, {

+ 28
- 0
src/util/api.js 查看文件

@@ -695,30 +695,58 @@ const $api = {
695 695
       method: 'get',
696 696
       url: `${baseUrl}${common}/statistics/goods`
697 697
     },
698
+    goodsExcel: {
699
+      method: 'get',
700
+      url: `${baseUrl}${common}/statistics/goods/excel`
701
+    },
698 702
     goodsOrder: {
699 703
       method: 'get',
700 704
       url: `${baseUrl}${common}/statistics/goodsorders`
701 705
     },
706
+    goodsOrderExcel: {
707
+      method: 'get',
708
+      url: `${baseUrl}${common}/statistics/goodsorders/excel`
709
+    },
702 710
     courseOrder: {
703 711
       method: 'get',
704 712
       url: `${baseUrl}${common}/statistics/courseorders`
705 713
     },
714
+    courseOrderExcel: {
715
+      method: 'get',
716
+      url: `${baseUrl}${common}/statistics/courseorders/excel`
717
+    },
706 718
     courseList: {
707 719
       method: 'get',
708 720
       url: `${baseUrl}${common}/statistics/courses`
709 721
     },
722
+    courseListExcel: {
723
+      method: 'get',
724
+      url: `${baseUrl}${common}/statistics/courses/excel`
725
+    },
710 726
     cardCouponList: {
711 727
       method: 'get',
712 728
       url: `${baseUrl}${common}/statistics/cardcoupon`
713 729
     },
730
+    cardCouponListExcel: {
731
+      method: 'get',
732
+      url: `${baseUrl}${common}/statistics/cardcoupon/excel`
733
+    },
714 734
     cardCouponUsedList: {
715 735
       method: 'get',
716 736
       url: `${baseUrl}${common}/statistics/cardcouponused`
717 737
     },
738
+    cardCouponUsedListExcel: {
739
+      method: 'get',
740
+      url: `${baseUrl}${common}/statistics/cardcouponused/excel`
741
+    },
718 742
     courseVerifyList: {
719 743
       method: 'get',
720 744
       url: `${baseUrl}${common}/statistics/cardcouponverify`
721 745
     },
746
+    courseVerifyListExcel: {
747
+      method: 'get',
748
+      url: `${baseUrl}${common}/statistics/cardcouponverify/excel`
749
+    },
722 750
   }
723 751
 }
724 752
 export default $api