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,7 +1282,7 @@ export function modifySickHistoryTemplate(data){
1282 1282
 export function deleteSickHistoryTempalte(id,params){
1283 1283
 
1284 1284
   return request({
1285
-    url:"/api/patient/deletesickhistorytemplate?id="+id,
1285
+    url:"/api/patient/deletesickhistorytemplate?template_id="+id,
1286 1286
     method:"get",
1287 1287
     params:params
1288 1288
   })

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

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

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

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

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 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 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))