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',