|
|
@ -5,18 +5,26 @@ |
|
|
<el-button type="primary" class="btnClass" @click="btnGetPic" :disabled="doctorBtnDisabled('btnGetPic')" |
|
|
<el-button type="primary" class="btnClass" @click="btnGetPic" :disabled="doctorBtnDisabled('btnGetPic')" |
|
|
size="small">采图</el-button> |
|
|
size="small">采图</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '导图')"> |
|
|
|
|
|
<el-button type="primary" class="btnClass" @click="btnExpPic" :disabled="doctorBtnDisabled('btnExpPic')" |
|
|
|
|
|
size="small">导图</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '裁图')"> |
|
|
|
|
|
<el-button type="primary" class="btnClass" @click="btnCutPic" :disabled="doctorBtnDisabled('btnCutPic')" |
|
|
|
|
|
size="small">裁图</el-button> |
|
|
|
|
|
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, 'Dcm')"> |
|
|
|
|
|
<el-button type="primary" class="btnClass" @click="btnBrowseDcm" :disabled="doctorBtnDisabled('btnBrowseDcm')" |
|
|
|
|
|
size="small">Dcm</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')"> |
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')"> |
|
|
<el-button type="primary" class="btnClass" @click="btnSavePic" :disabled="doctorBtnDisabled('btnSavePic')" |
|
|
<el-button type="primary" class="btnClass" @click="btnSavePic" :disabled="doctorBtnDisabled('btnSavePic')" |
|
|
size="small">保存</el-button> |
|
|
size="small">保存</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<el-dropdown v-show="checkPagePriv(pagePriv.privs, '导图')" :disabled="doctorBtnDisabled('btnExpPic')"> |
|
|
|
|
|
|
|
|
|
|
|
<span class="el-dropdown-link" style="color: #222531; font-weight: 700"> |
|
|
|
|
|
<el-button type="primary" class="btnClass" :disabled="doctorBtnDisabled('btnExpPic')">更多</el-button> |
|
|
|
|
|
</span> |
|
|
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
|
|
<el-dropdown-item v-show="checkPagePriv(pagePriv.privs, '导图')" @click.native="btnExpPic" |
|
|
|
|
|
:disabled="doctorBtnDisabled('btnExpPic')">导入图片</el-dropdown-item> |
|
|
|
|
|
<el-dropdown-item v-show="checkPagePriv(pagePriv.privs, '裁图')" @click.native="btnCutPic" |
|
|
|
|
|
:disabled="doctorBtnDisabled('btnCutPic')">裁剪图片</el-dropdown-item> |
|
|
|
|
|
</el-dropdown-menu> |
|
|
|
|
|
</el-dropdown> |
|
|
</div> |
|
|
</div> |
|
|
<!-- --> |
|
|
<!-- --> |
|
|
<div :style="`overflow-x: scroll;width:${Math.floor((window.pageWidth - 200 - 110 - 15 - 4))}px;`"> |
|
|
<div :style="`overflow-x: scroll;width:${Math.floor((window.pageWidth - 200 - 110 - 15 - 4))}px;`"> |
|
|
@ -128,7 +136,7 @@ export default { |
|
|
"dataTransOpts", |
|
|
"dataTransOpts", |
|
|
"doctorCheck", |
|
|
"doctorCheck", |
|
|
"patientRegister", |
|
|
"patientRegister", |
|
|
"customerOrg", |
|
|
|
|
|
|
|
|
"customerOrg" |
|
|
]), |
|
|
]), |
|
|
lmoment(date, forMat) { |
|
|
lmoment(date, forMat) { |
|
|
return moment(new Date(date)).format(forMat); |
|
|
return moment(new Date(date)).format(forMat); |
|
|
@ -280,6 +288,38 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 浏览Dcm文件 |
|
|
|
|
|
btnBrowseDcm() { |
|
|
|
|
|
if (!this.doctorCheck.RegisterCheckId) { |
|
|
|
|
|
this.$message.warning({ showClose: true, message: "未选中组合项目!" }); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 创建一个新的 <a> 元素 |
|
|
|
|
|
let a = document.createElement('a'); |
|
|
|
|
|
|
|
|
|
|
|
// 设置 href 属性为要跳转的 URL |
|
|
|
|
|
a.href = `${this.sysConfig.dcmServe}/?mrn=0000002`; |
|
|
|
|
|
|
|
|
|
|
|
//(可选)设置 target 属性,比如在新窗口打开 |
|
|
|
|
|
a.target = '_blank'; |
|
|
|
|
|
|
|
|
|
|
|
//(可选)防止浏览器将链接添加到历史记录 |
|
|
|
|
|
a.rel = 'noopener noreferrer'; |
|
|
|
|
|
|
|
|
|
|
|
// 将新创建的 <a> 元素添加到 DOM 中 |
|
|
|
|
|
// 注意:这一步是可选的,如果你只想模拟点击而不想在页面上显示 <a> 元素,可以省略这一步 |
|
|
|
|
|
// document.body.appendChild(a); |
|
|
|
|
|
|
|
|
|
|
|
// 模拟点击 <a> 元素 |
|
|
|
|
|
a.click(); |
|
|
|
|
|
|
|
|
|
|
|
//(可选)移除刚才添加到 DOM 中的 <a> 元素 |
|
|
|
|
|
// 如果你选择了将 <a> 元素添加到 DOM 中,现在可以移除它 |
|
|
|
|
|
// document.body.removeChild(a); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//导图(上传图片) |
|
|
//导图(上传图片) |
|
|
btnExpPic() { |
|
|
btnExpPic() { |
|
|
if (!this.doctorCheck.RegisterCheckId) { |
|
|
if (!this.doctorCheck.RegisterCheckId) { |
|
|
|