diff --git a/frontend/src/renderer/src/views/DiagnosticMessage.vue b/frontend/src/renderer/src/views/DiagnosticMessage.vue index 4aa52081..78b0d6df 100644 --- a/frontend/src/renderer/src/views/DiagnosticMessage.vue +++ b/frontend/src/renderer/src/views/DiagnosticMessage.vue @@ -141,31 +141,36 @@ async function handleDiagnosticInfo(status) { .formreturnCancel { width: 80px; height: 40px; - background: #313131; - border: 1px solid rgb(148, 148, 148); + background-color: #597194; + border: 1px solid #597194; font-family: 'Noto Sans SC'; font-weight: 400; font-style: normal; font-size: 14px; - color: rgb(148, 148, 148); + color: rgba(255, 255, 255, 0.6); } .formreturnCancel:hover { - background: #1e2c49; - color: #266fff; - border: 1px solid #266fff; + background-color: #14aaff; + color: #fff; + border: 1px solid #14aaff; } .formsaveCancel { width: 80px; height: 40px; - background: #266fff; + background:#0b94d5; + border:1px solid #0b94d5; font-family: 'Noto Sans SC'; font-weight: 400; font-style: normal; font-size: 14px; color: #FFFFFF; } +.formsaveCancel:hover{ + background:#14aaff; + border:1px solid #14aaff; +} diff --git a/frontend/src/renderer/src/views/viewPDF.vue b/frontend/src/renderer/src/views/viewPDF.vue index ab806887..fc822feb 100644 --- a/frontend/src/renderer/src/views/viewPDF.vue +++ b/frontend/src/renderer/src/views/viewPDF.vue @@ -1,8 +1,17 @@ @@ -12,12 +21,23 @@ import { patientAPI, detectionAPI,historyAPI,getBackendUrl } from '@/services/ap import { ref, onMounted } from 'vue' import * as pdfjsLib from 'pdfjs-dist' +const emit = defineEmits([ 'closeViewPDF' ]); +const props = defineProps({ + pdfUrl: { + required: false, + type: String, + default: '' + } +}) +const pdfUrl = ref(props.pdfUrl) const pdfContainer = ref(null) // 容器用于挂载多个 canvas // 设置 worker 路径(重要) pdfjsLib.GlobalWorkerOptions.workerSrc = '/pdf.worker.min.js' const BACKEND_URL = getBackendUrl() const pdfCanvas = ref(null) - + function handleCancel(){ + emit('closeViewPDF',false) + } // const renderPDF = async (url) => { // try { // // 加载 PDF 文档 @@ -106,7 +126,7 @@ const renderPage = async (pdf, pageNum, scale) => { } onMounted(() => { // 替换为你的 PDF 文件路径或 URL - renderPDF(`${BACKEND_URL}/202512070001/20251209141628/report_142802459.pdf`) // 可以是本地文件或远程链接 + // renderPDF(`${BACKEND_URL}/202512070001/20251209141628/report_142802459.pdf`) // 可以是本地文件或远程链接 }) @@ -139,4 +159,12 @@ canvas { border-radius: 8px; overflow: auto; } + +.viewPDF-header{ + height: 60px; + display: flex; + justify-content: flex-end; + align-items: center; + padding-right: 20px; +} \ No newline at end of file