微调
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts" name="ImportZip">
|
<script setup lang="ts" name="ImportZip">
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import type { UploadInstance, UploadProps, UploadRequestOptions } from 'element-plus'
|
import { ElMessage, ElMessageBox, type UploadInstance, type UploadProps, type UploadRequestOptions } from 'element-plus'
|
||||||
import http from '@/api'
|
import http from '@/api'
|
||||||
|
|
||||||
export interface ZipParameterProps {
|
export interface ZipParameterProps {
|
||||||
|
|||||||
@@ -234,8 +234,13 @@ const downloadFile = async () => {
|
|||||||
searchParam.searchBeginTime = startDate.value
|
searchParam.searchBeginTime = startDate.value
|
||||||
searchParam.searchEndTime = endDate.value
|
searchParam.searchEndTime = endDate.value
|
||||||
|
|
||||||
ElMessageBox.confirm('确认导出被检设备?', '温馨提示', {type: 'warning'}).then(() => {
|
|
||||||
const patternId = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id//获取数据字典中对应的id
|
ElMessageBox.confirm('确认导出被检设备?', '温馨提示', {
|
||||||
|
type: 'warning',
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消'
|
||||||
|
}).then(() => {
|
||||||
|
const patternId = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id
|
||||||
useDownload(exportPqDev, '被检设备导出数据', {...proTable.value?.searchParam, pattern: patternId}, false, '.xlsx')
|
useDownload(exportPqDev, '被检设备导出数据', {...proTable.value?.searchParam, pattern: patternId}, false, '.xlsx')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,7 +190,13 @@
|
|||||||
|
|
||||||
// 导出设备
|
// 导出设备
|
||||||
const downloadFile = async () => {
|
const downloadFile = async () => {
|
||||||
ElMessageBox.confirm('确认导出标准设备?', '温馨提示', {type: 'warning'}).then(() => {
|
|
||||||
|
|
||||||
|
ElMessageBox.confirm('确认导出标准设备?', '温馨提示', {
|
||||||
|
type: 'warning',
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消'
|
||||||
|
}).then(() => {
|
||||||
useDownload(exportPqStandardDev, '标准设备导出数据', {...proTable.value?.searchParam}, false, '.xlsx')
|
useDownload(exportPqStandardDev, '标准设备导出数据', {...proTable.value?.searchParam}, false, '.xlsx')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user