| <template> | 
|   <!-- <TableLayout v-permissions="['ext:planimportext:query']"> --> | 
|      <TableLayout> | 
|     <!-- 搜索表单 --> | 
|     <!-- 表格和分页 --> | 
|     <template v-slot:table-wrap> | 
|       <el-table | 
|         v-loading="isWorking.search" | 
|         :data="tableData" | 
|         stripe | 
|         @selection-change="handleSelectionChange" | 
|       > | 
|         <el-table-column type="selection" width="55"></el-table-column> | 
|         <el-table-column prop="fileName" label="导入文件" min-width="100px"></el-table-column> | 
|         <el-table-column prop="status" label="导入状态" min-width="100px"> | 
|            <template slot-scope="{row}"> | 
|             <span v-if="row.status == '1'" >成功</span> | 
|             <span v-if="row.status == '0'">失败</span> | 
|           </template> | 
|         </el-table-column> | 
|         <el-table-column prop="updateTime" label="导入时间" min-width="100px"></el-table-column> | 
|         <el-table-column prop="fileUrl" label="导入用户" min-width="100px"></el-table-column> | 
|         <el-table-column | 
|           label="操作" | 
|           min-width="120" | 
|           fixed="right" | 
|         > | 
|           <template slot-scope="{row}"> | 
|             <el-button type="text" @click="downLoadId(row)" style="color:#2E68EC">下载</el-button> | 
|           </template> | 
|         </el-table-column> | 
|       </el-table> | 
|       <pagination | 
|         @size-change="handleSizeChange" | 
|         @current-change="handlePageChange" | 
|         :pagination="tableData.pagination" | 
|       ></pagination> | 
|     </template> | 
|   </TableLayout> | 
| </template> | 
|   | 
| <script> | 
| import BaseTable from '@/components/base/BaseTable' | 
| import TableLayout from '@/layouts/TableLayout' | 
| import Pagination from '@/components/common/Pagination' | 
| export default { | 
|   name: 'PlanImportExt', | 
|   extends: BaseTable, | 
|   components: { TableLayout, Pagination }, | 
|   data () { | 
|     return { | 
|       options: [ | 
|         { name: '成功', id: '1' }, | 
|         { name: '失败', id: '2' } | 
|       ], | 
|       // 搜索 | 
|       searchForm: { | 
|         status: '', | 
|         fileName: '' | 
|       }, | 
|       tableData: [ | 
|         { fileName: '15d6sa1d2a.xlsx', status: '1', updateTime: '2022-5-13 11:30:20', fileUrl: '张三/生产部' } | 
|       ] | 
|     } | 
|   }, | 
|   created () { | 
|     this.config({ | 
|       module: '计划导入记录', | 
|       api: '/ext/planImportExt', | 
|       'field.id': 'id', | 
|       'field.main': 'name', | 
|       sorts: [{ direction: 'DESC', property: 'CREATE_TIME' }] | 
|     }) | 
|     this.search() | 
|   }, | 
|   methods: { | 
|     downLoadId () { | 
|   | 
|     } | 
|   } | 
| } | 
| </script> | 
| <style lang="scss" scoped> | 
| .divide{ | 
|   width: 100%; | 
|   height: 2px; | 
|   background-color: rgb(204, 204, 204); | 
| } | 
|   | 
| </style> |