From d54ac083e2992a5613f5cb22849db9742dbe9a9b Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期三, 22 十月 2025 11:06:14 +0800
Subject: [PATCH] 问卷联调
---
src/views/outsideChainnew.vue | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/src/views/outsideChainnew.vue b/src/views/outsideChainnew.vue
index 347ad7d..ca9eee4 100644
--- a/src/views/outsideChainnew.vue
+++ b/src/views/outsideChainnew.vue
@@ -8,7 +8,7 @@
{{
kcb
? kcb
- : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾偍濂斤紒鎴戜滑鏄禉涓尰澶т簩闄㈢殑鍖绘姢浜哄憳锛屼负浜嗘洿濂藉湴浜嗚В鎮ㄧ殑搴峰鎯呭喌锛岃鎮ㄦ娊涓�鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�"
+ : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾垜浠槸"+localStorage.getItem("orgname")+"鐨勫尰鎶や汉鍛橈紝涓轰簡鏇村ソ鍦颁簡瑙f偍鐨勫悍澶嶆儏鍐碉紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�"
}}
<!-- 浜茬埍鐨勬偅鑰�/瀹跺睘鎮ㄥソ锛屼负浜嗘洿濂界殑浜嗚В鎮ㄥ嚭闄㈠悗鐨勫悍澶嶆儏鍐碉紝缁欐偍閫傚綋鍙婃椂鐨勫仴搴锋寚瀵硷紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤鍑洪櫌闅忚闂嵎璋冩煡銆� -->
</div>
@@ -35,7 +35,7 @@
>
<el-radio
border
- v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
+ v-for="(items, index) in item.ivrTaskScriptTargetoptionList"
:class="
items.isabnormal && item.questionResult == items.targetvalue
? 'red-star'
@@ -68,7 +68,7 @@
<el-checkbox
border
@change="$forceUpdate()"
- v-for="(items, indexs) in item.ivrLibaScriptTargetoptionList"
+ v-for="(items, indexs) in item.ivrTaskScriptTargetoptionList"
:key="indexs"
:label="items.targetvalue"
>
@@ -168,7 +168,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑骞撮緞鑼冨洿鏄紵",
// questionResult: null,
- // ivrLibaScriptTargetoptionList: [
+ // ivrTaskScriptTargetoptionList: [
// { targetvalue: "18-25", value: "18-25", isabnormal: true },
// { targetvalue: "26-35", value: "26-35" },
// { targetvalue: "36-45", value: "36-45" },
@@ -181,7 +181,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
// questionResult: null,
- // ivrLibaScriptTargetoptionList: [
+ // ivrTaskScriptTargetoptionList: [
// { targetvalue: "瀛︾敓", value: "student" },
// { targetvalue: "鏁欏笀", value: "teacher" },
// { targetvalue: "宸ョ▼甯�", value: "engineer" },
@@ -194,7 +194,7 @@
// scriptType: 2,
// scriptContent: "鎮ㄦ劅鍏磋叮鐨勬椿鍔ㄦ湁鍝簺锛�",
// questionResult: [],
- // ivrLibaScriptTargetoptionList: [
+ // ivrTaskScriptTargetoptionList: [
// { targetvalue: "鏃呮父", value: "travel", isabnormal: true },
// { targetvalue: "闃呰", value: "reading", isabnormal: true },
// { targetvalue: "杩愬姩", value: "sports", isabnormal: true },
@@ -207,7 +207,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
// questionResult: null,
- // ivrLibaScriptTargetoptionList: [
+ // ivrTaskScriptTargetoptionList: [
// { targetvalue: "瀛︾敓", value: "student" },
// { targetvalue: "鏁欏笀", value: "teacher" },
// { targetvalue: "宸ョ▼甯�", value: "engineer" },
@@ -220,7 +220,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
// questionResult: null,
- // ivrLibaScriptTargetoptionList: [
+ // ivrTaskScriptTargetoptionList: [
// { targetvalue: "瀛︾敓", value: "student" },
// { targetvalue: "鏁欏笀", value: "teacher" },
// { targetvalue: "宸ョ▼甯�", value: "engineer", isabnormal: true },
@@ -233,7 +233,7 @@
// scriptType: 1,
// scriptContent: "鎮ㄧ殑鑱屼笟鏄粈涔堬紵",
// questionResult: null,
- // ivrLibaScriptTargetoptionList: [
+ // ivrTaskScriptTargetoptionList: [
// { targetvalue: "瀛︾敓", value: "student" },
// { targetvalue: "鏁欏笀", value: "teacher" },
// { targetvalue: "宸ョ▼甯�", value: "engineer" },
@@ -281,6 +281,8 @@
geturlinfo() {
// let url = window.location.href;
let url = this.$route.query.p;
+ console.log(445);
+
// let url = 'http://218.108.11.22:8093/sf/003';
// let urlid = this.extractLastSegmentFromUrl(url);
@@ -412,13 +414,13 @@
param1: this.taskid,
param2: this.patid,
type: this.type,
- ivrLibaTemplateScriptVOList: [],
+ ivrTaskaTemplateScriptVOList: [],
};
const arr = structuredClone(this.questionList);
console.log(arr, "srr");
arr.forEach((item, index) => {
if (item.scriptType == 3||item.scriptType == 4) return;
- var obj = item.ivrLibaScriptTargetoptionList.find(
+ var obj = item.ivrTaskScriptTargetoptionList.find(
(items) => items.targetvalue == item.questionResult
);
console.log(obj, "isabnormal");
@@ -437,7 +439,7 @@
item.questionResult = JSON.stringify(item.questionResult);
}
});
- form.ivrLibaTemplateScriptVOList = arr;
+ form.ivrTaskaTemplateScriptVOList = arr;
Cachequestionnaire(form).then((res) => {
if (res.code == 200) {
if (subm) {
@@ -449,7 +451,7 @@
// 澶勭悊鍗曢�夐�夐」
handleOptionChange(selectedvalue, index, arr) {
// 鏌ユ壘閫変腑鐨勯�夐」瀵硅薄
- const selectedOption = arr.ivrLibaScriptTargetoptionList.find(
+ const selectedOption = arr.ivrTaskScriptTargetoptionList.find(
(option) => option.targetvalue == selectedvalue
);
if (selectedOption) {
@@ -464,7 +466,7 @@
// 锟斤拷鍔犲垎鏁�
let score = 0;
selectedvalues.forEach((value) => {
- const selectedOption = arr.ivrLibaScriptTargetoptionList.find(
+ const selectedOption = arr.ivrTaskScriptTargetoptionList.find(
(option) => option.targetvalue == value
);
if (selectedOption) {
--
Gitblit v1.9.3