|
|
@ -156,6 +156,9 @@ export default { |
|
|
|
if (this.curIndex === index) { |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.name === '门急诊电子病历') { |
|
|
|
this.isPlatform = false |
|
|
|
} |
|
|
|
// 360视图和非本平台表单不用保存 |
|
|
|
if (this.onlyRead || !this.isPlatform) { |
|
|
|
this.curIndex = index |
|
|
@ -165,21 +168,13 @@ export default { |
|
|
|
this.isPlatform = this.isSearch === item.platform |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.name === '门急诊电子病历') { |
|
|
|
this.confirmChange().finally(() => { |
|
|
|
this.curIndex = index |
|
|
|
this.id = item.id |
|
|
|
this.name = item.name |
|
|
|
this.caseId = item.id |
|
|
|
this.isPlatform = this.isSearch === item.platform |
|
|
|
} else { |
|
|
|
this.confirmChange().finally(() => { |
|
|
|
this.curIndex = index |
|
|
|
this.id = item.id |
|
|
|
this.name = item.name |
|
|
|
this.caseId = item.id |
|
|
|
this.isPlatform = this.isSearch === item.platform |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 切换保存 |
|
|
|
confirmChange() { |
|
|
|