Selaa lähdekoodia

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

chenlei 1 kuukausi sitten
vanhempi
commit
16b6cddbb6
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  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(){
-  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({
     url:`/pages/login/index?redirectUrl=${redirectUrl}`
   })

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

@@ -64,8 +64,8 @@ async function getReportInfo() {
 getReportInfo()
 
 // 拨打电话
-function handleCallPhone(tel) {
-  let tel = userInfo.value.SellerPhone
+function handleCallPhone() {
+  let tel = ''
   if (!tel) {
     systemConfig.forEach(item => {
       if (item.ConfKey === 'ServicePhone') {
@@ -108,7 +108,7 @@ onUnmounted(() => {
 })
 
 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({
     url:`/pages/login/index?redirectUrl=${redirectUrl}`
   })