From ec47fecd41a22861c3fc65ca86311225dd28d7ee Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 28 十月 2025 14:02:34 +0800
Subject: [PATCH] 测试完成
---
src/views/outsideChainwtnew.vue | 75 +++++++++++++++++++++----------------
1 files changed, 43 insertions(+), 32 deletions(-)
diff --git a/src/views/outsideChainwtnew.vue b/src/views/outsideChainwtnew.vue
index 23931a4..a7d75c6 100644
--- a/src/views/outsideChainwtnew.vue
+++ b/src/views/outsideChainwtnew.vue
@@ -8,7 +8,9 @@
{{
kcb
? kcb
- : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾偍濂斤紒鎴戜滑鏄櫙瀹佷汉姘戝尰闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�"
+ : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾垜浠槸" +
+ localStorage.getItem("orgname") +
+ "鐨勫尰鎶や汉鍛橈紝涓轰簡鏇村ソ鍦颁簡瑙f偍鐨勫悍澶嶆儏鍐碉紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�"
}}
<!-- 浜茬埍鐨勬偅鑰�/瀹跺睘鎮ㄥソ锛屼负浜嗘洿濂界殑浜嗚В鎮ㄥ嚭闄㈠悗鐨勫悍澶嶆儏鍐碉紝缁欐偍閫傚綋鍙婃椂鐨勫仴搴锋寚瀵硷紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤鍑洪櫌闅忚闂嵎璋冩煡銆� -->
</div>
@@ -19,6 +21,7 @@
class="topic-dev"
v-for="(item, index) in questionList"
:key="item.aaa"
+ v-if="!item.ishide"
>
<div class="scriptTopic-dev" :key="index" v-if="item.scriptType == 1">
<div class="dev-text">
@@ -35,7 +38,7 @@
>
<el-radio
border
- v-for="(items, index) in item.svyLibTemplateTargetoptions"
+ v-for="(items, index) in item.svyTaskTemplateTargetoptions"
:class="
items.isabnormal && item.scriptResult == items.optioncontent
? 'red-star'
@@ -67,7 +70,7 @@
<el-checkbox
border
@change="$forceUpdate()"
- v-for="(items, indexs) in item.svyLibTemplateTargetoptions"
+ v-for="(items, indexs) in item.svyTaskTemplateTargetoptions"
:key="indexs"
:label="items.optioncontent"
>
@@ -165,7 +168,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑骞撮緞鑼冨洿鏄紵",
// scriptResult: null,
- // svyLibTemplateTargetoptions: [
+ // svyTaskTemplateTargetoptions: [
// { optioncontent: "18-25", value: "18-25", isabnormal: true },
// { optioncontent: "26-35", value: "26-35" },
// { optioncontent: "36-45", value: "36-45" },
@@ -178,7 +181,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
// scriptResult: null,
- // svyLibTemplateTargetoptions: [
+ // svyTaskTemplateTargetoptions: [
// { optioncontent: "瀛︾敓", value: "student" },
// { optioncontent: "鏁欏笀", value: "teacher" },
// { optioncontent: "宸ョ▼甯�", value: "engineer" },
@@ -191,7 +194,7 @@
// scriptType: 2,
// scriptContent: "鎮ㄦ劅鍏磋叮鐨勬椿鍔ㄦ湁鍝簺锛�",
// scriptResult: [],
- // svyLibTemplateTargetoptions: [
+ // svyTaskTemplateTargetoptions: [
// { optioncontent: "鏃呮父", value: "travel", isabnormal: true },
// { optioncontent: "闃呰", value: "reading", isabnormal: true },
// { optioncontent: "杩愬姩", value: "sports", isabnormal: true },
@@ -204,7 +207,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
// scriptResult: null,
- // svyLibTemplateTargetoptions: [
+ // svyTaskTemplateTargetoptions: [
// { optioncontent: "瀛︾敓", value: "student" },
// { optioncontent: "鏁欏笀", value: "teacher" },
// { optioncontent: "宸ョ▼甯�", value: "engineer" },
@@ -217,7 +220,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
// scriptResult: null,
- // svyLibTemplateTargetoptions: [
+ // svyTaskTemplateTargetoptions: [
// { optioncontent: "瀛︾敓", value: "student" },
// { optioncontent: "鏁欏笀", value: "teacher" },
// { optioncontent: "宸ョ▼甯�", value: "engineer", isabnormal: true },
@@ -230,7 +233,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
// scriptResult: null,
- // svyLibTemplateTargetoptions: [
+ // svyTaskTemplateTargetoptions: [
// { optioncontent: "瀛︾敓", value: "student" },
// { optioncontent: "鏁欏笀", value: "teacher" },
// { optioncontent: "宸ョ▼甯�", value: "engineer" },
@@ -276,31 +279,36 @@
methods: {
// 瑙f瀽urlid
geturlinfo() {
- // let url = window.location.href;
- let url = this.$route.query.p;
- console.log(url,"url");
+ // let url = window.location.href;
+ let url = this.$route.query.p;
+ console.log(url, "url");
// let url = 'http://218.108.11.22:8093/sf/003';
// let urlid = this.extractLastSegmentFromUrl(url);
- geturlinfo( url ).then((res) => {
- if (res.code==200) {
- this.getQuestionnaire(res.data.param1,res.data.param2,res.data.param3,res.data.param5,)
- }
+ geturlinfo(url).then((res) => {
+ if (res.code == 200) {
+ this.getQuestionnaire(
+ res.data.param1,
+ res.data.param2,
+ res.data.param3,
+ res.data.param5
+ );
+ }
});
},
-// extractLastSegmentFromUrl(url) {
-// // 鎵惧埌鏈�鍚庝竴涓�'/'鐨勪綅缃�
-// const lastSlashIndex = url.lastIndexOf('/');
-// // 濡傛灉鎵惧埌浜�'/'锛屾埅鍙栧叾鍚庣殑鎵�鏈夊瓧绗�
-// if (lastSlashIndex !== -1) {
-// return url.substring(lastSlashIndex + 1);
-// }
-// // 濡傛灉娌℃湁鎵惧埌'/'锛岃繑鍥炵┖瀛楃涓�
-// return '';
-// },
+ // extractLastSegmentFromUrl(url) {
+ // // 鎵惧埌鏈�鍚庝竴涓�'/'鐨勪綅缃�
+ // const lastSlashIndex = url.lastIndexOf('/');
+ // // 濡傛灉鎵惧埌浜�'/'锛屾埅鍙栧叾鍚庣殑鎵�鏈夊瓧绗�
+ // if (lastSlashIndex !== -1) {
+ // return url.substring(lastSlashIndex + 1);
+ // }
+ // // 濡傛灉娌℃湁鎵惧埌'/'锛岃繑鍥炵┖瀛楃涓�
+ // return '';
+ // },
// 鑾峰彇鏁版嵁
- getQuestionnaire(param1,param2,param3) {
+ getQuestionnaire(param1, param2, param3) {
this.taskid = decodeURIComponent(param1);
this.patid = decodeURIComponent(param2);
this.taskname = decodeURIComponent(param3);
@@ -400,14 +408,16 @@
let form = {
param1: this.taskid,
param2: this.patid,
- svyLibTemplateScriptVOS: [],
+ svyTaskTemplateScriptVOS: [],
};
const arr = structuredClone(this.questionList);
console.log(arr, "srr");
arr.forEach((item, index) => {
- var obj = item.svyLibTemplateTargetoptions.find(
+ var obj = item.svyTaskTemplateTargetoptions.find(
(items) => items.optioncontent == item.scriptResult
);
+ console.log(obj, "obj");
+
if (obj) {
if (obj.isabnormal) {
console.log(obj.isabnormal);
@@ -424,7 +434,8 @@
item.scriptResult = JSON.stringify(item.scriptResult);
}
});
- form.svyLibTemplateScriptVOS = arr;
+ form.svyTaskTemplateScriptVOS = arr;
+ form.type = 2;
Cachequestionnaire(form).then((res) => {
if (res.code == 200) {
if (subm) {
@@ -436,7 +447,7 @@
// 澶勭悊鍗曢�夐�夐」
handleOptionChange(selectedvalue, index, arr) {
// 鏌ユ壘閫変腑鐨勯�夐」瀵硅薄
- const selectedOption = arr.svyLibTemplateTargetoptions.find(
+ const selectedOption = arr.svyTaskTemplateTargetoptions.find(
(option) => option.optioncontent == selectedvalue
);
if (selectedOption) {
@@ -451,7 +462,7 @@
// // 锟斤拷鍔犲垎鏁�
// let score = 0;
// selectedvalues.forEach((value) => {
- // const selectedOption = arr.svyLibTemplateTargetoptions.find(
+ // const selectedOption = arr.svyTaskTemplateTargetoptions.find(
// (option) => option.optioncontent == value
// );
// if (selectedOption) {
--
Gitblit v1.9.3