From 5f81e66476a0d6ac5fe33b550559ea03922db746 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Mon, 27 Nov 2023 08:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E7=89=88=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 11 ++++ src/views/shims-vue.d.ts | 7 +++ .../templateItemDetails.data.ts | 50 +++++++++---------- 3 files changed, 43 insertions(+), 25 deletions(-) create mode 100644 src/views/shims-vue.d.ts diff --git a/src/main.ts b/src/main.ts index f040f2b..c91a2fd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -42,6 +42,17 @@ import Logger from '@/utils/Logger' import VueDOMPurifyHTML from 'vue-dompurify-html' // 解决v-html 的安全隐患 + +import VueVideoPlayer from 'vue-video-player/src' + +// 引入样式 +import 'video.js/dist/video-js.css' +import 'vue-video-player/src/custom-theme.css' + + + + + // 创建实例 const setupAll = async () => { const app = createApp(App) diff --git a/src/views/shims-vue.d.ts b/src/views/shims-vue.d.ts new file mode 100644 index 0000000..7a75e7b --- /dev/null +++ b/src/views/shims-vue.d.ts @@ -0,0 +1,7 @@ +/* eslint-disable */ +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component + } + declare module 'vue-video-player/src' \ No newline at end of file diff --git a/src/views/spc/detectiontemplate/templateItemDetails.data.ts b/src/views/spc/detectiontemplate/templateItemDetails.data.ts index 74ccee6..d47e531 100644 --- a/src/views/spc/detectiontemplate/templateItemDetails.data.ts +++ b/src/views/spc/detectiontemplate/templateItemDetails.data.ts @@ -110,31 +110,31 @@ export const TemplateItemDetails = useCrudSchemas(reactive([ component:'UploadImg', } }, - { - label: '工具图', - field: 'image2', - sort: 'custom', - isSearch: false, - isTable:false, - form:{ - component:'UploadImg', - componentProps:{ - upData:{ - tabelId:1,tableName:"detection" - } - } - } - }, - { - label: '操作指导书', - field: 'image3', - sort: 'custom', - isSearch: false, - isTable:false, - form:{ - component:'UploadImg', - } - }, + // { + // label: '工具图', + // field: 'image2', + // sort: 'custom', + // isSearch: false, + // isTable:false, + // form:{ + // component:'UploadImg', + // componentProps:{ + // upData:{ + // tabelId:1,tableName:"detection" + // } + // } + // } + // }, + // { + // label: '操作指导书', + // field: 'image3', + // sort: 'custom', + // isSearch: false, + // isTable:false, + // form:{ + // component:'UploadImg', + // } + // }, { label: '创建时间', field: 'createTime',