...
|
...
|
@@ -121,15 +121,24 @@ export default { |
|
|
docNo:props.docNo
|
|
|
}
|
|
|
|
|
|
// 上传文件
|
|
|
proxy.$http.uploadFile("/inspection-report/file/upload", params, function (res) {
|
|
|
if (res && res.code == 0) {
|
|
|
proxy.$global.showMsg(res.msg);
|
|
|
// 调用回调
|
|
|
emit('callback',res.object)
|
|
|
hidedialog();
|
|
|
}
|
|
|
})
|
|
|
/*文件大小限制更改为200M
|
|
|
* lu 20211206
|
|
|
*/
|
|
|
if(fileObj.size>209715200){
|
|
|
proxy.$global.showMsg('文件最大为200M','warning');
|
|
|
|
|
|
}else{
|
|
|
// 上传文件
|
|
|
proxy.$http.uploadFile("/inspection-report/file/upload", params, function (res) {
|
|
|
if (res && res.code == 0) {
|
|
|
proxy.$global.showMsg(res.msg);
|
|
|
// 调用回调
|
|
|
emit('callback',res.object)
|
|
|
hidedialog();
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
let fileChange = (file, fileList) =>{
|
...
|
...
|
|