Browse Source

模版项

master
songguoqiang 1 year ago
parent
commit
5f81e66476
  1. 11
      src/main.ts
  2. 7
      src/views/shims-vue.d.ts
  3. 50
      src/views/spc/detectiontemplate/templateItemDetails.data.ts

11
src/main.ts

@ -42,6 +42,17 @@ import Logger from '@/utils/Logger'
import VueDOMPurifyHTML from 'vue-dompurify-html' // 解决v-html 的安全隐患 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 setupAll = async () => {
const app = createApp(App) const app = createApp(App)

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

50
src/views/spc/detectiontemplate/templateItemDetails.data.ts

@ -110,31 +110,31 @@ export const TemplateItemDetails = useCrudSchemas(reactive<CrudSchema[]>([
component:'UploadImg', component:'UploadImg',
} }
}, },
{ // {
label: '工具图', // label: '工具图',
field: 'image2', // field: 'image2',
sort: 'custom', // sort: 'custom',
isSearch: false, // isSearch: false,
isTable:false, // isTable:false,
form:{ // form:{
component:'UploadImg', // component:'UploadImg',
componentProps:{ // componentProps:{
upData:{ // upData:{
tabelId:1,tableName:"detection" // tabelId:1,tableName:"detection"
} // }
} // }
} // }
}, // },
{ // {
label: '操作指导书', // label: '操作指导书',
field: 'image3', // field: 'image3',
sort: 'custom', // sort: 'custom',
isSearch: false, // isSearch: false,
isTable:false, // isTable:false,
form:{ // form:{
component:'UploadImg', // component:'UploadImg',
} // }
}, // },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

Loading…
Cancel
Save