柳香萍 6 years ago
parent
commit
dd5eca5493

File diff suppressed because it is too large
+ 498 - 498
src/router/index.js


+ 1 - 0
src/views/layout/components/TagsView.vue View File

@@ -132,6 +132,7 @@ export default {
132 132
     position: fixed;
133 133
     z-index: 2004;
134 134
     top: 60px;
135
+    overflow-x: scroll;
135 136
     .tags-view-item {
136 137
       display: inline-block;
137 138
       position: relative;

+ 2 - 4
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

@@ -205,14 +205,12 @@
205 205
     <el-dialog
206 206
       title="选择执行时间"
207 207
       :visible.sync="execTimeDialogVisible"
208
-      width="30%"
208
+      width="400px"
209 209
       @close="closeTimePanel"
210
-
211 210
       :show-close="isClose"
212 211
       :close-on-click-modal="isClose"
213 212
       :close-on-press-escape="isClose"
214
-
215
-      center>
213
+      >
216 214
       <el-date-picker
217 215
         v-model="execTime"
218 216
         format="yyyy-MM-dd HH:mm:00"

+ 7 - 15
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div id="user-edit-group-advice">
3
-    <el-dialog title="新增医嘱" :visible.sync="groupAddFormVisible" width="854px">
3
+    <el-dialog title="新增医嘱" :visible.sync="groupAddFormVisible" width="700px">
4 4
       <el-form ref="groupForm" :rules="groupRules" :model="groupForm" label-width="90px">
5 5
 
6 6
         <el-row>
@@ -11,13 +11,14 @@
11 11
           </el-col>
12 12
 
13 13
           <el-col :span="12">
14
-            <el-form-item label="开始时间 :" required prop="start_time">
14
+            <el-form-item label="开始时间 :" required prop="start_time" style="width:100%;">
15 15
               <el-date-picker
16 16
                 type="datetime"
17 17
                 format="yyyy-MM-dd HH:mm:ss"
18 18
                 value-format="yyyy-MM-dd HH:mm:ss"
19 19
                 placeholder="选择时间"
20 20
                 v-model="groupForm.start_time"
21
+                style="width:100%;"
21 22
               ></el-date-picker>
22 23
             </el-form-item>
23 24
           </el-col>
@@ -41,7 +42,10 @@
41 42
           </el-col>
42 43
         </el-row>
43 44
 
44
-        <el-row style="margin:20px 60px;">
45
+        <el-row >
46
+          <el-col :span="2">
47
+            &nbsp;&nbsp;
48
+          </el-col>  
45 49
           <el-col :span="5">
46 50
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round
47 51
                        @click="openAdviceTemplate()">选择医嘱模板
@@ -62,20 +66,8 @@
62 66
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round
63 67
                        @click="openDeleteGroupAdvice()">删除医嘱内容
64 68
             </el-button>
65
-
66 69
           </el-col>
67
-
68
-          <!-- <el-col :span="1">&nbsp;</el-col>
69
-          <el-col :span="4">
70
-            <el-button
71
-              :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
72
-              type="primary"
73
-              @click="openGroupChild()"
74
-            >添加子药内容</el-button>
75
-          </el-col> -->
76 70
         </el-row>
77
-
78
-
79 71
         <el-row>
80 72
           <el-col :span="24">
81 73
             <el-table

+ 4 - 38
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue View File

@@ -37,9 +37,8 @@
37 37
           </el-col>
38 38
         </el-row>
39 39
 
40
-        <el-row style="margin-bottom: 20px">
41
-
42
-
40
+        <el-row>
41
+          <el-col :span="2">&nbsp;&nbsp;</el-col>          
43 42
           <el-col :span="5">
44 43
             <el-button
45 44
               :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
@@ -48,39 +47,16 @@
48 47
             >选择医嘱模板
49 48
             </el-button>
50 49
           </el-col>
51
-          <el-col :span="1">&nbsp;</el-col>
52
-
53
-
54 50
           <el-col :span="5">
55
-            <!--<el-button-->
56
-            <!--:disabled="$store.getters.xt_user.subscibe.state==3?true:false"-->
57
-            <!--type="primary"-->
58
-            <!--@click="openGroupAdvice(0)"-->
59
-            <!--&gt;新增医嘱内容</el-button>-->
60
-
61 51
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round
62 52
                        @click="openGroupAdvice(0)">新增医嘱内容
63 53
             </el-button>
64
-
65
-
66 54
           </el-col>
67
-          <el-col :span="1">&nbsp;</el-col>
68
-
69
-
70 55
           <el-col :span="5">
71 56
             <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round
72 57
                        @click="openGroupAdvice(1)">修改医嘱内容
73 58
             </el-button>
74
-
75
-            <!--<el-button-->
76
-            <!--:disabled="$store.getters.xt_user.subscibe.state==3?true:false"-->
77
-            <!--type="primary"-->
78
-            <!--@click="openGroupAdvice(1)"-->
79
-            <!--&gt;修改医嘱内容</el-button>-->
80 59
           </el-col>
81
-          <el-col :span="1">&nbsp;</el-col>
82
-
83
-
84 60
           <el-col :span="5">
85 61
             <el-button
86 62
               :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
@@ -89,16 +65,6 @@
89 65
             >删除医嘱内容
90 66
             </el-button>
91 67
           </el-col>
92
-          <el-col :span="1">&nbsp;</el-col>
93
-
94
-          <!-- <el-col :span="1">&nbsp;</el-col>
95
-          <el-col :span="4">
96
-            <el-button
97
-              :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
98
-              type="primary"
99
-              @click="openGroupChild()"
100
-            >添加子药内容</el-button>
101
-          </el-col> -->
102 68
         </el-row>
103 69
 
104 70
 
@@ -389,7 +355,7 @@
389 355
                 allow-create
390 356
                 :disabled="isChild"
391 357
                 placeholder="请选择(输入可搜索)"
392
-                style="width:90%"
358
+                style="width:100%"
393 359
               >
394 360
                 <el-option
395 361
                   v-for="item in deliveryWayOptions"
@@ -409,7 +375,7 @@
409 375
                 allow-create
410 376
                 :disabled="isChild"
411 377
                 placeholder="请选择(输入可搜索)"
412
-                style="width:90%"
378
+                style="width:100%"
413 379
               >
414 380
                 <el-option
415 381
                   v-for="item in executionFrequencyOptions"

+ 9 - 17
src/xt_pages/user/components/EditGroupAdvice.vue View File

@@ -40,49 +40,41 @@
40 40
           </el-col>
41 41
         </el-row>
42 42
         <el-row style="margin-bottom: 20px">
43
+          <el-col :span="2">&nbsp;</el-col>
43 44
           <el-col :span="5">
44 45
             <el-button
45 46
               :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
46
-              type="primary"
47 47
               @click="openAdviceTemplate()"
48
+              round
48 49
             >选择医嘱模板
49 50
             </el-button>
50 51
           </el-col>
51
-          <el-col :span="1">&nbsp;</el-col>
52
+          
52 53
           <el-col :span="5">
53 54
             <el-button
54 55
               :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
55
-              type="primary"
56
+              round
56 57
               @click="openGroupAdvice(0)"
57 58
             >新增医嘱内容
58 59
             </el-button>
59 60
           </el-col>
60
-          <el-col :span="1">&nbsp;</el-col>
61
+          
61 62
           <el-col :span="5">
62 63
             <el-button
63 64
               :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
64
-              type="primary"
65
+              round              
65 66
               @click="openDeleteGroupAdvice()"
66 67
             >删除医嘱内容
67 68
             </el-button>
68 69
           </el-col>
69
-          <el-col :span="1">&nbsp;</el-col>
70 70
           <el-col :span="5">
71 71
             <el-button
72 72
               :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
73
-              type="primary"
73
+              round              
74 74
               @click="openGroupAdvice(1)"
75 75
             >修改医嘱内容
76 76
             </el-button>
77 77
           </el-col>
78
-          <!-- <el-col :span="1">&nbsp;</el-col>
79
-          <el-col :span="4">
80
-            <el-button
81
-              :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
82
-              type="primary"
83
-              @click="openGroupChild()"
84
-            >添加子药内容</el-button>
85
-          </el-col> -->
86 78
         </el-row>
87 79
         <el-row>
88 80
           <el-col :span="24">
@@ -374,7 +366,7 @@
374 366
                 allow-create
375 367
                 :disabled="isChild"
376 368
                 placeholder="请选择(输入可搜索)"
377
-                style="width:90%"
369
+                style="width:100%"
378 370
               >
379 371
                 <el-option
380 372
                   v-for="item in deliveryWayOptions"
@@ -394,7 +386,7 @@
394 386
                 allow-create
395 387
                 :disabled="isChild"
396 388
                 placeholder="请选择(输入可搜索)"
397
-                style="width:90%"
389
+                style="width:100%"
398 390
               >
399 391
                 <el-option
400 392
                   v-for="item in executionFrequencyOptions"

+ 1 - 1
src/xt_pages/user/dialysisSolution.vue View File

@@ -132,7 +132,7 @@
132 132
     width="1010px">
133 133
     <el-form ref="addPlan" :model="addPlan" :rules="addPlanRules" label-width="160px">
134 134
       <el-row :gutter="20">
135
-        <el-col  :span="8" style="height:59px;" >
135
+        <el-col  :span="8"  >
136 136
             <el-form-item label="透析模式:" prop="mode" >
137 137
               <el-select v-model="addPlan.mode" @change="addPlanModeChange" :disabled="isEdit?true:false" >
138 138
                 <el-option v-for="item in modeOptions"  :label="item.name" :key="item.id" :value="item.id"></el-option>

+ 12 - 24
src/xt_pages/user/doctorAdvice.vue View File

@@ -213,9 +213,8 @@
213 213
                             </el-form-item>
214 214
                         </el-col>
215 215
                         <el-col :span="12">
216
-
217
-                            <el-form-item label="开始时间 :" required prop="start_time">
218
-                                <el-date-picker type="datetime" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"  placeholder="选择时间" v-model="groupForm.start_time" ></el-date-picker>
216
+                            <el-form-item label="开始时间 :" required prop="start_time" style="width:100%;">
217
+                                <el-date-picker style="width:100%;" type="datetime" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"  placeholder="选择时间" v-model="groupForm.start_time" ></el-date-picker>
219 218
                             </el-form-item>
220 219
                         </el-col>
221 220
                     </el-row>
@@ -236,33 +235,22 @@
236 235
                         </el-col>
237 236
                     </el-row>
238 237
                     <el-row>
239
-                        <el-col :span="5">
240
-                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="openAdviceTemplate()">选择医嘱模板</el-button>
241
-                        </el-col>
242
-                        <el-col :span="1">
243
-                          &nbsp;
238
+                        <el-col :span="2">
239
+                           &nbsp;
244 240
                         </el-col>
245 241
                         <el-col :span="5">
246
-                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="openGroupAdvice(0)">新增医嘱内容</el-button>
247
-                        </el-col>
248
-                        <el-col :span="1">
249
-                          &nbsp;
242
+                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round  @click="openAdviceTemplate()">选择医嘱模板</el-button>
250 243
                         </el-col>
251 244
                         <el-col :span="5">
252
-                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="openDeleteGroupAdvice()">删除医嘱内容</el-button>
253
-                        </el-col>
254
-                        <el-col :span="1">
255
-                          &nbsp;
245
+                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round  @click="openGroupAdvice(0)">新增医嘱内容</el-button>
256 246
                         </el-col>
257 247
                         <el-col :span="5">
258
-                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="openGroupAdvice(1)">修改医嘱内容</el-button>
248
+                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round @click="openDeleteGroupAdvice()">删除医嘱内容</el-button>
259 249
                         </el-col>
260
-                        <!-- <el-col :span="1">
261
-                          &nbsp;
250
+                        <el-col :span="5">
251
+                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" round  @click="openGroupAdvice(1)">修改医嘱内容</el-button>
262 252
                         </el-col>
263
-                        <el-col :span="4">
264
-                            <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="openGroupChild()">添加子药内容</el-button>
265
-                        </el-col> -->
253
+                        
266 254
                     </el-row>
267 255
                     <el-row>
268 256
                       <el-col :span="24">
@@ -482,7 +470,7 @@
482 470
                     <el-row>
483 471
                         <el-col :span="12">
484 472
                             <el-form-item label="给药途径 :" prop="delivery_way">
485
-                                <el-select v-model="nameForm.delivery_way"  filterable clearable allow-create  :disabled='isChild' placeholder="请选择(输入可搜索)" style="width:90%" >
473
+                                <el-select v-model="nameForm.delivery_way"  filterable clearable allow-create  :disabled='isChild' placeholder="请选择(输入可搜索)" style="width:100%" >
486 474
                                     <el-option
487 475
                                     v-for="item in deliveryWayOptions"
488 476
                                     :key="item.id"
@@ -494,7 +482,7 @@
494 482
                         </el-col>
495 483
                         <el-col :span="12">
496 484
                             <el-form-item label="执行频率 :" prop="execution_frequency">
497
-                                 <el-select v-model="nameForm.execution_frequency"  filterable clearable allow-create :disabled='isChild' placeholder="请选择(输入可搜索)" style="width:90%" >
485
+                                 <el-select v-model="nameForm.execution_frequency"  filterable clearable allow-create :disabled='isChild' placeholder="请选择(输入可搜索)" style="width:100%" >
498 486
                                     <el-option
499 487
                                     v-for="item in executionFrequencyOptions"
500 488
                                     :key="item.id"

+ 3 - 3
src/xt_pages/workforce/components/setup_template_dialog.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
  <!-- top="5vh" -->
3
-    <el-dialog title="设置模板" width="50%" :visible.sync="visible" :before-close="_close">
3
+    <el-dialog title="设置模板" width="400px" :visible.sync="visible" :before-close="_close">
4 4
         <el-form :model="form" label-width="100px">
5 5
             <el-form-item label="模板启用数量">
6 6
                 <el-select v-model="form.mode" placeholder="">
@@ -10,7 +10,7 @@
10 10
                 </el-select>
11 11
             </el-form-item>
12 12
         </el-form>
13
-        <div style="text-align: right; padding-right: 25px; padding-top: 10px; padding-bottom: 10px;">
13
+        <div slot="footer" class="dialog-footer">
14 14
             <el-button @click="hide">取 消</el-button>
15 15
             <el-button :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false" type="primary" @click="saveAction">保 存</el-button>
16 16
         </div>
@@ -49,7 +49,7 @@ export default {
49 49
             done()
50 50
         },
51 51
         clear: function() {
52
-            
52
+         
53 53
         },
54 54
         show() {
55 55
             this.clear()

+ 2 - 2
src/xt_pages/workforce/components/template_table.vue View File

@@ -6,8 +6,8 @@
6 6
                     <el-button type="primary" size="small" @click="is_editing = true" icon="el-icon-edit-outline">编辑</el-button>
7 7
                 </div>
8 8
                 <div v-show="editable && is_editing">
9
-                    <el-button type="info" size="small" @click="is_editing = false" icon="el-icon-delete">取消</el-button>
10
-                    <el-button type="primary" size="small" icon="el-icon-document" @click="saveAction">保存</el-button>
9
+                    <el-button  size="small" @click="is_editing = false" icon="el-icon-refresh">取消</el-button>
10
+                    <el-button type="primary" size="small" icon="el-icon-setting" @click="saveAction">保存</el-button>
11 11
                 </div>
12 12
             </el-col>
13 13
         </el-row>

+ 13 - 13
src/xt_permission.js View File

@@ -10,19 +10,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
10 10
 
11 11
 router.beforeEach((to, from, next) => {
12 12
   // 线上注释
13
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
-  //   store.dispatch('VerifyConfigList', []).then(() => {
15
-  //     next()
16
-  //   })
17
-  // }
18
-  // if (store.getters.permission_routers === undefined) {
19
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
20
-  //     next()
21
-  //   })
22
-  // } else {
23
-  //   next()
24
-  // }
25
-  // return
13
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
14
+    store.dispatch('VerifyConfigList', []).then(() => {
15
+      next()
16
+    })
17
+  }
18
+  if (store.getters.permission_routers === undefined) {
19
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
20
+      next()
21
+    })
22
+  } else {
23
+    next()
24
+  }
25
+  return
26 26
   // 线上注释
27 27
 
28 28
   NProgress.start()