| | |
| | | <div class="mt20"> |
| | | <el-button type="primary" @click="handleEdit()" icon="el-icon-plus" |
| | | v-permissions="['business:ywpatrolline:create']">新建</el-button> |
| | | <el-button type="primary" v-permissions="['business:ywdevice:importExcel']" |
| | | @click="$refs.deviceImport.open('设备批量导入')">批量导入</el-button> |
| | | </div> |
| | | <el-table v-loading="loading" :data="list" stripe> |
| | | <el-table-column prop="code" label="设备编号" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="name" label="设备名称" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="deviceNum" label="设备数量" min-width="90" show-overflow-tooltip /> |
| | | <el-table-column prop="categoryName" label="设备分类" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="modelNo" label="设备型号" min-width="100" show-overflow-tooltip /> |
| | | <el-table-column prop="realName" label="管理员" min-width="100" show-overflow-tooltip /> |
| | |
| | | </div> |
| | | <Edit v-if="showEdit" ref="EditRef" @success="getList" @close="showEdit = false" /> |
| | | <Detail ref="DetailRef" /> |
| | | <OperaDeviceImportWindow ref="deviceImport" @success="getList(1)" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import QueryForm from '@/components/common/QueryForm' |
| | | import Edit from './components/deviceEdit' |
| | | import Detail from './components/deviceDetail' |
| | | import OperaDeviceImportWindow from '@/components/business/OperaDeviceImportWindow' |
| | | import { fetchList, deleteById } from '@/api/Inspection/device' |
| | | export default { |
| | | components: { |
| | | Pagination, |
| | | QueryForm, |
| | | Edit, |
| | | Detail |
| | | Detail, |
| | | OperaDeviceImportWindow |
| | | }, |
| | | data() { |
| | | return { |