zcy 4 年 前
コミット
b7022d68b1

+ 1 - 0
src/mixin/listMixin.js

@@ -260,6 +260,7 @@ export const listMixin = {
     },
     /* 导出 */
     handleExportXls2() {
+      debugger
       const paramsStr = encodeURI(JSON.stringify(this.getQueryParams()))
       const url = `${process.env.VUE_APP_BASE_API}/${this.url.exportXlsUrl}?paramsStr=${paramsStr}`
       window.location.href = url

+ 2 - 2
src/views/catenary/checklist/view/fd/index.vue

@@ -4,7 +4,7 @@
     <div class="table-page-search-wrapper">
       <!-- 操作按钮区域 -->
       <div class="table-operator" style="margin: 5px 0;float: right">
-        <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>
+        <a-button ghost type="danger" icon="download" @click="handleExportXls()">导出</a-button>
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <a-menu slot="overlay">
             <a-menu-item key="1" @click="batchDel"><a-icon type="delete" />删除</a-menu-item>
@@ -97,7 +97,7 @@ export default {
       url: {
         list: '/business/catenary/bus/jcb/fdfxjyq/list',
         tree: '/system/dept/treeSelect',
-        exportXlsUrl: '/exportXlsUrl'
+        exportXlsUrl: '/business/catenary/bus/jcb/fdfxjyq/export'
       }
     }
   },

+ 4 - 4
src/views/catenary/fault/index.vue

@@ -55,10 +55,10 @@
     <!-- 操作按钮区域 -->
     <div class="table-operator" style="margin: 15px 0">
       <a-button type="primary" icon="plus" @click="handleAdd">新增</a-button>
-      <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>
-      <a-upload name="file" :show-upload-list="false" :multiple="false" :headers="tokenHeader" :action="url.importExcelUrl" @change="handleImportExcel">
-        <a-button ghost type="danger" icon="import">导入</a-button>
-      </a-upload>
+<!--      <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>-->
+<!--      <a-upload name="file" :show-upload-list="false" :multiple="false" :headers="tokenHeader" :action="url.importExcelUrl" @change="handleImportExcel">-->
+<!--        <a-button ghost type="danger" icon="import">导入</a-button>-->
+<!--      </a-upload>-->
 
       <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">

+ 1 - 1
src/views/catenary/record/index.vue

@@ -4,7 +4,7 @@
     <div class="table-page-search-wrapper">
       <!-- 操作按钮区域 -->
       <div class="table-operator" style="margin: 5px 0;float: right">
-        <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>
+<!--        <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>-->
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <a-menu slot="overlay">
             <a-menu-item key="1" @click="batchDel"><a-icon type="delete" />删除</a-menu-item>

+ 4 - 4
src/views/catenary/stand/index.vue

@@ -55,10 +55,10 @@
     <!-- 操作按钮区域 -->
     <div class="table-operator" style="margin: 15px 0">
       <a-button type="primary" icon="plus" @click="handleAdd">新增</a-button>
-      <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>
-      <a-upload name="file" :show-upload-list="false" :multiple="false" :headers="tokenHeader" :action="url.importExcelUrl" @change="handleImportExcel">
-        <a-button ghost type="danger" icon="import">导入</a-button>
-      </a-upload>
+<!--      <a-button ghost type="danger" icon="download" @click="handleExportXls('角色信息')">导出</a-button>-->
+<!--      <a-upload name="file" :show-upload-list="false" :multiple="false" :headers="tokenHeader" :action="url.importExcelUrl" @change="handleImportExcel">-->
+<!--        <a-button ghost type="danger" icon="import">导入</a-button>-->
+<!--      </a-upload>-->
 
       <a-dropdown v-if="selectedRowKeys.length > 0">
         <a-menu slot="overlay">