|
@@ -3392,16 +3392,21 @@ export default {
|
3392
|
3392
|
const ele = this.$refs.imageInspectText
|
3393
|
3393
|
let text = null
|
3394
|
3394
|
let newVal = ''
|
3395
|
|
- Array.from(ele.children).forEach((item) => {
|
3396
|
|
- const child = item.children[0]
|
3397
|
|
- if (item.children[0].className === 'string') {
|
3398
|
|
- newVal = newVal + child.textContent
|
3399
|
|
- } else if (item.children[0].className === 'select') {
|
3400
|
|
- newVal = newVal + child.children[0].value
|
3401
|
|
- }
|
3402
|
|
- })
|
3403
|
|
- text = newVal.replace(/\s/g, '')
|
3404
|
|
- console.log(text);
|
|
3395
|
+
|
|
3396
|
+ if(ele.innerText){
|
|
3397
|
+ text = ele.innerText
|
|
3398
|
+ }else {
|
|
3399
|
+ Array.from(ele.children).forEach((item) => {
|
|
3400
|
+ const child = item.children[0]
|
|
3401
|
+ if (item.children[0].className === 'string') {
|
|
3402
|
+ console.log(item.children[0],"newVal + child.textContent");
|
|
3403
|
+ newVal = newVal + child.textContent
|
|
3404
|
+ } else if (item.children[0].className === 'select') {
|
|
3405
|
+ newVal = newVal + child.children[0].value
|
|
3406
|
+ }
|
|
3407
|
+ })
|
|
3408
|
+ text = newVal.replace(/\s/g, '')
|
|
3409
|
+ }
|
3405
|
3410
|
this.$emit('changeImageingInspect', text)
|
3406
|
3411
|
},
|
3407
|
3412
|
changeTreatmentPlanning() {
|
|
@@ -3438,15 +3443,20 @@ export default {
|
3438
|
3443
|
const ele = this.$refs.noteText
|
3439
|
3444
|
let text = null
|
3440
|
3445
|
let newVal = ''
|
3441
|
|
- Array.from(ele.children).forEach((item) => {
|
3442
|
|
- const child = item.children[0]
|
3443
|
|
- if (item.children[0].className === 'string') {
|
3444
|
|
- newVal = newVal + child.textContent
|
3445
|
|
- } else if (item.children[0].className === 'select') {
|
3446
|
|
- newVal = newVal + child.children[0].value
|
3447
|
|
- }
|
3448
|
|
- })
|
3449
|
|
- text = newVal.replace(/\s/g, '')
|
|
3446
|
+ if(ele.innerText){
|
|
3447
|
+ text = ele.innerText
|
|
3448
|
+ }else {
|
|
3449
|
+ Array.from(ele.children).forEach((item) => {
|
|
3450
|
+ const child = item.children[0]
|
|
3451
|
+ if (item.children[0].className === 'string') {
|
|
3452
|
+ console.log(item.children[0],"newVal + child.textContent");
|
|
3453
|
+ newVal = newVal + child.textContent
|
|
3454
|
+ } else if (item.children[0].className === 'select') {
|
|
3455
|
+ newVal = newVal + child.children[0].value
|
|
3456
|
+ }
|
|
3457
|
+ })
|
|
3458
|
+ text = newVal.replace(/\s/g, '')
|
|
3459
|
+ }
|
3450
|
3460
|
this.$emit('changeNote', text)
|
3451
|
3461
|
},
|
3452
|
3462
|
cancelNote() {
|
|
@@ -3629,24 +3639,6 @@ export default {
|
3629
|
3639
|
this.allList = []
|
3630
|
3640
|
this.$message.success(`${status==1?'保存':'提交'}成功!`)
|
3631
|
3641
|
} else {
|
3632
|
|
- // let arr = []
|
3633
|
|
- // this.allList.forEach((item) => {
|
3634
|
|
- // arr.push({
|
3635
|
|
- // toothStatus:
|
3636
|
|
- // this.tagList.findIndex(
|
3637
|
|
- // (i) => i.toothStatus == item.toothStatus
|
3638
|
|
- // ) != -1
|
3639
|
|
- // ? this.tagList[
|
3640
|
|
- // this.tagList.findIndex(
|
3641
|
|
- // (i) => i.toothStatus == item.toothStatus
|
3642
|
|
- // )
|
3643
|
|
- // ].toothStatus
|
3644
|
|
- // : null,
|
3645
|
|
- // toothPosition: item.toothPosition,
|
3646
|
|
- // diagnosisManageId: item.mainDiagnosisId,
|
3647
|
|
- // diagnosisTypeTemplateId: item.id
|
3648
|
|
- // })
|
3649
|
|
- // })
|
3650
|
3642
|
this.tagList.forEach((item) => {
|
3651
|
3643
|
item.toothPosition = item.toothPosition
|
3652
|
3644
|
item.diagnosisManageId = item.mainDiagnosisId
|