|
@@ -1,8 +1,11 @@
|
1
|
1
|
<template>
|
2
|
|
-
|
|
2
|
+ <!-- <div class="main-contain">
|
|
3
|
+ <div class="position">
|
|
4
|
+ <bread-crumb></bread-crumb>
|
|
5
|
+ </div> -->
|
3
|
6
|
<div class="patient-container">
|
4
|
7
|
<PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
|
5
|
|
-
|
|
8
|
+
|
6
|
9
|
<div v-loading="loading">
|
7
|
10
|
<div class="patient-app-container advice-container app-container" style="">
|
8
|
11
|
<div style="display: flex;">
|
|
@@ -22,7 +25,7 @@
|
22
|
25
|
:highlight-current-row="true"
|
23
|
26
|
@current-change="getCurrentChangeOne"
|
24
|
27
|
style="width: 100%">
|
25
|
|
-
|
|
28
|
+
|
26
|
29
|
<el-table-column prop="index" label="序号" width="50">
|
27
|
30
|
<template slot-scope="scope">
|
28
|
31
|
{{ scope.$index + 1 }}
|
|
@@ -90,7 +93,7 @@
|
90
|
93
|
自动生成
|
91
|
94
|
</el-button>
|
92
|
95
|
</div>
|
93
|
|
-
|
|
96
|
+
|
94
|
97
|
<ueditor ref="editor" id="editors" :content="new_content"></ueditor>
|
95
|
98
|
</div>
|
96
|
99
|
</div>
|
|
@@ -203,14 +206,14 @@
|
203
|
206
|
</div>
|
204
|
207
|
</div>
|
205
|
208
|
</div>
|
206
|
|
-
|
|
209
|
+
|
207
|
210
|
</el-dialog>
|
208
|
211
|
|
209
|
212
|
|
210
|
213
|
|
211
|
214
|
|
212
|
|
-
|
213
|
|
-
|
|
215
|
+
|
|
216
|
+
|
214
|
217
|
</div>
|
215
|
218
|
</div>
|
216
|
219
|
|
|
@@ -298,7 +301,7 @@
|
298
|
301
|
},
|
299
|
302
|
created() {
|
300
|
303
|
this.admin_user_id = this.$store.getters.xt_user.user.id
|
301
|
|
-
|
|
304
|
+
|
302
|
305
|
this.patient_id = parseInt(this.$route.query.id)
|
303
|
306
|
this.org_id = this.$store.getters.xt_user.template_info.org_id;
|
304
|
307
|
if (isNaN(this.patient_id) || this.patient_id <= 0) {
|
|
@@ -312,7 +315,7 @@
|
312
|
315
|
|
313
|
316
|
this.fetchAllDoctorAndNurse()
|
314
|
317
|
this.getlist()
|
315
|
|
-
|
|
318
|
+
|
316
|
319
|
|
317
|
320
|
},
|
318
|
321
|
methods: {
|
|
@@ -327,7 +330,7 @@
|
327
|
330
|
this.id = val.id
|
328
|
331
|
},
|
329
|
332
|
getCurrentChangeTwo(val){
|
330
|
|
-
|
|
333
|
+
|
331
|
334
|
this.$refs.editorOne.contents = val.content
|
332
|
335
|
this.template_content = ""
|
333
|
336
|
this.template_content = val.content
|
|
@@ -353,7 +356,7 @@
|
353
|
356
|
|
354
|
357
|
},
|
355
|
358
|
saveTemplate(){
|
356
|
|
-
|
|
359
|
+
|
357
|
360
|
var params = {
|
358
|
361
|
title:this.title,
|
359
|
362
|
content: this.$refs.editor.contents,
|
|
@@ -371,7 +374,7 @@
|
371
|
374
|
template_id:this.template_id,
|
372
|
375
|
content:this.$refs.editorOne.contents
|
373
|
376
|
}
|
374
|
|
-
|
|
377
|
+
|
375
|
378
|
saveCourseOfNewTemplate(params).then(response=>{
|
376
|
379
|
if(response.data.state == 1){
|
377
|
380
|
var msg = response.data.data.msg
|
|
@@ -398,7 +401,7 @@
|
398
|
401
|
var list = response.data.data.list
|
399
|
402
|
this.tableData = []
|
400
|
403
|
this.tableData = list
|
401
|
|
-
|
|
404
|
+
|
402
|
405
|
}
|
403
|
406
|
})
|
404
|
407
|
},
|
|
@@ -448,7 +451,7 @@
|
448
|
451
|
}
|
449
|
452
|
|
450
|
453
|
}).catch(error => {
|
451
|
|
-
|
|
454
|
+
|
452
|
455
|
})
|
453
|
456
|
},
|
454
|
457
|
template_click(){
|
|
@@ -466,10 +469,10 @@
|
466
|
469
|
this.$refs.record_table_one.setCurrentRow(this.templateList[0])
|
467
|
470
|
}
|
468
|
471
|
console.log("haaaaaaaaaaaaa",this.templateList)
|
469
|
|
-
|
|
472
|
+
|
470
|
473
|
}
|
471
|
474
|
})
|
472
|
|
-
|
|
475
|
+
|
473
|
476
|
}
|
474
|
477
|
},
|
475
|
478
|
auto_click(){
|
|
@@ -553,7 +556,7 @@
|
553
|
556
|
createAction() {
|
554
|
557
|
console.log("haaaaaaaaaaaaaaa",this.$refs)
|
555
|
558
|
this.new_content = this.$refs.editor.contents
|
556
|
|
-
|
|
559
|
+
|
557
|
560
|
if (this.new_content.length == 0) {
|
558
|
561
|
this.$message.error('请填写病程内容')
|
559
|
562
|
return
|
|
@@ -573,7 +576,7 @@
|
573
|
576
|
}
|
574
|
577
|
|
575
|
578
|
}).catch(error => {
|
576
|
|
-
|
|
579
|
+
|
577
|
580
|
})
|
578
|
581
|
},
|
579
|
582
|
didSelectTemplate: function(templateContent) {
|
|
@@ -618,7 +621,7 @@
|
618
|
621
|
|
619
|
622
|
},
|
620
|
623
|
showEdit() {
|
621
|
|
-
|
|
624
|
+
|
622
|
625
|
this.add_index =1
|
623
|
626
|
this.disabled = false
|
624
|
627
|
|
|
@@ -902,4 +905,11 @@
|
902
|
905
|
text-align: center;
|
903
|
906
|
}
|
904
|
907
|
}
|
|
908
|
+ .course{
|
|
909
|
+ .el-dialog{
|
|
910
|
+ height: 90%;
|
|
911
|
+ // position: fixed !important;
|
|
912
|
+ // top: 10% !important;
|
|
913
|
+ }
|
|
914
|
+ }
|
905
|
915
|
</style>
|