微调
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
</ProTable>
|
||||
</div>
|
||||
<DevicePopup :refresh-table='proTable?.getTableList' ref='devicePopup' />
|
||||
<ImportExcel ref='deviceImportExcel' />
|
||||
</template>
|
||||
|
||||
<script setup lang='tsx' name='useRole'>
|
||||
@@ -40,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, importPqDev} from '@/api/device/device.ts'
|
||||
import { reactive, ref } from 'vue'
|
||||
|
||||
const dictStore = useDictStore()
|
||||
@@ -147,5 +148,17 @@ const handleDelete = async (params: Device.ResPqDev) => {
|
||||
proTable.value?.getTableList()
|
||||
}
|
||||
|
||||
|
||||
const deviceImportExcel = ref<InstanceType<typeof ImportExcel> | null>("deviceExcel")
|
||||
|
||||
const importFile=async ()=>{
|
||||
const params = {
|
||||
title: '设备',
|
||||
tempApi: exportPqDev,
|
||||
importApi: importPqDev,
|
||||
getTableList: proTable.value?.getTableList,
|
||||
}
|
||||
deviceImportExcel.value?.acceptParams(params)
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user