Browse Source

删除不用的代码

master_hella_20240701
zhaoyiran 8 months ago
parent
commit
ebd8660315
  1. 38
      src/views/qms/inspectionMethod/index.vue
  2. 5
      src/views/qms/inspectionMethod/inspectionMethod.data.ts

38
src/views/qms/inspectionMethod/index.vue

@ -191,44 +191,6 @@ const openForm = (type: string, row?: any) => {
// form // form
const formsSuccess = async (formType,data) => { const formsSuccess = async (formType,data) => {
// data.filePathList = []
// data.tmp = []
console.log(data)
// for (let i = 0; i < data.filePathListView.length; i++) {
// data.filePathList.push(data.filePathListView[i].url)
// }
// data.filePathList = []
// for (let i = 0; i < data.filePathListView.length; i++) {
// data.filePathList.push(data.filePathListView[i].url)
// }
// if(data.filePathList.length>0){
// data.videoAddress = data.filePathList.join(',')
// }
// debugger
// if(data.filePathListView instanceof Array){
// for(let i=0; i<data.filePathListView.length; i++){
// data.tmp.push(data.filePathListView[i].url)
// }
// data.videoAddress = data.tmp.join(',')
// }else{
// data.videoAddress = data.filePathListView
// data.filePathListView = data.filePathListView.split(',').map(url=>{return {url}})
// }
// for (let i = 0; i < data.filePathListView.length; i++) {
// data.filePathList.push(data.filePathListView[i])
// }
// console.log(1111,data)
// var isHave =InspectionMethod.allSchemas.formSchema.some(function (item) {
// return item.field === 'activeTime' || item.field === 'expireTime';
// });
// if(isHave){
// if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
// message.error('')
// return;
// }
// }
// if(data.activeTime==0)data.activeTime = null;
// if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') { if (formType === 'create') {
delete data['uploadFile'] delete data['uploadFile']

5
src/views/qms/inspectionMethod/inspectionMethod.data.ts

@ -37,11 +37,6 @@ export const InspectionMethod = useCrudSchemas(reactive<CrudSchema[]>([
field: 'operationGuidance', field: 'operationGuidance',
sort: 'custom', sort: 'custom',
}, },
// {
// label: '视频地址',
// field: 'videoAddress',
// sort: 'custom',
// },
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',

Loading…
Cancel
Save