From 248b5e946c3365acba05168cf728a8704b0eae25 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 04 九月 2025 11:59:27 +0800
Subject: [PATCH] 测试完成
---
src/views/outsideChainxj.vue | 64 +++++++++++++++++--------------
1 files changed, 35 insertions(+), 29 deletions(-)
diff --git a/src/views/outsideChainxj.vue b/src/views/outsideChainxj.vue
index 6a375ff..7eee1ab 100644
--- a/src/views/outsideChainxj.vue
+++ b/src/views/outsideChainxj.vue
@@ -7,10 +7,12 @@
</div>
</div> -->
- <div class="CONTENT" >
+ <div class="CONTENT">
<div class="preview-left">
<div class="toptitle">
- <div class="title">{{ taskname ? taskname : "鏃犻敗鍎跨鍖婚櫌鍖绘姢鐭ヨ瘑瀹f暀" }}</div>
+ <div class="title">
+ {{ taskname ? taskname : "鏃犻敗鍎跨鍖婚櫌鍖绘姢鐭ヨ瘑瀹f暀" }}
+ </div>
<div style="font-size: 22px; margin-bottom: 20px; line-height: 1.5">
{{
kcb
@@ -32,11 +34,12 @@
margin-bottom: 10px;
"
>
- {{
+ {{
jsy
? jsy
: "鐢熸椿涓婅鍔抽�哥粨鍚堬紝娉ㄦ剰浼戞伅鍜岃惀鍏伙紝閫傚綋閿荤偧锛屾垝鐑熼檺閰掞紝淇濇寔蹇冩儏鑸掔晠锛屽畾鏈熷璇娿�傞偅鏈瀹f暀鍐呭灏卞埌杩欓噷锛岀鎮ㄨ韩浣撳仴搴凤紒"
- }} </div>
+ }}
+ </div>
<!-- <div style="font-size: 20px">
{{
jsy
@@ -53,7 +56,7 @@
import {
getExternalfollowup,
Submitaquestionnaire,
- geturlinfo,
+ geturlinfo,
} from "@/api/AiCentre/index";
import { getToken } from "@/utils/auth";
import axios from "axios";
@@ -76,20 +79,23 @@
question3: "",
},
richText: "<p>Hello, <strong>world</strong>!</p>",
- url:'',
- taskname:'',
- kcb:'',
- jsy:'',
+ url: "",
+ taskname: "",
+ kcb: "",
+ jsy: "",
};
},
created() {
- this.geturlinfo(); },
+ this.geturlinfo();
+ },
methods: {
// 瑙f瀽urlid
geturlinfo() {
// let url = window.location.href;
let url = this.$route.query.p;
+ console.log(url);
+
// let url = 'http://218.108.11.22:8093/sf/003';
// let urlid = this.extractLastSegmentFromUrl(url);
@@ -119,25 +125,26 @@
// // this.$modal.msgSuccess("浠诲姟id涓�" + this.taskid);
// let taskids = this.encrypt(this.taskid);
// let patids = this.encrypt(this.patid);
- getExternalfollowup({ param1: this.taskid, param2: this.patid }).then((res) => {
- if (res.code == 200) {
- this.url = res.data.script[0].richText;
- this.jsy = res.data.jsy;
- this.kcb = res.data.kcb;
- // 涓存椂鑾峰彇鏁版嵁
- axios
- .get(this.url)
- .then((response) => {
- console.log(response.data, "鏁版嵁"); // 杈撳嚭鑾峰彇鍒扮殑鏂囦欢鍐呭
- this.richText = response.data;
- this.richText = this.addStyleToImages(this.richText);
- })
- .catch((error) => {
- console.error("Failed to fetch file:", error);
- });
+ getExternalfollowup({ param1: this.taskid, param2: this.patid }).then(
+ (res) => {
+ if (res.code == 200) {
+ this.url = res.data.script[0].richText;
+ this.jsy = res.data.jsy;
+ this.kcb = res.data.kcb;
+ // 涓存椂鑾峰彇鏁版嵁
+ axios
+ .get(this.url)
+ .then((response) => {
+ console.log(response.data, "鏁版嵁"); // 杈撳嚭鑾峰彇鍒扮殑鏂囦欢鍐呭
+ this.richText = response.data;
+ this.richText = this.addStyleToImages(this.richText);
+ })
+ .catch((error) => {
+ console.error("Failed to fetch file:", error);
+ });
+ }
}
- });
-
+ );
},
addStyleToImages(html) {
return html.replace(
@@ -194,7 +201,6 @@
</script>
<style lang="scss" scoped>
-
.questionnaire {
background-image: url("../assets/images/chainbackground1.jpg");
background-color: #f9f9fb;
--
Gitblit v1.9.3