From a5faf6e7b42f1e358ee8396c77452a07d9f976e8 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 12 二月 2025 13:54:12 +0800
Subject: [PATCH] 测试完成
---
src/api/login.js | 4 +-
src/store/modules/user.js | 8 ++-
src/views/login.vue | 29 ++++++++++----
vue.config.js | 2
src/views/followvisit/record/detailpage/index.vue | 17 +++++---
src/views/outsideChainwtnew.vue | 3 +
src/views/patient/propaganda/QuestionnaireTask.vue | 1
7 files changed, 43 insertions(+), 21 deletions(-)
diff --git a/src/api/login.js b/src/api/login.js
index 45b9bab..4d3977e 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -1,13 +1,13 @@
import request from '@/utils/request'
// 鐧诲綍鏂规硶
-export function login(username, password, code, uuid,guid) {
+export function login(username, password, code, uuid,orgid) {
const data = {
username,
password,
code,
uuid,
- guid,
+ orgid,
}
return request({
url: '/login',
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index aa7006c..3cdf1a7 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -114,16 +114,18 @@
actions: {
// 鐧诲綍
Login({ commit }, userInfo) {
+ console.log(userInfo,'user info');
+
const username = userInfo.username.trim()
const password = userInfo.password
const code = userInfo.code
const uuid = userInfo.uuid
- const guid = userInfo.guid
+ const orgid = userInfo.orgid
return new Promise((resolve, reject) => {
- login(username, password, code, uuid,guid).then(res => {
+ login(username, password, code, uuid,orgid).then(res => {
setToken(res.token)
commit('SET_TOKEN', res.token)
- localStorage.setItem('guid', guid);
+ localStorage.setItem('orgid', orgid);
resolve()
}).catch(error => {
reject(error)
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 5edc7ec..1438f7c 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -646,10 +646,12 @@
if (res.code === 200) {
this.tableDatatop = res.data.scriptResult.script;
this.tableDatatop.forEach((item) => {
- if (item.scriptResult && item.scriptType != 2) {
+ console.log(item.scriptResultId,'scriptResultId');
+
+ if (item.scriptResultId && item.scriptType != 2) {
item.isoption = 3;
- item.scriptResult = JSON.parse(item.scriptResult);
- } else if (item.scriptResult && item.scriptType == 2) {
+ item.scriptResult = item.scriptResult;
+ } else if (item.scriptResultId && item.scriptType == 2) {
item.scriptResult = item.scriptResult.split("&");
item.isoption = 3;
}
@@ -735,9 +737,10 @@
var objs = item.svyLibTemplateTargetoptions.find(
(items) => items.optioncontent == item.scriptResult
);
-
- if (objs.isabnormal) {
- excep = 1;
+ if (obj) {
+ if (objs.isabnormal) {
+ excep = 1;
+ }
}
let obj = {
@@ -751,7 +754,7 @@
if (item.scriptType == 2 && item.scriptResult[0]) {
obj.asrtext = item.scriptResult.join("&");
} else if (item.scriptType != 2 && item.scriptResult) {
- obj.asrtext = JSON.stringify(item.scriptResult);
+ obj.asrtext = item.scriptResult;
}
if (item.isoption == 3) {
diff --git a/src/views/login.vue b/src/views/login.vue
index 0072023..9e7b2f7 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -37,8 +37,13 @@
</el-input>
</el-form-item>
<!-- 涓�===================姘� -->
- <el-form-item prop="guid">
- <el-select style="width: 100%;" v-model="loginForm.guid" placeholder="璇烽�夋嫨闄㈠尯">
+<<<<<<< HEAD
+ <el-form-item prop="orgid">
+ <el-select style="width: 100%;" v-model="loginForm.orgid" placeholder="璇烽�夋嫨闄㈠尯">
+=======
+ <!-- <el-form-item prop="orgid">
+ <el-select style="width: 100%;" v-model="loginForm.orgid" placeholder="璇烽�夋嫨闄㈠尯">
+>>>>>>> master
<el-option
v-for="item in options"
:key="item.value"
@@ -112,8 +117,12 @@
password: "",
rememberMe: false,
code: "",
+<<<<<<< HEAD
uuid: "",
- guid:'1',
+ orgid:'1',
+=======
+ orgid:'1',
+>>>>>>> master
},
options: [
{ value: "1", label: "鏅畞鐣叉棌鑷不鍘夸汉姘戝尰闄�" },
@@ -126,7 +135,11 @@
password: [
{ required: true, trigger: "blur", message: "璇疯緭鍏ユ偍鐨勫瘑鐮�" },
],
- guid: [{ required: true, trigger: "blur", message: "璇烽�夋嫨闄㈠尯" }],
+<<<<<<< HEAD
+ orgid: [{ required: true, trigger: "blur", message: "璇烽�夋嫨闄㈠尯" }],
+=======
+ // orgid: [{ required: true, trigger: "blur", message: "璇烽�夋嫨闄㈠尯" }],
+>>>>>>> master
},
loading: false,
// 楠岃瘉鐮佸紑鍏�
@@ -147,9 +160,9 @@
created() {
this.getCode();
this.getCookie();
- if (localStorage.getItem('guid')) {
- this.loginForm.guid = localStorage.getItem('guid');
- }
+ // if (localStorage.getItem('orgid')) {
+ // this.loginForm.orgid = localStorage.getItem('orgid');
+ // }
},
methods: {
getCode() {
@@ -191,7 +204,7 @@
Cookies.remove("password");
Cookies.remove("rememberMe");
}
- localStorage.removeItem('guid');
+ this.loginForm.orgid = '1',
this.$store
.dispatch("Login", this.loginForm)
.then(() => {
diff --git a/src/views/outsideChainwtnew.vue b/src/views/outsideChainwtnew.vue
index 23931a4..0020afa 100644
--- a/src/views/outsideChainwtnew.vue
+++ b/src/views/outsideChainwtnew.vue
@@ -408,6 +408,8 @@
var obj = item.svyLibTemplateTargetoptions.find(
(items) => items.optioncontent == item.scriptResult
);
+ console.log(obj,'obj');
+
if (obj) {
if (obj.isabnormal) {
console.log(obj.isabnormal);
@@ -425,6 +427,7 @@
}
});
form.svyLibTemplateScriptVOS = arr;
+ form.type = 2;
Cachequestionnaire(form).then((res) => {
if (res.code == 200) {
if (subm) {
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index dc277bc..3e427ba 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -1978,6 +1978,7 @@
this.objyl.suitway = this.objyl.suitway.join(",");
}
this.objyl.templateid = this.objyl.svyid;
+ this.form.libtemplateid = this.objyl.svyid;
this.objyl.isoperation = 1;
this.objyl.svyTaskTemplateScriptVOS = this.objyl.svyTemplateLibScripts;
this.form.svyTaskTemplateVO=this.objyl;
diff --git a/vue.config.js b/vue.config.js
index 7647566..9e0a97b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -35,7 +35,7 @@
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- // target: `http://192.168.2.10:8095`,
+ // target: `http://192.168.168.60:8095`,
// target: `http://10.202.20.185:8095`,
// target: `http://192.168.100.184:8095`,
target:`http://localhost:8095`,
--
Gitblit v1.9.3