|
@@ -100,7 +100,7 @@
|
|
|
</el-button-group>
|
|
|
</el-header>
|
|
|
<el-container>
|
|
|
- <div :class="foldBothSides.isLeft ? 'editor-template-open' : 'editor-template-put-away' ">
|
|
|
+ <div :class="foldBothSides.isLeft ? 'emr-template-open' : 'emr-template-put-away' ">
|
|
|
<emr-sidebar @nodeClick="nodeClick"
|
|
|
@patient-medical-record="foldBothSides.isLeft = true"
|
|
|
v-show="foldBothSides.isLeft"
|
|
@@ -258,7 +258,7 @@
|
|
|
:src="caseHistoryUrl"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div :class="foldBothSides.isRight ? 'editor-fragment-open' : 'editor-fragment-put-away' ">
|
|
|
+ <div :class="foldBothSides.isRight ? 'emr-fragment-open' : 'emr-fragment-put-away' ">
|
|
|
<emr-snippet
|
|
|
v-show="foldBothSides.isRight"
|
|
|
@node-click="clickSnippet"
|
|
@@ -330,7 +330,7 @@ let documentId = $ref('')
|
|
|
let patientId = $ref('')
|
|
|
let categoryId = $ref('')
|
|
|
let templateName = $ref('')
|
|
|
-let caseHistoryUrl = $ref('/editor/runtime/#/editor')
|
|
|
+let caseHistoryUrl = $ref('/emr/runtime/#/editor')
|
|
|
let openAssistant = $ref({
|
|
|
data: {},
|
|
|
dialog: false
|
|
@@ -422,7 +422,7 @@ const emrEvent = {
|
|
|
'contentchange': (event) => {
|
|
|
if (!readonlyPattern()) {
|
|
|
// 如果是空的编辑器就不触发了
|
|
|
- if (!emrRef.value.src.includes('/editor/runtime/#/editor')) {
|
|
|
+ if (!emrRef.value.src.includes('/emr/runtime/#/editor')) {
|
|
|
// 判断内容是否改变
|
|
|
isEditorChange = true
|
|
|
emrSidebarRef.value.changeTemplateType(2)
|
|
@@ -447,8 +447,8 @@ const emrEvent = {
|
|
|
'ready': (event) => {
|
|
|
editor = currentEmr.value.getEditor()
|
|
|
popupFunc.setShortcutKey()
|
|
|
+ rightClickOnRegistration()
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
// 点击保存病历
|
|
@@ -636,7 +636,7 @@ const nodeClick = (val, jumpOrNot, templateType) => {
|
|
|
|
|
|
const updateCaseHistoryUrl = async (val) => {
|
|
|
courseSegmentLocking()
|
|
|
- let temp = `/editor/runtime/?documentId=${val.documentId}&categoryCode=${val.categoryCode}&categoryId=${val.categoryId}&patientId=${patientId}#/`
|
|
|
+ let temp = `/emr/runtime/?documentId=${val.documentId}&categoryCode=${val.categoryCode}&categoryId=${val.categoryId}&patientId=${patientId}#/`
|
|
|
if (temp === caseHistoryUrl) return
|
|
|
loaded = true
|
|
|
isEditorChange = false
|
|
@@ -644,7 +644,7 @@ const updateCaseHistoryUrl = async (val) => {
|
|
|
categoryCode = val.categoryCode
|
|
|
templateName = val.name
|
|
|
categoryId = val.categoryId
|
|
|
- caseHistoryUrl = `/editor/runtime/?documentId=${documentId}&categoryCode=${categoryCode}&categoryId=${categoryId}&patientId=${patientId}#/`
|
|
|
+ caseHistoryUrl = `/emr/runtime/?documentId=${documentId}&categoryCode=${categoryCode}&categoryId=${categoryId}&patientId=${patientId}#/`
|
|
|
}
|
|
|
|
|
|
// 空的编辑器
|
|
@@ -1159,6 +1159,7 @@ const popupRef = ref(null)
|
|
|
const popupFunc = {
|
|
|
setShortcutKey: () => {
|
|
|
editor.setShortcutKey("ALT+Q", (evt, view, position) => {
|
|
|
+ console.log(position)
|
|
|
popupRef.value.positionChange(evt, view, position)
|
|
|
});
|
|
|
},
|
|
@@ -1169,6 +1170,24 @@ const popupFunc = {
|
|
|
|
|
|
}
|
|
|
|
|
|
+const rightClickOnRegistration = () => {
|
|
|
+ editor.regCtxMenu({
|
|
|
+ global: [{
|
|
|
+ text: '病历提示',
|
|
|
+
|
|
|
+ handler: function (menu) {
|
|
|
+ console.log(menu)
|
|
|
+ let position = {
|
|
|
+ x: menu.x,
|
|
|
+ y: menu.y
|
|
|
+ }
|
|
|
+ popupRef.value.positionChange(null, null, position)
|
|
|
+ }
|
|
|
+
|
|
|
+ }]
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
onMounted(() => {
|
|
|
getExtractDataElement(props.huanZheXinXi.inpatientNo, props.huanZheXinXi.admissTimes).then((res) => {
|