|
@@ -46,7 +46,12 @@ const total = ref(0);
|
|
* @列表点击事件
|
|
* @列表点击事件
|
|
*/
|
|
*/
|
|
function handleSelect(val) {
|
|
function handleSelect(val) {
|
|
- putReportStatus({id:val.id})
|
|
|
|
|
|
+ if(!val.isRead){
|
|
|
|
+ putReportStatus({id:val.id})
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ reportInfoListApi()
|
|
|
|
+ },1000)
|
|
|
|
+ }
|
|
proxy.$tab.navigateTo("/pages/business/mhxf/fireReport/components/detailedPath?reportPath=" + val.reportPath);
|
|
proxy.$tab.navigateTo("/pages/business/mhxf/fireReport/components/detailedPath?reportPath=" + val.reportPath);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -76,7 +81,12 @@ function reportInfoListApi() {
|
|
function handleDownload(val) {
|
|
function handleDownload(val) {
|
|
proxy.$modal.loading("报告下载中,请耐心等待...");
|
|
proxy.$modal.loading("报告下载中,请耐心等待...");
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
- putReportStatus({id:val.id})
|
|
|
|
|
|
+ if(!val.isRead){
|
|
|
|
+ putReportStatus({id:val.id})
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ reportInfoListApi()
|
|
|
|
+ },1000)
|
|
|
|
+ }
|
|
window.open(val.reportPath);
|
|
window.open(val.reportPath);
|
|
// #endif
|
|
// #endif
|
|
|
|
|
|
@@ -86,7 +96,12 @@ function handleDownload(val) {
|
|
url: val.reportPath,
|
|
url: val.reportPath,
|
|
success: (res) => {
|
|
success: (res) => {
|
|
if (res.statusCode === 200) {
|
|
if (res.statusCode === 200) {
|
|
- putReportStatus({id:val.id})
|
|
|
|
|
|
+ if(!val.isRead){
|
|
|
|
+ putReportStatus({id:val.id})
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ reportInfoListApi()
|
|
|
|
+ },1000)
|
|
|
|
+ }
|
|
// 预览pdf文件
|
|
// 预览pdf文件
|
|
uni.openDocument({
|
|
uni.openDocument({
|
|
filePath: res.tempFilePath,
|
|
filePath: res.tempFilePath,
|
|
@@ -105,7 +120,12 @@ function handleDownload(val) {
|
|
url: val.reportPath,
|
|
url: val.reportPath,
|
|
success: (res) => {
|
|
success: (res) => {
|
|
if (res.statusCode === 200) {
|
|
if (res.statusCode === 200) {
|
|
- putReportStatus({id:val.id})
|
|
|
|
|
|
+ if(!val.isRead){
|
|
|
|
+ putReportStatus({id:val.id})
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ reportInfoListApi()
|
|
|
|
+ },1000)
|
|
|
|
+ }
|
|
// 保存pdf文件至手机,一般安卓端存储路径为:手机存储/dcim/camera文件夹下
|
|
// 保存pdf文件至手机,一般安卓端存储路径为:手机存储/dcim/camera文件夹下
|
|
uni.saveImageToPhotosAlbum({
|
|
uni.saveImageToPhotosAlbum({
|
|
filePath: res.tempFilePath,
|
|
filePath: res.tempFilePath,
|