Your Name
2022-08-24 bc2747387df0693aa46a55bb556985aaf881d843
src/views/doublePreventAction/riskLevelManage/riskSourceManage/index.vue
@@ -55,7 +55,7 @@
               <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" icon="el-icon-refresh" @click="refreshHandle">搜索</el-button>
               <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" icon="el-icon-plus" @click="showRiskSourceForm('','新增')">新增</el-button>
<!--               <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary"  @click="showImportDialog()">导入</el-button>-->
               <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary"  @click="showImportDialog()">导入</el-button>
<!--               <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary"  @click="exportToExcel()">导出</el-button>-->
           </div>
        <div class="table_content">
@@ -440,21 +440,28 @@
                        })
                    }
                    else{
                        let allData = res.data.result
                        let allData = res.data.result.map(item => {
                            return {
                                name:item.name,
                                level:this.levelList.find(i =>i.id === item.level).name,
                                depName:item.depName,
                                location:item.location,
                            }
                        })
                        import('@/vendor/Export2Excel').then((excel) => {
                            const tHeader = [
                                '生产装置名称',
                                '风险等级',
                                '可能导致的事故描述',
                                '区域位置',
                                '所属部门名称',
                                '区域位置',
                            ]
                            const filterVal = [
                                'name',
                                'level',
                                'accidentDesc',
                                'location',
                                'depName',
                                'location',
                            ]
                            const data = this.formatJson(filterVal, allData)
                            excel.export_json_to_excel({