Browse Source

导出excel bug

zhuhao 1 năm trước cách đây
mục cha
commit
b9a32cafa7

+ 1 - 1
src/views/components/drawer/Field.vue

@@ -12,7 +12,7 @@
               <el-button type="primary" size="small" @click="handleAdd">新增</el-button>
             </el-form-item>
           </el-form>
-          <el-button class="margin-right_20" type="success" size="small" @click="handleImport">导入</el-button>
+          <!-- <el-button class="margin-right_20" type="success" size="small" @click="handleImport">导入</el-button> -->
         </el-header>
         <el-main class="project-field-main">
           <el-table v-loading="loading" :data="tableData" border header-row-class-name="custom-table-header">

+ 5 - 2
src/views/project/patentCollection/components/export/components/patent.vue

@@ -55,7 +55,7 @@ export default {
       field: [],
       // 按钮Loading
       btnLoading: false,
-      rightSelect:[],
+      rightSelect: [],
     }
   },
   async mounted() {
@@ -64,7 +64,10 @@ export default {
   methods: {
     // 获取栏位数据
     async getList() {
-      this.field = await this.$commonJS.getCustomField('patent', { projectId: this.projectId, taskId: this.taskId })
+      let field = await this.$commonJS.getCustomField('patent', { projectId: this.projectId, taskId: this.taskId })
+      this.field = field.filter(item => {
+        return item.name
+      })
     },
     // 导出
     handleExport() {