Browse Source

留言统计明细表新增导出

qymljy 2 months ago
parent
commit
58fe10aa12

+ 8 - 1
src/WebsiteManagement/dataStatistics/modules/header.vue

@@ -27,15 +27,19 @@
       @change="pickerChange"
     >
     </el-date-picker>
+    <exportFile v-if="isExport" class="inline-16" style="margin-left: 10px" :param="param" :columns="columns" fileName="留言统计明细表"></exportFile>
   </div>
 </template>
 
 <script>
+import exportFile from '@/components/export_file/index5'
 export default {
   name: "header",
+  components:{exportFile},
   props: {
     title: String,
     subTitle: String,
+    isExport:Boolean,
     shortcutDate: {
       type: Array,
       default: () => [
@@ -54,6 +58,9 @@ export default {
       ],
     },
     returnWhere: Function,
+    param:Object,
+    columns:Object,
+    fileName:String
   },
   data() {
     return {
@@ -126,4 +133,4 @@ export default {
 /deep/ .el-date-editor .el-range__close-icon {
   width: 0 !important;
 }
-</style>
+</style>

+ 6 - 1
src/WebsiteManagement/dataStatistics/modules/statisticalAnalysisOfMessage.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <div class="card">
-      <cord-top title="留言统计明细表" @returnWhere="getList" />
+      <cord-top title="留言统计明细表" @returnWhere="getList" :isExport="true" :param="param" :columns="tablecols" fileName="留言统计明细表" />
       <div style="height: 20px" />
       <tableTemplate
         ref="table"
@@ -68,6 +68,10 @@ export default {
         nocache: true,
         type: "近七日",
       },
+      param:{
+        id:'2025021108560703',
+        content:{}
+      }
     };
   },
   created() {
@@ -103,6 +107,7 @@ export default {
           this.content.total = res.total;
           this.content.pageNumber = res.pageNumber;
           this.content.pageSize = res.pageSize;
+          this.param.content = this.content
         });
     },
     handleSizeChange(pageSize) {