|
@@ -516,50 +516,50 @@
|
516
|
516
|
|
517
|
517
|
},
|
518
|
518
|
autotext_click(){
|
519
|
|
- this.$nextTick(()=>{
|
520
|
|
- const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
|
521
|
|
- var newListArr =[]
|
522
|
|
- for(let j in this.tab){
|
523
|
|
- const obj={
|
524
|
|
- id:this.tab[j].id,
|
525
|
|
- newlist:'newList'+j
|
526
|
|
- }
|
527
|
|
- newListArr.push(obj)
|
528
|
|
- }
|
529
|
|
- for(let i in this.tab){
|
530
|
|
- for(let j in newListArr){
|
531
|
|
- if(this.tab[i].id==newListArr[j].id){
|
532
|
|
- let newList = document.createElement('p');
|
533
|
|
- newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
|
534
|
|
- let newListItem1 = document.createElement('span');
|
535
|
|
- newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
536
|
|
- let newListItem2 = document.createElement('span');
|
537
|
|
- newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
538
|
|
- let newListItem3 = document.createElement('span');
|
539
|
|
- newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
540
|
|
- let newListItem4 = document.createElement('span');
|
541
|
|
- newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
542
|
|
- let newListItem5 = document.createElement('span');
|
543
|
|
- newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
544
|
|
- let newListItem6 = document.createElement('span');
|
545
|
|
- newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
|
546
|
|
- newListItem1.textContent = this.tab[i].name;
|
547
|
|
- newListItem2.textContent = this.tab[i].type;
|
548
|
|
- newListItem3.textContent = this.tab[i].start;
|
549
|
|
- newListItem4.textContent = this.tab[i].dosage;
|
550
|
|
- newListItem5.textContent = this.tab[i].pinlv;
|
551
|
|
- newListItem6.textContent = this.tab[i].status;
|
552
|
|
- newList.appendChild(newListItem1);
|
553
|
|
- newList.appendChild(newListItem2);
|
554
|
|
- newList.appendChild(newListItem3);
|
555
|
|
- newList.appendChild(newListItem4);
|
556
|
|
- newList.appendChild(newListItem5);
|
557
|
|
- newList.appendChild(newListItem6);
|
558
|
|
- iframeDoc.appendChild(newList)
|
559
|
|
- }
|
560
|
|
- }
|
561
|
|
- }
|
562
|
|
- })
|
|
519
|
+ // this.$nextTick(()=>{
|
|
520
|
+ // const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
|
|
521
|
+ // var newListArr =[]
|
|
522
|
+ // for(let j in this.tab){
|
|
523
|
+ // const obj={
|
|
524
|
+ // id:this.tab[j].id,
|
|
525
|
+ // newlist:'newList'+j
|
|
526
|
+ // }
|
|
527
|
+ // newListArr.push(obj)
|
|
528
|
+ // }
|
|
529
|
+ // for(let i in this.tab){
|
|
530
|
+ // for(let j in newListArr){
|
|
531
|
+ // if(this.tab[i].id==newListArr[j].id){
|
|
532
|
+ // let newList = document.createElement('p');
|
|
533
|
+ // newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
|
|
534
|
+ // let newListItem1 = document.createElement('span');
|
|
535
|
+ // newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
536
|
+ // let newListItem2 = document.createElement('span');
|
|
537
|
+ // newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
538
|
+ // let newListItem3 = document.createElement('span');
|
|
539
|
+ // newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
540
|
+ // let newListItem4 = document.createElement('span');
|
|
541
|
+ // newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
542
|
+ // let newListItem5 = document.createElement('span');
|
|
543
|
+ // newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
|
|
544
|
+ // let newListItem6 = document.createElement('span');
|
|
545
|
+ // newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
|
|
546
|
+ // newListItem1.textContent = this.tab[i].name;
|
|
547
|
+ // newListItem2.textContent = this.tab[i].type;
|
|
548
|
+ // newListItem3.textContent = this.tab[i].start;
|
|
549
|
+ // newListItem4.textContent = this.tab[i].dosage;
|
|
550
|
+ // newListItem5.textContent = this.tab[i].pinlv;
|
|
551
|
+ // newListItem6.textContent = this.tab[i].status;
|
|
552
|
+ // newList.appendChild(newListItem1);
|
|
553
|
+ // newList.appendChild(newListItem2);
|
|
554
|
+ // newList.appendChild(newListItem3);
|
|
555
|
+ // newList.appendChild(newListItem4);
|
|
556
|
+ // newList.appendChild(newListItem5);
|
|
557
|
+ // newList.appendChild(newListItem6);
|
|
558
|
+ // iframeDoc.appendChild(newList)
|
|
559
|
+ // }
|
|
560
|
+ // }
|
|
561
|
+ // }
|
|
562
|
+ // })
|
563
|
563
|
this.AuToShow = true
|
564
|
564
|
// this.getAutoPatientContent()
|
565
|
565
|
},
|