|
@@ -20,14 +20,13 @@ getSystemConfig()
|
|
|
|
|
|
// 获取用户信息
|
|
|
let userInfo = null
|
|
|
-function getUserInfo() {
|
|
|
- apiUser.userInfo().then(res => {
|
|
|
- if (res.Ret === 200) {
|
|
|
- userInfo = res.Data
|
|
|
- }
|
|
|
- })
|
|
|
+async function getUserInfo() {
|
|
|
+ const res = await apiUser.userInfo()
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ userInfo = res.Data
|
|
|
+ }
|
|
|
}
|
|
|
-getUserInfo()
|
|
|
+
|
|
|
|
|
|
|
|
|
const reportId = route.query.reportid
|
|
@@ -44,11 +43,7 @@ async function getReportInfo() {
|
|
|
reportInfo.value = res.Data.Report
|
|
|
reportStatus.value = res.Data.Status
|
|
|
reportCollected.value = res.Data.IsCollect || false
|
|
|
- if (res.Data.Status === 4) {
|
|
|
- formatIframeData()
|
|
|
- } else {//无权限
|
|
|
- reportContent.value = reportInfo.value.ContentSub
|
|
|
- }
|
|
|
+
|
|
|
nextTick(() => {
|
|
|
handlePreviewImgs()
|
|
|
})
|
|
@@ -60,6 +55,17 @@ async function getReportInfo() {
|
|
|
title: res.Data.Report.Title
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ if (res.Data.Status === 4) {
|
|
|
+ await getUserInfo()
|
|
|
+ if (userInfo.Status === 2 && userInfo.HasPermission === '私有权限') {
|
|
|
+ formatIframeData()
|
|
|
+ }else{
|
|
|
+ reportContent.value = reportInfo.value.ContentSub
|
|
|
+ }
|
|
|
+ } else {//无权限
|
|
|
+ reportContent.value = reportInfo.value.ContentSub
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
getReportInfo()
|
|
@@ -78,7 +84,7 @@ function handleCallPhone() {
|
|
|
tel = item.ConfVal
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
var phoneLink = 'tel:' + tel;
|
|
|
var link = document.createElement('a');
|