소스 검색

1. 新增导出

MONSTER-ygh 9 달 전
부모
커밋
84f5afb207

+ 6 - 6
src/views/tourism/orderManagement/cateringOrders/cateringOrders.vue

@@ -98,16 +98,16 @@
             </el-form>
   
           <el-row :gutter="10" class="mb8">
-            <!-- <el-col :span="1.5">
+            <el-col :span="1.5">
                 <el-button
                   type="warning"
                   plain
                   icon="el-icon-download"
                   size="mini"
-                  @click="repastOrderAcceptFun"
+                  @click="handleExport"
                   v-hasPermi="configPermi.export"
                 >导出</el-button>
-            </el-col> -->
+            </el-col>
             <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
           </el-row>
 
@@ -209,7 +209,7 @@
           details: ['orderManagement:cateringOrders:details'], // 详情权限
           delect: [''], // 删除权限
           upload: [''],// 导入权限
-          export: [''],// 导出权限
+          export: ['orderManagement:cateringOrders:export'],// 导出权限
           repastOrderAccept: ['orderManagement:cateringOrders:repastOrderAccept'],
         },
         configUrl: {
@@ -217,7 +217,7 @@
           delect: '', // 删除地址
           upload: '',// 导入地址
           download:'', // 下载模板地址
-          export: '',// 导出地址
+          export: '/order/orderInfo/repastOrderListExport',// 导出地址
           updateStatusById: '',
           repastOrderAccept: '/order/orderInfo/repastOrderAccept', //  接单/拒单
         },
@@ -358,7 +358,7 @@
       /** 导出按钮操作 */
       handleExport() {
         let params = this.paramsFormat({...this.queryParams},true)
-        this.download(this.configUrl.export, {
+        this.downloadGet(this.configUrl.export, {
           ...params
         }, `${this.title }_${new Date().getTime()}.xlsx`)
       },

+ 6 - 6
src/views/tourism/orderManagement/hotelsOrders/hotelsOrders.vue

@@ -116,16 +116,16 @@
             </el-form>
   
           <el-row :gutter="10" class="mb8">
-            <!-- <el-col :span="1.5">
+            <el-col :span="1.5">
                 <el-button
                   type="warning"
                   plain
                   icon="el-icon-download"
                   size="mini"
-                  @click="repastOrderAcceptFun"
+                  @click="handleExport"
                   v-hasPermi="configPermi.export"
                 >导出</el-button>
-            </el-col> -->
+            </el-col>
             <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
           </el-row>
 
@@ -228,7 +228,7 @@
           details: ['orderManagement:hotelsOrders:details'], // 详情权限
           delect: [''], // 删除权限
           upload: [''],// 导入权限
-          export: [''],// 导出权限
+          export: ['orderManagement:hotelsOrders:export'],// 导出权限
           delivery: [''],// 发货
           repastOrderAccept: ['orderManagement:hotelsOrders:repastOrderAccept'],
         },
@@ -237,7 +237,7 @@
           delect: '', // 删除地址
           upload: '',// 导入地址
           download:'', // 下载模板地址
-          export: '',// 导出地址
+          export: '/order/orderInfo/hotelOrderListExport',// 导出地址
           updateStatusById: '',
           repastOrderAccept: '/order/orderInfo/repastOrderAccept', //  接单/拒单
         },
@@ -381,7 +381,7 @@
       /** 导出按钮操作 */
       handleExport() {
         let params = this.paramsFormat({...this.queryParams},true)
-        this.download(this.configUrl.export, {
+        this.downloadGet(this.configUrl.export, {
           ...params
         }, `${this.title }_${new Date().getTime()}.xlsx`)
       },

+ 6 - 6
src/views/tourism/orderManagement/productOrders/productOrders.vue

@@ -88,16 +88,16 @@
             </el-form>
   
           <el-row :gutter="10" class="mb8">
-            <!-- <el-col :span="1.5">
+            <el-col :span="1.5">
                 <el-button
                   type="warning"
                   plain
                   icon="el-icon-download"
                   size="mini"
-                  @click="releaseFormFun"
+                  @click="handleExport"
                   v-hasPermi="configPermi.export"
                 >导出</el-button>
-            </el-col> -->
+            </el-col>
             <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
           </el-row>
 
@@ -185,7 +185,7 @@
           details: ['orderManagement:productOrders:details'], // 详情权限
           delect: [''], // 删除权限
           upload: [''],// 导入权限
-          export: [''],// 导出权限
+          export: ['orderManagement:productOrders:export'],// 导出权限
           delivery: ['orderManagement:productOrders:delivery'],// 发货
         },
         configUrl: {
@@ -193,7 +193,7 @@
           delect: '', // 删除地址
           upload: '',// 导入地址
           download:'', // 下载模板地址
-          export: '',// 导出地址
+          export: '/order/orderInfo/orderGoodsExport',// 导出地址
           updateStatusById: '',
         },
         // 遮罩层
@@ -330,7 +330,7 @@
       /** 导出按钮操作 */
       handleExport() {
         let params = this.paramsFormat({...this.queryParams},true)
-        this.download(this.configUrl.export, {
+        this.downloadGet(this.configUrl.export, {
           ...params
         }, `${this.title }_${new Date().getTime()}.xlsx`)
       },