|
@@ -42,9 +42,8 @@
|
|
|
:docunent-id="documentId"
|
|
|
@restore-data="restoreData"/>
|
|
|
<el-button-group>
|
|
|
- <!-- 页面打印支持病历续打,但是可能会出现打印错误,<br/>如果页面打印无法使用请用服务打印,服务打印也不行请换win10电脑打印。-->
|
|
|
<el-button type="primary" icon="Printer" @click="frontEndPrinting"
|
|
|
- title="页面打印支持病历续打,但是可能会出现打印错误,<br/>如果页面打印无法使用请用服务打印,服务打印也不行请换win10电脑打印。">
|
|
|
+ title="页面打印支持病历续打,但是可能会出现打印错误,如果页面打印无法使用请用服务打印,服务打印也不行请换win10电脑打印。">
|
|
|
页面
|
|
|
</el-button>
|
|
|
<el-button type="primary" icon="Printer" @click="servicePrint"
|
|
@@ -54,12 +53,14 @@
|
|
|
</el-button-group>
|
|
|
<el-divider direction="vertical"/>
|
|
|
<el-button-group>
|
|
|
- <el-button type="primary" icon="ZoomIn" @click="zoomFunc(0.1)"
|
|
|
- title="放大病历">
|
|
|
- </el-button>
|
|
|
- <el-button type="primary" icon="ZoomOut" @click="zoomFunc(-0.1)"
|
|
|
- title="缩小病历">
|
|
|
- </el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ icon="ZoomIn"
|
|
|
+ @click="zoomFunc(0.1)"
|
|
|
+ title="放大病历"/>
|
|
|
+ <el-button type="primary"
|
|
|
+ icon="ZoomOut"
|
|
|
+ @click="zoomFunc(-0.1)"
|
|
|
+ title="缩小病历"/>
|
|
|
</el-button-group>
|
|
|
|
|
|
<el-divider direction="vertical"/>
|
|
@@ -144,7 +145,7 @@
|
|
|
<span :style="{'fontFamily':item.font }">
|
|
|
{{ item.text }}
|
|
|
</span>
|
|
|
- </el-option>
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
<el-select style="width: 70px;"
|
|
|
@change="textStyleFunc.fontSize()"
|
|
@@ -1381,14 +1382,12 @@ const buttonClass = (val, activation = true) => {
|
|
|
* 解析 iframe 上面的参数保证一致
|
|
|
*/
|
|
|
const analysisIframeSrcSearch = async () => {
|
|
|
- // 先一步转成 url 不然 URLSearchParams 不会解析第一个参数
|
|
|
- const url = new URL('http://localhost' + caseHistoryUrl);
|
|
|
- const args = new URLSearchParams(url.search);
|
|
|
- documentId = args.get('documentId')
|
|
|
- // 如果没有的话就去服务器要一个
|
|
|
- if (documentId === null || documentId === 'null') {
|
|
|
+ let id = editor.documentData._id
|
|
|
+ if (stringIsBlank(id)) {
|
|
|
// 这个是 唯一 id 调用服务的雪花算法
|
|
|
documentId = await getUuid()
|
|
|
+ } else {
|
|
|
+ documentId = id
|
|
|
}
|
|
|
}
|
|
|
|