Compare commits
No commits in common. "4f715890a112834aaf900000e63383588f3487a5" and "d7dd03f53bdbf7da0ff9ed6808897bae561d55e7" have entirely different histories.
4f715890a1
...
d7dd03f53b
|
@ -30,7 +30,6 @@
|
|||
<!-- 刷新 -->
|
||||
{{ $t('trials:readingReport:button:refresh') }}
|
||||
</el-button>
|
||||
<el-button :loading="reportBtnLoading" v-if="readingTaskState>=2" type="primary" size="small" @click="showReport">{{$t('trials:dicoms:button:evaluationReport')}}</el-button>
|
||||
<el-button
|
||||
v-if="readingTaskState<2 && CriterionType !== 10"
|
||||
type="primary"
|
||||
|
@ -267,11 +266,6 @@
|
|||
</div>
|
||||
<SignForm ref="signForm" :sign-code-enum="signCode" @closeDialog="closeSignDialog" />
|
||||
</el-dialog>
|
||||
<!--评估报告-->
|
||||
<PreviewFileDialog
|
||||
:visible.sync="previewFileVisible"
|
||||
:fileData="fileData"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -286,11 +280,9 @@ import store from '@/store'
|
|||
import { mapGetters } from 'vuex'
|
||||
import { changeURLStatic } from '@/utils/history.js'
|
||||
import AdditionalAssessment from './AdditionalAssessment'
|
||||
import { showReadReport } from "@/api/export";
|
||||
import PreviewFileDialog from "@/components/PreviewFileDialog/PreviewFileDialog";
|
||||
export default {
|
||||
name: 'ReportPage',
|
||||
components: { SignForm, AdditionalAssessment, PreviewFileDialog },
|
||||
components: { SignForm, AdditionalAssessment },
|
||||
props: {
|
||||
visitTaskId: {
|
||||
type: String,
|
||||
|
@ -368,35 +360,6 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
// 评估报告
|
||||
async showReport(){
|
||||
if(this.reportBtnLoading) return;
|
||||
let data = {
|
||||
VisitTaskId: this.visitTaskId,
|
||||
};
|
||||
try {
|
||||
this.reportBtnLoading = true;
|
||||
let res = await showReadReport(data);
|
||||
// let urlPdf = window.URL.createObjectURL(new Blob([res]))
|
||||
if(res.IsSuccess){
|
||||
this.viewVisible = true;
|
||||
let href = this.OSSclientConfig.basePath + res.Result;
|
||||
|
||||
// let fileName =
|
||||
// res.Result.split("/")[res.Result.split("/").length - 1];
|
||||
let fileName = `${this.$t('trials:dicoms:button:evaluationReport')}.pdf`;
|
||||
this.fileData = {
|
||||
path:href,
|
||||
name:fileName
|
||||
};
|
||||
}
|
||||
this.reportBtnLoading = false;
|
||||
this.previewFileVisible = true;
|
||||
} catch (err) {
|
||||
this.reportBtnLoading = false;
|
||||
console.log(err);
|
||||
}
|
||||
},
|
||||
myConfirm(msg) {
|
||||
return new Promise(resolve => {
|
||||
this.$confirm(msg, {
|
||||
|
|
Loading…
Reference in New Issue