|
@@ -43,6 +43,8 @@ import { onLoad, onShow, onReady, onHide, onLaunch, onUnload, onNavigationBarBut
|
|
|
import { ref, reactive, computed, getCurrentInstance, toRefs, inject } from "vue";
|
|
|
/*----------------------------------接口引入-----------------------------------*/
|
|
|
import { getMceList, updateMceReceiveStatus } from "@/api/mine/info.js";
|
|
|
+import { projectApi } from "@/api/business/project.js";
|
|
|
+
|
|
|
/*----------------------------------组件引入-----------------------------------*/
|
|
|
/*----------------------------------store引入-----------------------------------*/
|
|
|
/*----------------------------------公共方法引入-----------------------------------*/
|
|
@@ -70,7 +72,20 @@ function goContentDetails(e) {
|
|
|
if (e.infoType == 4) {
|
|
|
proxy.$tab.navigateTo(`/pages/business/fireIot/alarmManage/alarmDetails/index?contentId=${e.contentId}`).then(() => {});
|
|
|
} else if (e.infoType == 5) {
|
|
|
- proxy.$tab.navigateTo(`/pages/business/common/projectMange/record/details?reportId=${e.moduleId}`).then(() => {});
|
|
|
+
|
|
|
+ if (e.readFlag != 1) {
|
|
|
+ projectApi()
|
|
|
+ .ReportRecordReadFlag({ reportId: e.id })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.status == "SUCCESS") {
|
|
|
+ proxy.$tab.navigateTo(`/pages/business/common/projectMange/record/details?reportId=${e.moduleId}`);
|
|
|
+ } else {
|
|
|
+ proxy.$modal.msgError("读取异常");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ proxy.$tab.navigateTo(`/pages/business/common/projectMange/record/details?reportId=${e.moduleId}`);
|
|
|
+ }
|
|
|
} else {
|
|
|
proxy.$tab.navigateTo(`/pages/common/appMessage/details?contentId=${e.contentId}`).then(() => {});
|
|
|
}
|