|
@@ -855,10 +855,14 @@ const unlockarchives = async () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const viewPdf = async (id) => {
|
|
const viewPdf = async (id) => {
|
|
- window.$message?.info('预览案卷需要合并pdf,需要一点时间')
|
|
|
|
|
|
+ const message = window.$message?.info({
|
|
|
|
+ message: '预览案卷需要合并pdf,需要一点时间',
|
|
|
|
+ duration: 0, // 设置为0表示不自动关闭
|
|
|
|
+ })
|
|
const { error, code, data, msg } = await tuningApi.printArchive({
|
|
const { error, code, data, msg } = await tuningApi.printArchive({
|
|
id: id,
|
|
id: id,
|
|
})
|
|
})
|
|
|
|
+ message?.close() // 接口完成后手动关闭提示
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
if (data) {
|
|
if (data) {
|
|
toPdfPage(data)
|
|
toPdfPage(data)
|