Browse Source

hah阿凡达

28169 3 weeks ago
parent
commit
acfae6ebd9

+ 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

348
   },
348
   },
349
   methods: {
349
   methods: {
350
     template_dele(){
350
     template_dele(){
351
+      console.log("hahhahahah",this.template_id)
351
      deleteSickHistoryTempalte(this.template_id).then(response=>{
352
      deleteSickHistoryTempalte(this.template_id).then(response=>{
352
         if(response.data.state == 1){
353
         if(response.data.state == 1){
353
           var msg =  response.data.data.msg
354
           var msg =  response.data.data.msg
868
 
869
 
869
     },
870
     },
870
     getCurrentChangeOne(val){
871
     getCurrentChangeOne(val){
871
-
872
+      console.log("val-------------------",val.id)
872
       this.$refs.editorOne.contents = val.content
873
       this.$refs.editorOne.contents = val.content
873
       this.template_content = ""
874
       this.template_content = ""
874
       this.template_content = val.content
875
       this.template_content = val.content
876
+      this.template_id = ""
875
       this.template_id = val.id
877
       this.template_id = val.id
876
     },
878
     },
877
     saveTemplate(){
879
     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))