Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 3 weeks ago
parent
commit
2ffe04c830

+ 1 - 1
src/api/patient.js View File

1282
 export function deleteSickHistoryTempalte(id,params){
1282
 export function deleteSickHistoryTempalte(id,params){
1283
 
1283
 
1284
   return request({
1284
   return request({
1285
-    url:"/api/patient/deletesickhistorytemplate?id="+id,
1285
+    url:"/api/patient/deletesickhistorytemplate?template_id="+id,
1286
     method:"get",
1286
     method:"get",
1287
     params:params
1287
     params:params
1288
   })
1288
   })

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue View File

167
               name: '3-1',
167
               name: '3-1',
168
               label: '病史'
168
               label: '病史'
169
             },
169
             },
170
-            // {
171
-            //   name: '3-4',
172
-            //   label: '病史新'
173
-            // },
170
+            {
171
+              name: '3-4',
172
+              label: '病史新'
173
+            },
174
             {
174
             {
175
               name: '3-2',
175
               name: '3-2',
176
               label: '体格检查'
176
               label: '体格检查'

+ 3 - 1
src/xt_pages/user/sickHistory_new.vue View File

462
   },
462
   },
463
   methods: {
463
   methods: {
464
     template_dele(){
464
     template_dele(){
465
+      console.log("hahhahahah",this.template_id)
465
      deleteSickHistoryTempalte(this.template_id).then(response=>{
466
      deleteSickHistoryTempalte(this.template_id).then(response=>{
466
         if(response.data.state == 1){
467
         if(response.data.state == 1){
467
           var msg =  response.data.data.msg
468
           var msg =  response.data.data.msg
977
 
978
 
978
     },
979
     },
979
     getCurrentChangeOne(val){
980
     getCurrentChangeOne(val){
980
-
981
+      console.log("val-------------------",val.id)
981
       this.$refs.editorOne.contents = val.content
982
       this.$refs.editorOne.contents = val.content
982
       this.template_content = ""
983
       this.template_content = ""
983
       this.template_content = val.content
984
       this.template_content = val.content
985
+      this.template_id = ""
984
       this.template_id = val.id
986
       this.template_id = val.id
985
     },
987
     },
986
     saveTemplate(){
988
     saveTemplate(){

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28
  // 线上注释
28
  // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))