liushengqiang 2 лет назад
Родитель
Сommit
b60a735aae
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      src/page-orchestra/evaluat-model/index.tsx
  2. 2 2
      src/view/evaluating/index.tsx

+ 1 - 1
src/page-orchestra/evaluat-model/index.tsx

@@ -173,7 +173,7 @@ export default defineComponent({
 				return;
 			} else if (type === "look") {
 				// 跳转
-				handleViewReport();
+				handleViewReport('recordIdStr');
 				return;
 			} else if (type === "practise") {
 				// 去练习

+ 2 - 2
src/view/evaluating/index.tsx

@@ -251,9 +251,9 @@ export const handleCancelEvaluat = () => {
 };
 
 /** 查看报告 */
-export const handleViewReport = () => {
+export const handleViewReport = (key = 'recordId') => {
 	api_openWebView({
-		url: location.origin + location.pathname + "report-share.html?id=" + evaluatingData.resultData?.recordId || "",
+		url: location.origin + location.pathname + "report-share.html?id=" + evaluatingData.resultData?.[key] || "",
 		orientation: 0,
 		isHideTitle: true, // 此处兼容安卓,意思为隐藏全部头部
 		statusBarTextColor: false,