|
@@ -57,15 +57,16 @@
|
57
|
57
|
</div> -->
|
58
|
58
|
|
59
|
59
|
|
60
|
|
- <!-- 穿刺文字 active @mousedown="startDrag" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)" left:text_left+'px',top:text_top+'px',-->
|
61
|
|
- <!-- <div >@mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)" -->
|
|
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
|
|
62
|
+ > -->
|
62
|
63
|
<div v-for="(item,index) in text_arr" :key="index" class="add-mark-text-wrap active text" id="text" @mousedown="mousedown($event)"
|
63
|
64
|
:style="{width:(item.width + 10)+'px',left:item.left+'px',top:item.top+'px','font-size':14+'px', position: 'absolute'}"
|
64
|
|
- >
|
|
65
|
+ >
|
65
|
66
|
<!-- <div style="width:82px;left:62.17%;top:39.00%;display: inline-block;" @mousedown="A_mousedow($event)" @mouseup="A_moouseup($event)">position: 'absolute',top: 36+'%',left: 48+'%' -->
|
66
|
67
|
<!-- {{ item }} @mousedown.self="A_mousedow($event)" @mouseup.self="A_moouseup($event)"-->
|
67
|
|
- <el-input v-text="item.text" size="mini" :style="{width:item.width+'px', border: 1+'px solid transparent', cursor: 'default'}"></el-input>
|
68
|
|
- <!-- <input id="inpu" type="text" :value="item" data-width="82" style="width: 82px; border: 1px solid transparent; cursor: default;" class="mark-text-ipt"> -->
|
|
68
|
+ <!-- <el-input v-model="item.text" size="mini" :style="{width:item.width+'px', border: 1+'px solid transparent', cursor: 'default'}"></el-input> -->
|
|
69
|
+ <input id="inpu" type="text" v-bind:value="item.text" data-width="82" :style="{width:item.width+'px', border: 1+'px solid transparent', cursor: 'default',outline: 'none'}" class="mark-text-ipt">
|
69
|
70
|
<!-- </div> -->
|
70
|
71
|
<span class="remove-mark-text" @click="input_deldte($event,item)">×</span>
|
71
|
72
|
<span class="mark-text-line" style="transform: rotate(45deg);" data-rotate="45"></span>
|
|
@@ -251,6 +252,7 @@ export default{
|
251
|
252
|
},
|
252
|
253
|
data(){
|
253
|
254
|
return{
|
|
255
|
+ hidd:false,
|
254
|
256
|
append:false,//控制是否编辑
|
255
|
257
|
centerDialogVisible: false,
|
256
|
258
|
imgDialogVisible:false,
|
|
@@ -334,6 +336,7 @@ export default{
|
334
|
336
|
patientID:0,
|
335
|
337
|
id:0,
|
336
|
338
|
texts:null,
|
|
339
|
+ value:'',
|
337
|
340
|
}
|
338
|
341
|
},
|
339
|
342
|
created(){
|
|
@@ -362,9 +365,9 @@ export default{
|
362
|
365
|
this.append = false
|
363
|
366
|
this.centerDialogVisible = false
|
364
|
367
|
},
|
365
|
|
- open(){
|
366
|
|
- this.imgDialogVisible = true
|
367
|
|
- },
|
|
368
|
+ // open(){
|
|
369
|
+ // this.imgDialogVisible = true
|
|
370
|
+ // },
|
368
|
371
|
|
369
|
372
|
a_item(e,val){
|
370
|
373
|
console.log('asdfasdf222',this.Aarr);
|
|
@@ -512,14 +515,15 @@ export default{
|
512
|
515
|
document.onmousemove =null
|
513
|
516
|
},
|
514
|
517
|
mousedown(e){
|
515
|
|
- // this.texts = document.getElementsByClassName('text')[0]
|
516
|
518
|
const tet=document.getElementsByClassName('text')
|
517
|
|
- const evetext=e.target.innerText.split('\n')[0]
|
518
|
519
|
var textlen=this.text_arr
|
519
|
|
- console.log('ZXCBVCB',textlen);
|
|
520
|
+ console.log('ZXCBVCB',textlen,e.target.value);
|
|
521
|
+ const even= e.target.value
|
|
522
|
+ // console.log('zxcvbnvxcz',even);
|
520
|
523
|
for(let i=0;i<tet.length;i++){
|
521
|
|
- const textsle = tet[i].innerText.split('\n')[0]
|
522
|
|
- if(evetext == textsle){
|
|
524
|
+ const textsle= tet[i].firstChild.value
|
|
525
|
+ // console.log('5234254',textsle);
|
|
526
|
+ if(even == textsle){
|
523
|
527
|
const disX = e.clientX - tet[i].offsetLeft;
|
524
|
528
|
const disY = e.clientY - tet[i].offsetTop;
|
525
|
529
|
const isdow=true
|
|
@@ -533,7 +537,7 @@ export default{
|
533
|
537
|
tet[i].style.top = moveY + "px";
|
534
|
538
|
for(let i=0;i<textlen.length;i++){
|
535
|
539
|
// const textsle=e.target.innerText.split('\n')[0]
|
536
|
|
- if(textlen[i].text == textsle){
|
|
540
|
+ if(textlen[i].text == e.target.value){
|
537
|
541
|
console.log('3333');
|
538
|
542
|
textlen[i].left=moveX
|
539
|
543
|
textlen[i].top=moveY
|
|
@@ -547,6 +551,7 @@ export default{
|
547
|
551
|
}
|
548
|
552
|
}
|
549
|
553
|
},
|
|
554
|
+
|
550
|
555
|
fuzhuA_down(e){
|
551
|
556
|
const fuzhuA= document.getElementById('jinzhen-jiaodu-target-A')
|
552
|
557
|
const fuzhua_x =e.clientX - fuzhuA.offsetLeft
|
|
@@ -719,7 +724,7 @@ export default{
|
719
|
724
|
}
|
720
|
725
|
},
|
721
|
726
|
printtup(){
|
722
|
|
- const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} .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;} div.add-mark-text-wrap {position: absolute;top: 36%;left: 48%;border-radius: 4px;width: 60px;height: 24px;line-height: 24px;z-index: 1005;display: inline-block;} .remove-mark-text{overflow: hidden;} b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;} b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;}div.frame-image {position: absolute;overflow: hidden;top: 0px;left: 0px;width: 100%;height: 100%;background-image: url('+'../../assets/evaluate/tool-a.png'+');background-position: center center;background-size: 100%; background-repeat: no-repeat;}}}'
|
|
727
|
+ const style='@media print{.print_main_content{#ossPointMarkImg {width: 520px;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} .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;} div.add-mark-text-wrap {position: absolute;top: 36%;left: 48%;border-radius: 4px;width: 60px;height: 24px;line-height: 24px;z-index: 1005;display: inline-block;} .remove-mark-text{overflow: hidden;} b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;} b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;}div.frame-image {position: absolute;overflow: hidden;top: 0px;left: 0px;width: 100%;height: 100%;background-image: url('+'../../assets/evaluate/tool-a.png'+');background-position: center center;background-size: 100%; background-repeat: no-repeat;}}}'
|
723
|
728
|
// const style='@media print{.print_main_content{#ossPointMarkImg {width: 100%;min-height: 600px;height: auto;border-radius: 2px;pointer-events: none;} #point_mark_img_wrap1 {-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;position: relative;padding: 4px;width: 600px;background-color: #fff;border: 1px solid #ddd;border-radius: 4px;} b.xtgl-ccz-arrow-a {border-left-color: #E73535;border-top-color: #E73535;}
|
724
|
729
|
// b.xtgl-ccz-arrow {position: absolute;width: 7px;height: 7px;border-left-width: 2px;border-left-style: solid;border-top-width: 2px;border-top-style: solid;top: -3px;right: 0;transform: rotate(138deg);} b.xtgl-ccz-arrow-v {border-left-color: #35a2e7;border-top-color: #35a2e7;}
|
725
|
730
|
// .mark-target-a{background: #E73535;top: 40px;left: 40px;} .mark-line{background: #E73535;}}}'
|
|
@@ -731,6 +736,7 @@ export default{
|
731
|
736
|
style: style,
|
732
|
737
|
scanStyles: false
|
733
|
738
|
});
|
|
739
|
+
|
734
|
740
|
},
|
735
|
741
|
imgv_click(){
|
736
|
742
|
if(this.img_v==false){
|