微调
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'>
|
||||
@@ -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