Explorar el Código

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

limengbo hace 4 años
padre
commit
6a6220113e
Se han modificado 4 ficheros con 4 adiciones y 4 borrados
  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},