diff --git a/src/api/system/followupsee.js b/src/api/system/followupsee.js
new file mode 100644
index 0000000..787cca8
--- /dev/null
+++ b/src/api/system/followupsee.js
@@ -0,0 +1,22 @@
+import request from '@/utils/request'
+export function selectFollowPatientInfo(id) {
+ return request({
+ url: '/manage/signroute/selectFollowPatientInfo/'+id,
+ method: 'get',
+ })
+}
+// 问卷量表
+export function question(id) {
+ return request({
+ url: '/system/question/'+id,
+ method: 'get',
+ })
+}
+//保存
+export function addPatientQuestionResult(data) {
+ return request({
+ url: '/manage/signroute/addPatientQuestionResult',
+ method: 'post',
+ data: data
+ })
+}
\ No newline at end of file
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 324c99f..ba84d65 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -1,5 +1,6 @@
import { login, logout, getInfo } from '@/api/login'
import { getToken, setToken, removeToken } from '@/utils/auth'
+import Cookies from 'js-cookie'
const user = {
state: {
@@ -51,6 +52,11 @@ const user = {
return new Promise((resolve, reject) => {
getInfo().then(res => {
const user = res.user
+ console.log(user,'user')
+ Cookies.set("userId",user.userId)
+ Cookies.set("userName",user.userName)
+
+ // localStorage.setItem("userId",user.userId);
const avatar = (user.avatar == "" || user.avatar == null) ? require("@/assets/images/profile.jpg") : process.env.VUE_APP_BASE_API + user.avatar;
localStorage.setItem('user', JSON.stringify(user))
if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组
diff --git a/src/views/system/followup/index.vue b/src/views/system/followup/index.vue
index f593c54..ecb538d 100644
--- a/src/views/system/followup/index.vue
+++ b/src/views/system/followup/index.vue
@@ -128,13 +128,21 @@
v-model="queryParams.visitMethod"
placeholder="请选择就诊类型"
clearable
+ @change="change"
>
+
+
@@ -148,7 +156,7 @@
-
+
{{ scope.row.visitMethod == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
- {{ scope.row.visitMethod == "BE_IN_HOSPITAL" ? "住院" : "" }}
+ >{{ scope.row.suitRange == "OUTPATIENT_SERVICE" ? "门诊" : "" }}
+ {{ scope.row.suitRange == "IN_THE_HOSPITAL" ? "在院" : "" }}
+ {{ scope.row.suitRange == "DISCHARGE" ? "出院" : "" }}
@@ -327,7 +336,7 @@
/>
-
+
-
\ No newline at end of file
diff --git a/src/views/system/followupsee/index.vue b/src/views/system/followupsee/index.vue
index 70cf6f3..55e66b9 100644
--- a/src/views/system/followupsee/index.vue
+++ b/src/views/system/followupsee/index.vue
@@ -24,8 +24,12 @@
{{ list.age }}
-
保存
-
取消
+
+ 保存
+
+
+ 取消
+
@@ -42,34 +46,167 @@