From cf1af92c2f9f15fb363394e878ae330d9001126b Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Fri, 14 Nov 2025 11:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E7=89=87=E5=85=B3=E9=94=AE=E7=82=B9?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dictionary.js | 23 +++ src/components/Preview/fun.js | 4 +- src/components/Preview/index.vue | 17 +-- src/components/PreviewFile/index.vue | 16 ++- .../template/components/KeyDocument.vue | 133 ++++++++++++++---- 5 files changed, 145 insertions(+), 48 deletions(-) diff --git a/src/api/dictionary.js b/src/api/dictionary.js index 4c16f173..3310635f 100644 --- a/src/api/dictionary.js +++ b/src/api/dictionary.js @@ -1451,3 +1451,26 @@ export function getCurrentVersionUserAgreements(data) { data }) } +// 获取系统阅片关键点文件列表 +export function getSystemCriterionKeyFileList(data) { + return request({ + url: `/SystemCriterionKeyFile/getSystemCriterionKeyFileList`, + method: 'post', + data + }) +} +// 新增/修改系统阅片关键点文件 +export function addOrUpdateSystemCriterionKeyFile(data) { + return request({ + url: `/SystemCriterionKeyFile/addOrUpdateSystemCriterionKeyFile`, + method: 'post', + data + }) +} +// 删除系统阅片关键点文件 +export function deleteSystemCriterionKeyFile(systemCriterionKeyFileId) { + return request({ + url: `/SystemCriterionKeyFile/deleteSystemCriterionKeyFile/${systemCriterionKeyFileId}`, + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/components/Preview/fun.js b/src/components/Preview/fun.js index 370657d7..4a76f522 100644 --- a/src/components/Preview/fun.js +++ b/src/components/Preview/fun.js @@ -4,7 +4,7 @@ import Preview from "./index.vue"; const PreviewConstructor = Vue.extend(Preview); const preview = options => { - const { path, type, title } = options; + const { path, type, title, isLocal = false } = options; if (!path) throw `path is requred.but ${path}` const id = `Preview_${new Date().getTime()}`; const instance = new PreviewConstructor(); @@ -12,7 +12,7 @@ const preview = options => { instance.vm = instance.$mount(); if (instance.vm.visible) return; document.body.appendChild(instance.vm.$el); - instance.vm.open(path, type, title); + instance.vm.open(path, type, title, isLocal); instance.vm.$on("closed", () => { document.body.removeChild(instance.vm.$el); instance.vm.$destroy(); diff --git a/src/components/Preview/index.vue b/src/components/Preview/index.vue index c44b0194..5b22ac8a 100644 --- a/src/components/Preview/index.vue +++ b/src/components/Preview/index.vue @@ -1,15 +1,8 @@ @@ -24,13 +17,15 @@ export default { path: null, type: null, title: null, + isLocal: false }; }, methods: { - open(path, type, title) { + open(path, type, title, isLocal) { this.path = path; this.type = type; this.title = title; + this.isLocal = isLocal; this.visible = true; }, handleClose() { diff --git a/src/components/PreviewFile/index.vue b/src/components/PreviewFile/index.vue index 53112407..8b6966b1 100644 --- a/src/components/PreviewFile/index.vue +++ b/src/components/PreviewFile/index.vue @@ -5,16 +5,17 @@