制度表单多文件
This commit is contained in:
parent
feb9c54e2f
commit
b14a45e11c
@ -63,7 +63,8 @@ export default defineComponent({
|
||||
groupValue: 'yili',
|
||||
fileValue: '',
|
||||
appId: 'com.actionsoft.apps.coe.pal.datamigration',
|
||||
fileName: ''
|
||||
fileName: '',
|
||||
fileNames:''
|
||||
});
|
||||
const handlePreview = () => {}
|
||||
const handleRemove = () => {}
|
||||
@ -71,16 +72,21 @@ export default defineComponent({
|
||||
const handleExceed = () => {}
|
||||
const handleSuccess = (res: any,uploadFile: any,uploadFiles: any) => {
|
||||
console.log(res,'---',uploadFile,'----',uploadFiles)
|
||||
|
||||
info.fileNames += res.files.name+ ",";
|
||||
info.fileName = res.files.name
|
||||
let tempFileObj = {id: uploadFile.uid,name: res.files.name,downloadUrl: res.data.data.attrs.downloadUrl}
|
||||
info.fileList.push(tempFileObj)
|
||||
console.info('fileList',info.fileList)
|
||||
|
||||
console.info("==================="+info.fileNames)
|
||||
}
|
||||
const next = () => {
|
||||
if (info.fileList.length === 0) {
|
||||
$this.$message({type:'warning',message:'请上传文件'});
|
||||
return;
|
||||
}
|
||||
info.fileNames = info.fileNames.substr(0, info.fileNames.length - 1);
|
||||
let param = {
|
||||
url: './jd',
|
||||
data: {
|
||||
@ -89,7 +95,7 @@ export default defineComponent({
|
||||
wsId: settingParam.wsId ? settingParam.wsId : '6f4e292c-1b90-4dd2-8c20-7da159cb20a5',
|
||||
groupValue: info.groupValue,
|
||||
fileValue: info.fileValue,
|
||||
fileName: info.fileName
|
||||
fileName: info.fileNames
|
||||
}
|
||||
}
|
||||
$this.awsuiaxios.post(param)
|
||||
|
||||
@ -63,24 +63,31 @@ export default defineComponent({
|
||||
groupValue: 'yili',
|
||||
fileValue: '',
|
||||
appId: 'com.actionsoft.apps.coe.pal.datamigration',
|
||||
fileName: ''
|
||||
fileName: '',
|
||||
fileNames:''
|
||||
});
|
||||
const handlePreview = () => {}
|
||||
const handleRemove = () => {}
|
||||
const beforeRemove = () => {}
|
||||
const handleExceed = () => {}
|
||||
const handleSuccess = (res: any,uploadFile: any,uploadFiles: any) => {
|
||||
debugger;
|
||||
console.log(res,'---',uploadFile,'----',uploadFiles)
|
||||
|
||||
info.fileNames += res.files.name+ ",";
|
||||
info.fileName = res.files.name
|
||||
let tempFileObj = {id: uploadFile.uid,name: res.files.name,downloadUrl: res.data.data.attrs.downloadUrl}
|
||||
info.fileList.push(tempFileObj)
|
||||
console.info('fileList',info.fileList)
|
||||
|
||||
console.info("==================="+info.fileNames)
|
||||
}
|
||||
const next = () => {
|
||||
if (info.fileList.length === 0) {
|
||||
$this.$message({type:'warning',message:'请上传文件'});
|
||||
return;
|
||||
}
|
||||
info.fileNames = info.fileNames.substr(0, info.fileNames.length - 1);
|
||||
let param = {
|
||||
url: './jd',
|
||||
data: {
|
||||
@ -89,7 +96,7 @@ export default defineComponent({
|
||||
wsId: settingParam.wsId ? settingParam.wsId : '6f4e292c-1b90-4dd2-8c20-7da159cb20a5',
|
||||
groupValue: info.groupValue,
|
||||
fileValue: info.fileValue,
|
||||
fileName: info.fileName
|
||||
fileName: info.fileNames
|
||||
}
|
||||
}
|
||||
$this.awsuiaxios.post(param)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user