|
@@ -1,7 +1,7 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="patient-container">
|
3
|
3
|
<!-- <patient-sidebar :id="patient_id" defaultActive="3-1"></patient-sidebar> -->
|
4
|
|
- <PatientSidebar_new :id="patient_id" defaultActive="3-4"></PatientSidebar_new>
|
|
4
|
+ <PatientSidebar :id="patient_id" defaultActive="3-4"></PatientSidebar>
|
5
|
5
|
<!-- <div class="app-container"> -->
|
6
|
6
|
<div v-loading="loading">
|
7
|
7
|
<div class="patient-app-container advice-container app-container">
|
|
@@ -115,16 +115,87 @@
|
115
|
115
|
</div>
|
116
|
116
|
</div>
|
117
|
117
|
|
118
|
|
- <div style="margin-top: 30px;">
|
|
118
|
+ <div style="margin-top: 15px;">
|
119
|
119
|
<span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">详情</span>
|
120
|
120
|
<keep-alive>
|
121
|
121
|
<ueditor ref="ue" :content="new_content" id="editor"></ueditor>
|
122
|
122
|
</keep-alive>
|
123
|
123
|
</div>
|
|
124
|
+ <div style="text-align: right;margin-top:10px ;">
|
|
125
|
+ <el-button type="primary" size="small" @click="template_click">
|
|
126
|
+ {{ add_index == 0 ? '设置模板' : '模板库' }}
|
|
127
|
+ </el-button>
|
|
128
|
+ </div>
|
124
|
129
|
</div>
|
125
|
130
|
</div>
|
126
|
131
|
|
127
|
132
|
</div>
|
|
133
|
+ <el-dialog
|
|
134
|
+ title="设置模板"
|
|
135
|
+ :visible.sync="template_dialog"
|
|
136
|
+ width="20%"
|
|
137
|
+ center>
|
|
138
|
+ <div>
|
|
139
|
+ 模板名称:
|
|
140
|
+ <el-input v-model="template_name" placeholder="请输入内容" style="width: 160px;"></el-input>
|
|
141
|
+ </div>
|
|
142
|
+ <span slot="footer" class="dialog-footer">
|
|
143
|
+ <el-button @click="template_dialog = false">取 消</el-button>
|
|
144
|
+ <el-button type="primary" @click="template_save">确 定</el-button>
|
|
145
|
+ </span>
|
|
146
|
+ </el-dialog>
|
|
147
|
+ <el-dialog
|
|
148
|
+ title="模板库"
|
|
149
|
+ :visible.sync="library_dialog"
|
|
150
|
+ width="70%"
|
|
151
|
+ class="lirary"
|
|
152
|
+ >
|
|
153
|
+ <div>
|
|
154
|
+ <div style="display: flex;">
|
|
155
|
+ <div style="width: 27%;">
|
|
156
|
+ <el-table
|
|
157
|
+ :data="tableData"
|
|
158
|
+ :highlight-current-row="true"
|
|
159
|
+ @row-click="rowclick"
|
|
160
|
+ style="width: 100%">
|
|
161
|
+ <el-table-column
|
|
162
|
+ prop="index"
|
|
163
|
+ label="序号"
|
|
164
|
+ width="">
|
|
165
|
+ </el-table-column>
|
|
166
|
+ <el-table-column
|
|
167
|
+ prop="name"
|
|
168
|
+ label="模板名称"
|
|
169
|
+ width="">
|
|
170
|
+ </el-table-column>
|
|
171
|
+ </el-table>
|
|
172
|
+ </div>
|
|
173
|
+ <div style="width: 72%;margin-left: 10px;">
|
|
174
|
+ <div class="Second_title">模板内容</div>
|
|
175
|
+ <div style="">
|
|
176
|
+ <keep-alive>
|
|
177
|
+ <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
|
|
178
|
+ </keep-alive>
|
|
179
|
+ </div>
|
|
180
|
+ </div>
|
|
181
|
+ </div>
|
|
182
|
+ </div>
|
|
183
|
+ <span slot="footer" class="dialog-footer" style="text-align: center;">
|
|
184
|
+ <el-button type="danger" @click="template_dele">删除模板</el-button>
|
|
185
|
+ <el-button type="primary" @click="template_save">保存模板</el-button>
|
|
186
|
+ <el-button type="primary" @click="template_save">应用</el-button>
|
|
187
|
+ <el-button @click="library_dialog = false">取消</el-button>
|
|
188
|
+ </span>
|
|
189
|
+ </el-dialog>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
128
|
199
|
<!-- </div> -->
|
129
|
200
|
<el-dialog title="新增病史记录" width="70%" top="5vh" :visible.sync="show_dialog">
|
130
|
201
|
<div>
|
|
@@ -274,7 +345,6 @@
|
274
|
345
|
</el-dialog>
|
275
|
346
|
</div>
|
276
|
347
|
</div>
|
277
|
|
-
|
278
|
348
|
<!-- </div> -->
|
279
|
349
|
</template>
|
280
|
350
|
|
|
@@ -350,6 +420,10 @@ export default {
|
350
|
420
|
shen_fumo:'',
|
351
|
421
|
shen_yishen:'',
|
352
|
422
|
shen_guomi:'',
|
|
423
|
+ template_name:'',
|
|
424
|
+ template_dialog:false,
|
|
425
|
+ library_dialog:false,
|
|
426
|
+
|
353
|
427
|
yizhi_options:[{value:1,label:'无'},{value:2,label:'有'}],
|
354
|
428
|
yishen_options:[],
|
355
|
429
|
guomi_options:[{value:1,label:'无'},{value:2,label:'有'},{value:3,label:'不详'}],
|
|
@@ -394,21 +468,29 @@ export default {
|
394
|
468
|
this.fetchAllDoctorAndNurse()
|
395
|
469
|
|
396
|
470
|
},
|
|
471
|
+ mounted(){
|
|
472
|
+ // setTimeout(()=>{
|
|
473
|
+ // console.log('1111222',this.new_content);
|
|
474
|
+
|
|
475
|
+ // this.$refs.ue.parent.setDisabled()
|
|
476
|
+ // },10)
|
|
477
|
+ },
|
397
|
478
|
methods: {
|
398
|
479
|
add_click(){
|
399
|
480
|
this.disabled = false
|
400
|
481
|
this.add_index = 1
|
401
|
482
|
},
|
402
|
483
|
showSave(){
|
403
|
|
- // this.disabled = true
|
|
484
|
+ this.disabled = true
|
404
|
485
|
this.add_index = 0
|
405
|
486
|
},
|
406
|
487
|
showCancel(){
|
|
488
|
+ this.disabled = true
|
407
|
489
|
this.add_index = 0
|
408
|
490
|
},
|
409
|
491
|
rowclick(row,column, eventc){
|
410
|
492
|
console.log('row',row);
|
411
|
|
- // this.edit_index = row.index
|
|
493
|
+ this.edit_index = row.index
|
412
|
494
|
},
|
413
|
495
|
template_click(){
|
414
|
496
|
console.log('this.add_index',this.add_index);
|
|
@@ -684,56 +766,64 @@ export default {
|
684
|
766
|
</script>
|
685
|
767
|
|
686
|
768
|
<style rel="stylesheet/css" lang="scss" scoped>
|
687
|
|
-.container {
|
688
|
|
- margin-left: 180px;
|
689
|
|
- padding: 20px;
|
690
|
|
- background: #fff;
|
691
|
|
- min-height: calc(100vh - 173px);
|
692
|
|
- margin-bottom: 15px;
|
693
|
|
-
|
694
|
|
-.record {
|
695
|
|
- padding-top: 20px;
|
696
|
|
-}
|
|
769
|
+ .container {
|
|
770
|
+ margin-left: 180px;
|
|
771
|
+ padding: 20px;
|
|
772
|
+ background: #fff;
|
|
773
|
+ min-height: calc(100vh - 173px);
|
|
774
|
+ margin-bottom: 15px;
|
|
775
|
+
|
|
776
|
+ .record {
|
|
777
|
+ padding-top: 20px;
|
|
778
|
+ }
|
697
|
779
|
|
698
|
|
-}
|
699
|
|
-.record_content_panel {
|
700
|
|
- border-width: 1px;
|
701
|
|
- border-style: solid;
|
702
|
|
- border-color: #ebeef5;
|
703
|
|
- min-height: 200px;
|
704
|
|
-
|
705
|
|
-.title {
|
706
|
|
- font-size: 14px;
|
707
|
|
- font-weight: 500;
|
708
|
|
- color: #909399;
|
709
|
|
- line-height: 44px;
|
710
|
|
- height: 44px;
|
711
|
|
- text-align: center;
|
712
|
|
- border-bottom-width: 1px;
|
713
|
|
- border-bottom-style: solid;
|
714
|
|
- border-bottom-color: #ebeef5;
|
715
|
|
-}
|
|
780
|
+ }
|
|
781
|
+ .record_content_panel {
|
|
782
|
+ border-width: 1px;
|
|
783
|
+ border-style: solid;
|
|
784
|
+ border-color: #ebeef5;
|
|
785
|
+ min-height: 200px;
|
|
786
|
+
|
|
787
|
+ .title {
|
|
788
|
+ font-size: 14px;
|
|
789
|
+ font-weight: 500;
|
|
790
|
+ color: #909399;
|
|
791
|
+ line-height: 44px;
|
|
792
|
+ height: 44px;
|
|
793
|
+ text-align: center;
|
|
794
|
+ border-bottom-width: 1px;
|
|
795
|
+ border-bottom-style: solid;
|
|
796
|
+ border-bottom-color: #ebeef5;
|
|
797
|
+ }
|
716
|
798
|
|
717
|
|
-.content {
|
718
|
|
- padding: 12px 15px;
|
719
|
|
- font-size: 15px;
|
720
|
|
- color: gray;
|
721
|
|
- line-height: 22px;
|
722
|
|
-}
|
|
799
|
+ .content {
|
|
800
|
+ padding: 12px 15px;
|
|
801
|
+ font-size: 15px;
|
|
802
|
+ color: gray;
|
|
803
|
+ line-height: 22px;
|
|
804
|
+ }
|
723
|
805
|
|
724
|
|
-}
|
|
806
|
+ }
|
725
|
807
|
|
726
|
|
-.new_record_form {
|
|
808
|
+ .new_record_form {
|
727
|
809
|
|
728
|
|
-/*/ / padding: 10 px, 25 px;*/
|
|
810
|
+ /*/ / padding: 10 px, 25 px;*/
|
729
|
811
|
|
730
|
|
-.textarea_panel {
|
731
|
|
- margin-top: 10px;
|
732
|
|
-}
|
|
812
|
+ .textarea_panel {
|
|
813
|
+ margin-top: 10px;
|
|
814
|
+ }
|
733
|
815
|
|
734
|
|
-}
|
|
816
|
+ }
|
|
817
|
+ .Second_title{
|
|
818
|
+ border-left: 5px solid #3891f1f5;
|
|
819
|
+ text-align: left;
|
|
820
|
+ padding-left: 5px;
|
|
821
|
+ // margin-left: 10px;
|
|
822
|
+ margin-bottom: 5px;
|
|
823
|
+ font-size: 16px;
|
|
824
|
+ }
|
735
|
825
|
</style>
|
736
|
|
-<style>
|
|
826
|
+<style lang="scss">
|
737
|
827
|
.el-table td,
|
738
|
828
|
.el-table th.is-leaf,
|
739
|
829
|
.el-table--border,
|
|
@@ -745,4 +835,12 @@ export default {
|
745
|
835
|
.el-table::before {
|
746
|
836
|
background-color: #d0d3da;
|
747
|
837
|
}
|
|
838
|
+.lirary{
|
|
839
|
+ .el-dialog__body{
|
|
840
|
+ padding: 0px 20px !important;
|
|
841
|
+ }
|
|
842
|
+ .el-dialog__footer{
|
|
843
|
+ text-align: center;
|
|
844
|
+ }
|
|
845
|
+ }
|
748
|
846
|
</style>
|