Browse Source

:sparkles: 再次修改导出table名字

limengbo 3 years ago
parent
commit
6a6220113e
4 changed files with 4 additions and 4 deletions
  1. 1 1
      src/pages/mobile/Mobile.vue
  2. 1 1
      src/pages/order/Order.vue
  3. 1 1
      src/pages/skill/Skill.vue
  4. 1 1
      src/pages/tv/TV.vue

+ 1 - 1
src/pages/mobile/Mobile.vue

@@ -278,7 +278,7 @@ export default {
     onExportExcel() {
       const nameList = this.efunChannelList.filter((item) => item.code === this.efunParams.channel)[0]
       const name = (nameList && nameList.name) || ''
-      const date = formatDate(new Date(), 7)
+      const date = this.efunParams.startDate + '至' + this.efunParams.endDate
       downTable('table', [
           {wch: 15}, // "characters"
           {wch: 6},

+ 1 - 1
src/pages/order/Order.vue

@@ -342,7 +342,7 @@ export default {
         const name = (nameList && nameList.title) || ''
         const list = this.productList.filter((item) => item.id === this.orderParams.packageId)[0]
         const productName = list && list.title ? '-' + list.title : ''
-        const date = formatDate(new Date(), 7)
+        const date = this.orderParams.startDate + '至' + this.orderParams.endDate
         downTable('table', [
           {wch: 15}, // "characters"
           {wch: 6},

+ 1 - 1
src/pages/skill/Skill.vue

@@ -600,7 +600,7 @@ export default {
         const name = (nameList && nameList.title) || ''
         const list = this.skillList.filter((item) => item.skillId === this.skillParams.skillId)[0] || ''
         const productName = list && list.skillName ? '-' + list.skillName : ''
-        const date = formatDate(new Date(), 7)
+        const date = this.skillParams.startDate + '至' + this.skillParams.endDate
         downTable('table', [
           {wch: 15}, // "characters"
           {wch: 6},

+ 1 - 1
src/pages/tv/TV.vue

@@ -277,7 +277,7 @@ export default {
     onExportExcel() {
       const nameList = this.efunChannelList.filter((item) => item.code === this.efunParams.channel)[0]
       const name = (nameList && nameList.name) || ''
-      const date = formatDate(new Date(), 7)
+      const date = this.efunParams.startDate + '至' + this.efunParams.endDate
         downTable('table', [
           {wch: 15}, // "characters"
           {wch: 6},