浏览代码

fix:修复重新登陆后报告详情显示参数有误

chenlei 1 月之前
父节点
当前提交
16b6cddbb6
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      src/views/report/Detail.vue
  2. 3 3
      src/views/report/PDF.vue

+ 1 - 1
src/views/report/Detail.vue

@@ -215,7 +215,7 @@ onUnmounted(() => {
 })
 })
 
 
 function handleGoLogin(){
 function handleGoLogin(){
-  const redirectUrl=encodeURIComponent(`/pages-report/reportDetail/index?id=${route.query.reportid}`) 
+  const redirectUrl=encodeURIComponent(`/pages-report/reportDetail/index?id=${route.query.reportid}&ReportSource=${route.query.ReportSource}`) 
   wx.miniProgram.reLaunch({
   wx.miniProgram.reLaunch({
     url:`/pages/login/index?redirectUrl=${redirectUrl}`
     url:`/pages/login/index?redirectUrl=${redirectUrl}`
   })
   })

+ 3 - 3
src/views/report/PDF.vue

@@ -64,8 +64,8 @@ async function getReportInfo() {
 getReportInfo()
 getReportInfo()
 
 
 // 拨打电话
 // 拨打电话
-function handleCallPhone(tel) {
-  let tel = userInfo.value.SellerPhone
+function handleCallPhone() {
+  let tel = ''
   if (!tel) {
   if (!tel) {
     systemConfig.forEach(item => {
     systemConfig.forEach(item => {
       if (item.ConfKey === 'ServicePhone') {
       if (item.ConfKey === 'ServicePhone') {
@@ -108,7 +108,7 @@ onUnmounted(() => {
 })
 })
 
 
 function handleGoLogin(){
 function handleGoLogin(){
-  const redirectUrl=encodeURIComponent(`/pages-report/reportDetail/index?id=${route.query.reportid}`) 
+  const redirectUrl=encodeURIComponent(`/pages-report/reportDetail/index?id=${route.query.reportid}&ReportSource=${route.query.ReportSource}`) 
   wx.miniProgram.reLaunch({
   wx.miniProgram.reLaunch({
     url:`/pages/login/index?redirectUrl=${redirectUrl}`
     url:`/pages/login/index?redirectUrl=${redirectUrl}`
   })
   })