被检设备批量导入功能、ImportExcel组件微调
This commit is contained in:
@@ -41,7 +41,7 @@ import DevicePopup from '@/views/machine/device/components/devicePopup.vue'
|
||||
import { CirclePlus, Delete, EditPen, Share, Download, Upload, View, Refresh } from '@element-plus/icons-vue'
|
||||
import deviceDataList from '@/api/device/deviceData'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import {getPqDevList, deletePqDev, exportPqDev, importPqDev} from '@/api/device/device.ts'
|
||||
import {getPqDevList, deletePqDev, exportPqDev, downloadTemplate,importPqDev} from '@/api/device/device.ts'
|
||||
import { reactive, ref } from 'vue'
|
||||
import { ElMessageBox } from 'element-plus'
|
||||
|
||||
@@ -161,8 +161,9 @@ const deviceImportExcel = ref<InstanceType<typeof ImportExcel> | null>(null)
|
||||
|
||||
const importFile=async ()=>{
|
||||
const params = {
|
||||
title: '设备',
|
||||
tempApi: exportPqDev,
|
||||
title: '被检设备',
|
||||
showCover: false,
|
||||
tempApi: downloadTemplate,
|
||||
importApi: importPqDev,
|
||||
getTableList: proTable.value?.getTableList,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user