|
|
@ -9,6 +9,10 @@ |
|
|
<el-button type="primary" class="btnClass" @click="btnExpPic" :disabled="doctorBtnDisabled('btnExpPic')" |
|
|
<el-button type="primary" class="btnClass" @click="btnExpPic" :disabled="doctorBtnDisabled('btnExpPic')" |
|
|
size="small">导图</el-button> |
|
|
size="small">导图</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '裁图')"> |
|
|
|
|
|
<el-button type="primary" class="btnClass" @click="btnCutPic" :disabled="doctorBtnDisabled('btnCutPic')" |
|
|
|
|
|
size="small">裁图</el-button> |
|
|
|
|
|
</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> |
|
|
@ -282,6 +286,37 @@ export default { |
|
|
this.dialogCheckPictureUpload = true; |
|
|
this.dialogCheckPictureUpload = true; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 裁图/修图/ dicom 查看图 |
|
|
|
|
|
btnCutPic() { |
|
|
|
|
|
if (this.checkPictures.length == 0) { |
|
|
|
|
|
this.$message.warning({ showClose: true, message: "暂无可裁图片!" }); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!this.$peisAPI) { |
|
|
|
|
|
this.$message.info({ showClose: true, message: "此功能,需要在壳客户端才可运行!" }) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
let token = window.sessionStorage.getItem("token"); |
|
|
|
|
|
let toOutShell = { |
|
|
|
|
|
images:this.checkPictures, |
|
|
|
|
|
token, |
|
|
|
|
|
}; |
|
|
|
|
|
this.$peisAPI.imageCut(JSON.stringify(toOutShell)) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
let lres = JSON.parse(res) |
|
|
|
|
|
if (lres.code > -1) { |
|
|
|
|
|
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id); |
|
|
|
|
|
}else{ |
|
|
|
|
|
console.log('裁图失败',lres.message) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(err => { |
|
|
|
|
|
console.log('裁图失败',err) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//关闭上传图片窗口 |
|
|
//关闭上传图片窗口 |
|
|
closePicUpload() { |
|
|
closePicUpload() { |
|
|
this.dialogCheckPictureUpload = false; |
|
|
this.dialogCheckPictureUpload = false; |
|
|
|