|
@@ -199,6 +199,10 @@ const queryLogTimeTreeList = async () => {
|
|
|
|
|
|
//查看
|
|
|
const handleTableQuery = async (item) => {
|
|
|
+ if (item.pdfUrl) {
|
|
|
+ toPdfPreview(item.pdfUrl).then()
|
|
|
+ return false
|
|
|
+ }
|
|
|
uni.showLoading({title: '获取pdf文件中...', mask: true});
|
|
|
const {excelId, primaryKeyId} = tabItem.value
|
|
|
const { error, code, data } = await mainApi.getBussPdfInfo({
|
|
@@ -211,7 +215,7 @@ const handleTableQuery = async (item) => {
|
|
|
const resData = isString(data) ? data || '' : ''
|
|
|
uni.hideLoading();
|
|
|
if (!error && code === 200 && resData) {
|
|
|
- toPdfPreview(resData)
|
|
|
+ toPdfPreview(resData).then()
|
|
|
} else {
|
|
|
errorToast('暂无PDF,无法预览')
|
|
|
}
|