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

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

Loading…
Cancel
Save