|
@@ -58,11 +58,11 @@
|
58
|
58
|
|
59
|
59
|
|
60
|
60
|
<!-- 穿刺文字 @mousedown="mousedown($event)" active @mousedown="startDrag" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)" left:text_left+'px',top:text_top+'px',-->
|
61
|
|
- <!-- <div
|
|
61
|
+ <!-- <div
|
62
|
62
|
> width:(item.width + 10)+'px',-->
|
63
|
63
|
<div v-for="(item,index) in text_arr" :key="index" class="add-mark-text-wrap active text" id="text" @mousedown="mousedown($event)"
|
64
|
64
|
:style="{width: 'fit-content',left:item.left+'px',top:item.top+'px','font-size':14+'px', position: 'absolute'}"
|
65
|
|
- >
|
|
65
|
+ >
|
66
|
66
|
<!-- <el-input v-model="item.text" class="inputStyle">
|
67
|
67
|
<template slot="prefix">
|
68
|
68
|
{{ item.text }}
|
|
@@ -265,10 +265,10 @@
|
265
|
265
|
<div style="width: 200px;">住院(门诊)号:{{ patients.admission_number }}</div>
|
266
|
266
|
<div style="width: 200px;">打印时间:{{date}}</div>
|
267
|
267
|
</div>
|
268
|
|
-
|
|
268
|
+
|
269
|
269
|
<div style="width: 530px;margin: 20px auto;">
|
270
|
270
|
<img :src="imgUrls" alt="" srcset="">
|
271
|
|
-
|
|
271
|
+
|
272
|
272
|
</div>
|
273
|
273
|
<!-- </div> -->
|
274
|
274
|
</div>
|
|
@@ -301,7 +301,7 @@ export default{
|
301
|
301
|
shiyituDialogVisible:false,
|
302
|
302
|
dayinDialogVisible:false,
|
303
|
303
|
imgUrl:[],
|
304
|
|
-
|
|
304
|
+
|
305
|
305
|
fangxiangA:[{markNum:'',left:'',top:''}],//a端进针方向的数组
|
306
|
306
|
fangxiangA_num:1,//控制a端进针方向是否显示
|
307
|
307
|
fangxiangA_left:400,//A端进针方向X
|
|
@@ -312,7 +312,7 @@ export default{
|
312
|
312
|
fangxiangV_left:100,//v端进针方向X
|
313
|
313
|
fangxiangV_top:78,//v端进针方向Y
|
314
|
314
|
|
315
|
|
-
|
|
315
|
+
|
316
|
316
|
fuzhuA:[{a_markNum:0,a_left:0,a_top:0}],//助辅工具a的数组
|
317
|
317
|
fuzhuA_num:1,//控制a端辅助工具是否显示
|
318
|
318
|
xuanzhuan_a:0,//点击旋转角度a
|
|
@@ -343,8 +343,8 @@ export default{
|
343
|
343
|
|
344
|
344
|
av_bkx:0,
|
345
|
345
|
av_bky:0,
|
346
|
|
-
|
347
|
|
- fileList:[],//上传图片
|
|
346
|
+
|
|
347
|
+ fileList:[],
|
348
|
348
|
uploadData: { token: '', key: '' },
|
349
|
349
|
qiniuDomain: 'https://images.shengws.com/',
|
350
|
350
|
puncture_text:[{text:'穿刺角度',width:70},{text:'卡夫距导管出口距离cm',width:158},{text:'动脉端向心穿刺',width:116},{text:'动脉端离心穿刺',width:116},
|
|
@@ -378,10 +378,10 @@ export default{
|
378
|
378
|
}
|
379
|
379
|
},
|
380
|
380
|
created(){
|
381
|
|
-
|
|
381
|
+
|
382
|
382
|
const id = this.$route.params && this.$route.params.id;
|
383
|
383
|
this.patientID = parseInt(id);
|
384
|
|
-
|
|
384
|
+
|
385
|
385
|
// this.getPatientSitemap(this.patientID)
|
386
|
386
|
},
|
387
|
387
|
mounted(){
|
|
@@ -408,7 +408,7 @@ export default{
|
408
|
408
|
open(){
|
409
|
409
|
this.imgDialogVisible = true
|
410
|
410
|
},
|
411
|
|
-
|
|
411
|
+
|
412
|
412
|
a_item(e,val){
|
413
|
413
|
console.log('asdfasdf222',this.Aarr);
|
414
|
414
|
for(let i=0;i<this.Aarr.length;i++){
|
|
@@ -450,7 +450,7 @@ export default{
|
450
|
450
|
// }
|
451
|
451
|
}
|
452
|
452
|
},
|
453
|
|
-
|
|
453
|
+
|
454
|
454
|
A_mousedow(e){
|
455
|
455
|
console.log('7777',e);
|
456
|
456
|
// console.log('8888',val);
|
|
@@ -773,12 +773,12 @@ export default{
|
773
|
773
|
this.imgUrls = canvas.toDataURL("image/png");
|
774
|
774
|
// console.log('123424534',this.imgUrls)
|
775
|
775
|
});
|
776
|
|
-
|
777
|
|
-
|
|
776
|
+
|
|
777
|
+
|
778
|
778
|
},
|
779
|
779
|
// 打印
|
780
|
780
|
dayin(){
|
781
|
|
-
|
|
781
|
+
|
782
|
782
|
const style='@media print{.parint_content{width:960px;} #ossPointMarkImg {width: 520px;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} .mark-target-a{background: #E73535;top: 40px; left: 40px;} .mark-line{background: #E73535;} .mark-target-v{background: rgb(53,162,231);.mark-line{background: #35A2E7;}} .mark-target-a,.mark-target-v {position: absolute;z-index: 1001;width: 26px;border-radius: 13px;height: 26px;text-align: center;line-height: 26px;font-size: 18px;cursor: move;color: rgb(255,255,255);.mark-line {transform: rotate(160deg);transform-origin: left bottom;}.mark-line {display: inline-block;position: absolute;left: 50%;top: 50%;width: 86px;height: 1px;cursor: default;z-index: -1;}}'
|
783
|
783
|
printJS({
|
784
|
784
|
printable: "print_img",
|
|
@@ -1011,22 +1011,26 @@ export default{
|
1011
|
1011
|
for(let i=0;i<this.Aarr.length;i++){
|
1012
|
1012
|
this.Aarr[i].mark_num = parseInt(this.Aarr[i].markNum)?parseInt(this.Aarr[i].markNum):0
|
1013
|
1013
|
this.Aarr[i].is_status = parseInt(this.Aarr[i].status)?parseInt(this.Aarr[i].status):0
|
1014
|
|
- this.Aarr[i].left = parseInt(this.Aarr[i].left)?parseInt(this.Aarr[i].left):0
|
1015
|
|
- this.Aarr[i].top = parseInt(this.Aarr[i].top)?parseInt(this.Aarr[i].top):0
|
|
1014
|
+ this.Aarr[i].left = parseInt(this.Aarr[i].left)?parseInt(this.Aarr[i].left):0
|
|
1015
|
+ this.Aarr[i].top = parseInt(this.Aarr[i].top)?parseInt(this.Aarr[i].top):0
|
1016
|
1016
|
}
|
1017
|
1017
|
}
|
1018
|
1018
|
|
1019
|
1019
|
if(this.Varr!=null && this.Varr.length>0){
|
1020
|
|
-
|
|
1020
|
+
|
1021
|
1021
|
for(let i=0;i<this.Varr.length;i++){
|
1022
|
1022
|
this.Varr[i].mark_num = parseInt(this.Varr[i].markNum)?parseInt(this.Varr[i].markNum):0
|
1023
|
1023
|
this.Varr[i].is_status = parseInt(this.Varr[i].status)?parseInt(this.Varr[i].status):0
|
1024
|
|
- this.Varr[i].left = parseInt(this.Varr[i].left)?parseInt(this.Varr[i].left):0
|
1025
|
|
- this.Varr[i].top = parseInt(this.Varr[i].top)?parseInt(this.Varr[i].top):0
|
|
1024
|
+ this.Varr[i].left = parseInt(this.Varr[i].left)?parseInt(this.Varr[i].left):0
|
|
1025
|
+ this.Varr[i].top = parseInt(this.Varr[i].top)?parseInt(this.Varr[i].top):0
|
1026
|
1026
|
}
|
1027
|
1027
|
}
|
1028
|
|
-
|
1029
|
1028
|
|
|
1029
|
+
|
|
1030
|
+ var img_url = ""
|
|
1031
|
+ if(this.fileList!=null && this.fileList.length>0){
|
|
1032
|
+ img_url = this.fileList[0].img_url
|
|
1033
|
+ }
|
1030
|
1034
|
var params = {
|
1031
|
1035
|
id:this.id,
|
1032
|
1036
|
is_append:is_append,
|
|
@@ -1068,6 +1072,7 @@ export default{
|
1068
|
1072
|
left_v:0,
|
1069
|
1073
|
aarr:this.Aarr,
|
1070
|
1074
|
varr:this.Varr,
|
|
1075
|
+ img_url:img_url,
|
1071
|
1076
|
}
|
1072
|
1077
|
console.log("paramswowwo",params)
|
1073
|
1078
|
|
|
@@ -1075,7 +1080,7 @@ export default{
|
1075
|
1080
|
if(response.data.state == 1){
|
1076
|
1081
|
var deviceValsualMap = response.data.data.deviceValsualMap
|
1077
|
1082
|
this.$message.success("保存成功!")
|
1078
|
|
-
|
|
1083
|
+
|
1079
|
1084
|
this.append =false
|
1080
|
1085
|
this.getPatientSitemap(this.patientID)
|
1081
|
1086
|
}
|
|
@@ -1130,31 +1135,31 @@ export default{
|
1130
|
1135
|
this.text_num =sitemap.text_num
|
1131
|
1136
|
this.text_top = sitemap.text_top
|
1132
|
1137
|
this.v_num =sitemap.v_num
|
1133
|
|
-
|
|
1138
|
+
|
1134
|
1139
|
this.xuanzhuan_a = sitemap.xuanzhuan_a
|
1135
|
1140
|
this.xuanzhuan_v = sitemap.xuanzhuan_v
|
1136
|
|
-
|
|
1141
|
+
|
1137
|
1142
|
this.A_right = []
|
1138
|
|
-
|
|
1143
|
+
|
1139
|
1144
|
if(sitemap.DeviceValsualALeft!=null && sitemap.DeviceValsualALeft.length>0){
|
1140
|
1145
|
for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
|
1141
|
|
-
|
|
1146
|
+
|
1142
|
1147
|
sitemap.DeviceValsualALeft[i].markNum = sitemap.DeviceValsualALeft[i].mark_num
|
1143
|
1148
|
|
1144
|
1149
|
this.A_right.push(sitemap.DeviceValsualALeft[i])
|
1145
|
1150
|
}
|
1146
|
1151
|
}
|
1147
|
|
-
|
1148
|
|
- this.V_right = []
|
|
1152
|
+
|
|
1153
|
+ this.V_right = []
|
1149
|
1154
|
if(sitemap.DeviceValsualALeft!=null && sitemap.DeviceValsualALeft.length>0){
|
1150
|
1155
|
for(let i=0;i<sitemap.DeviceValsualALeft.length;i++){
|
1151
|
|
-
|
|
1156
|
+
|
1152
|
1157
|
sitemap.XtDeviceValsualVLeft[i].markNum = sitemap.XtDeviceValsualVLeft[i].mark_num
|
1153
|
1158
|
|
1154
|
1159
|
this.V_right.push(sitemap.XtDeviceValsualVLeft[i])
|
1155
|
1160
|
}
|
1156
|
1161
|
}
|
1157
|
|
-
|
|
1162
|
+
|
1158
|
1163
|
this.fuzhuA = []
|
1159
|
1164
|
if(sitemap.DeviceValsualFuzhuA!=null && sitemap.DeviceValsualFuzhuA.length>0){
|
1160
|
1165
|
for(let i=0;i<sitemap.DeviceValsualFuzhuA.length;i++){
|
|
@@ -1162,7 +1167,7 @@ export default{
|
1162
|
1167
|
this.fuzhuA.push( sitemap.DeviceValsualFuzhuA[i])
|
1163
|
1168
|
}
|
1164
|
1169
|
}
|
1165
|
|
-
|
|
1170
|
+
|
1166
|
1171
|
this.fuzhuV = []
|
1167
|
1172
|
if(sitemap.DeviceValsualFuzhuV!=null && sitemap.DeviceValsualFuzhuV.length>0){
|
1168
|
1173
|
for(let i=0;i<sitemap.DeviceValsualFuzhuV.length;i++){
|
|
@@ -1170,7 +1175,7 @@ export default{
|
1170
|
1175
|
this.fuzhuV.push( sitemap.DeviceValsualFuzhuV[i])
|
1171
|
1176
|
}
|
1172
|
1177
|
}
|
1173
|
|
-
|
|
1178
|
+
|
1174
|
1179
|
this.fangxiangA = []
|
1175
|
1180
|
if(sitemap.DeviceValsualMapFangxiangA!=null && sitemap.DeviceValsualMapFangxiangA.length>0){
|
1176
|
1181
|
for(let i=0;i<sitemap.DeviceValsualMapFangxiangA.length;i++){
|
|
@@ -1186,16 +1191,16 @@ export default{
|
1186
|
1191
|
sitemap.DeviceValsualMapFangxiangV[i].markNum = sitemap.DeviceValsualMapFangxiangV[i].mark_num
|
1187
|
1192
|
this.fangxiangV.push(sitemap.DeviceValsualMapFangxiangV[i])
|
1188
|
1193
|
}
|
1189
|
|
- }
|
|
1194
|
+ }
|
1190
|
1195
|
console.log('222222222222',this.fangxiangV);
|
1191
|
|
-
|
|
1196
|
+
|
1192
|
1197
|
this.text_arr = []
|
1193
|
1198
|
if(sitemap.DeviceValsualTextArr!=null && sitemap.DeviceValsualTextArr.length>0){
|
1194
|
1199
|
for(let i=0;i<sitemap.DeviceValsualTextArr.length;i++){
|
1195
|
1200
|
this.text_arr.push(sitemap.DeviceValsualTextArr[i])
|
1196
|
1201
|
}
|
1197
|
1202
|
}
|
1198
|
|
-
|
|
1203
|
+
|
1199
|
1204
|
|
1200
|
1205
|
this.Aarr = []
|
1201
|
1206
|
if(sitemap.DeviceValusalMapArr!=null && sitemap.DeviceValusalMapArr.length>0){
|
|
@@ -1205,7 +1210,7 @@ export default{
|
1205
|
1210
|
this.Aarr.push(sitemap.DeviceValusalMapArr[i])
|
1206
|
1211
|
}
|
1207
|
1212
|
}
|
1208
|
|
-
|
|
1213
|
+
|
1209
|
1214
|
|
1210
|
1215
|
this.Varr = []
|
1211
|
1216
|
if(sitemap.DeviceValusalMapVrr!=null && sitemap.DeviceValusalMapVrr.length>0){
|
|
@@ -1215,14 +1220,14 @@ export default{
|
1215
|
1220
|
this.Varr.push(sitemap.DeviceValusalMapVrr[i])
|
1216
|
1221
|
}
|
1217
|
1222
|
}
|
1218
|
|
-
|
1219
|
|
-
|
|
1223
|
+
|
|
1224
|
+ this.fileList[0].img_url = sitemap.img_url
|
1220
|
1225
|
}
|
1221
|
1226
|
|
1222
|
1227
|
}
|
1223
|
1228
|
})
|
1224
|
1229
|
},
|
1225
|
|
-
|
|
1230
|
+
|
1226
|
1231
|
chakan(){
|
1227
|
1232
|
console.log('22222',);
|
1228
|
1233
|
this.shiyituDialogVisible=true
|
|
@@ -1242,7 +1247,7 @@ export default{
|
1242
|
1247
|
// let input = document.getElementById("inpu");
|
1243
|
1248
|
// const l = input.value.length;
|
1244
|
1249
|
// this.widthtext=(l+1) * 15 + "px"
|
1245
|
|
- // input.style.width = (l+1) * 15 + "px";
|
|
1250
|
+ // input.style.width = (l+1) * 15 + "px";
|
1246
|
1251
|
}
|
1247
|
1252
|
},
|
1248
|
1253
|
created(){
|