| | |
| | | {{ scope.row.recordTime ? scope.row.recordTime.split(' ')[0] : '-' }} |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="action" |
| | | label="操作" |
| | | align="=center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="primary" size="mini" @click="exportInfo(scope.row)">导出详情</el-button> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | v-show="total > 0" |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { getPage |
| | | import { getPage,exportInfo |
| | | } from "@/api/platform/demeritRecord" |
| | | export default { |
| | | name: 'DemeritRecordTable', |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | exportInfo(row){ |
| | | console.log(row) |
| | | let name = row.deptName + '设备详情.xlsx' |
| | | this.download('demeritRecord/exportInfo/' +row.id, |
| | | {}, |
| | | `${name}`) |
| | | }, |
| | | init(){ |
| | | // 初始化查询参数 |
| | | this.getPage(); |