李帅 2 months ago
parent
commit
599bf38c05

BIN
src/assets/images/背景牙.png


+ 1 - 1
src/utils/request.js

@@ -18,7 +18,6 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
18
 const service = axios.create({
18
 const service = axios.create({
19
   baseURL: process.env.VUE_APP_BASE_API,
19
   baseURL: process.env.VUE_APP_BASE_API,
20
   // baseURL: "http://39.105.121.97:8080/api",
20
   // baseURL: "http://39.105.121.97:8080/api",
21
-  // baseURL: "http://39.105.121.97:8080/api",
22
   
21
   
23
   // axios中请求配置有baseURL选项,表示请求URL公共部分
22
   // axios中请求配置有baseURL选项,表示请求URL公共部分
24
   // baseURL: "http://192.168.3.142:8081/api",
23
   // baseURL: "http://192.168.3.142:8081/api",
@@ -32,6 +31,7 @@ const service = axios.create({
32
 
31
 
33
 // request拦截器
32
 // request拦截器
34
 service.interceptors.request.use(config => {
33
 service.interceptors.request.use(config => {
34
+  // console.log(config,"configconfig");
35
   if(config.url.startsWith("/chat/getMsg") || config.url.startsWith("/diagnosis-manage/page")){
35
   if(config.url.startsWith("/chat/getMsg") || config.url.startsWith("/diagnosis-manage/page")){
36
   }else {
36
   }else {
37
     // 在发送请求之前显示loading
37
     // 在发送请求之前显示loading

+ 3 - 2
src/views/patientCenter/index.vue

@@ -863,6 +863,7 @@ export default {
863
     async initDetail(id) {
863
     async initDetail(id) {
864
       const res = await patientDetail({ id })
864
       const res = await patientDetail({ id })
865
       this.tableForm = res.data
865
       this.tableForm = res.data
866
+      console.log(res.data,"res.data");
866
       this.$forceUpdate()
867
       this.$forceUpdate()
867
     },
868
     },
868
     selectClick(val, index) {
869
     selectClick(val, index) {
@@ -1116,7 +1117,7 @@ export default {
1116
         (item) => item.toothPosition != this.yaKey
1117
         (item) => item.toothPosition != this.yaKey
1117
       )
1118
       )
1118
 
1119
 
1119
-      
1120
+      console.log(list,123213);
1120
       this.yaAllList.push({
1121
       this.yaAllList.push({
1121
         toothPosition: this.yaKey,
1122
         toothPosition: this.yaKey,
1122
         toothStatus: 2,
1123
         toothStatus: 2,
@@ -1124,7 +1125,7 @@ export default {
1124
         flag2:false,
1125
         flag2:false,
1125
         flag3:false, 
1126
         flag3:false, 
1126
         status: 10,
1127
         status: 10,
1127
-        ...list
1128
+        ...list,
1128
       })
1129
       })
1129
 
1130
 
1130
 
1131
 

+ 1 - 1
src/views/patientCenter/medical/index.vue

@@ -235,7 +235,7 @@ export default {
235
       console.log(this.list, 'this.list');
235
       console.log(this.list, 'this.list');
236
     },
236
     },
237
     doDetail(val){
237
     doDetail(val){
238
-      // console.log(val);
238
+      console.log(val);
239
       let obj = JSON.parse(JSON.stringify(val))
239
       let obj = JSON.parse(JSON.stringify(val))
240
       this.$emit('doDetail', obj)
240
       this.$emit('doDetail', obj)
241
     },
241
     },

+ 7 - 2
src/views/patientCenter/medical/yaChi.vue

@@ -3480,12 +3480,17 @@ export default {
3480
       })
3480
       })
3481
         .then(async () => {
3481
         .then(async () => {
3482
           let obj = {}
3482
           let obj = {}
3483
-
3483
+          console.log(this.tagList,'this.allList');
3484
           if (this.updateId) {
3484
           if (this.updateId) {
3485
             this.tagList.forEach((item) => {
3485
             this.tagList.forEach((item) => {
3486
                 item.toothPosition = item.toothPosition
3486
                 item.toothPosition = item.toothPosition
3487
+                if(item.mainDiagnosisId) {
3487
                 item.diagnosisManageId = item.mainDiagnosisId
3488
                 item.diagnosisManageId = item.mainDiagnosisId
3488
-                item.diagnosisTypeTemplateId = item.diagnosisTypeTemplateId
3489
+                item.diagnosisTypeTemplateId = item.id
3490
+                }else {
3491
+                  item.diagnosisManageId = item.diagnosisManageId
3492
+                  item.diagnosisTypeTemplateId = item.diagnosisTypeTemplateId
3493
+                }
3489
             })
3494
             })
3490
             console.log(this.allList,this.tagList,'this.allList');
3495
             console.log(this.allList,this.tagList,'this.allList');
3491
 
3496