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