| | |
| | | </el-icon> |
| | | 新增巡检点 |
| | | </el-button> |
| | | <el-button type="primary" :icon="Upload" size="default" @click="openUploadDialog('点')">导入</el-button> |
| | | </div> |
| | | <el-table :data="inspectPointData.data" style="width: 100%"> |
| | | <el-table-column type="index" label="序号" width="60" /> |
| | |
| | | <br /> |
| | | </el-card> |
| | | <inspectPointDialog ref="inspectPointDialogRef" @refreshInspectPoint="initInspectPointTableData" /> |
| | | <upload-dialog ref="uploadRef" @refresh="initInspectPointTableData"></upload-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { toRefs, reactive, onMounted, ref, defineComponent } from 'vue'; |
| | | import { ElMessageBox, ElMessage } from 'element-plus'; |
| | | import inspectPointDialog from './components/inspectPointDialog.vue'; |
| | | import uploadDialog from '/@/views/intellectInspect/inspectTaskManage/inspectTask/components/upload.vue' |
| | | import { inspectPointApi } from '/@/api/intellectInspectSystem/inspectPointManage'; |
| | | import { facilityAreaApi } from '/@/api/intellectInspectSystem/facilityAreaManage'; |
| | | import { Edit, View, Plus, Delete, Refresh, Search, Download } from '@element-plus/icons-vue'; |
| | | import { Edit, View, Plus, Delete, Refresh, Search, Download, Upload } from '@element-plus/icons-vue'; |
| | | import { RFIDApi } from '/@/api/intellectInspectSystem/RFID'; |
| | | |
| | | // 定义接口来定义对象的类型 |
| | |
| | | |
| | | export default defineComponent({ |
| | | name: 'productionDevice', |
| | | components: { inspectPointDialog, Edit, Delete }, |
| | | components: { inspectPointDialog, Edit, Delete, uploadDialog }, |
| | | setup() { |
| | | const inspectPointDialogRef = ref(); |
| | | const uploadRef = ref() |
| | | const state = reactive<TableDataState>({ |
| | | inspectPointData: { |
| | | data: [], |
| | |
| | | const onOpenDialogRef = (type: string, value: any) => { |
| | | inspectPointDialogRef.value.openInspectPointDialog(type, value, state.regionNameList, state.RFIDList); |
| | | }; |
| | | |
| | | const openUploadDialog = (type: string)=>{ |
| | | uploadRef.value.open(type) |
| | | } |
| | | |
| | | // 删除 |
| | | const onDelProductionDevice = (row: any) => { |
| | | ElMessageBox.confirm(`此操作将永久删除该巡检点:“${row.code}”,是否继续?`, '提示', { |
| | |
| | | return { |
| | | Edit, |
| | | Delete, |
| | | Upload, |
| | | uploadRef, |
| | | openUploadDialog, |
| | | handleSearch, |
| | | onOpenDialogRef, |
| | | onHandleSizeChange, |