Commit 8544d65d authored by linxin's avatar linxin

add

parent 11591f6a
...@@ -398,7 +398,9 @@ export default { ...@@ -398,7 +398,9 @@ export default {
* @param success * @param success
*/ */
fileUploadSvc: function (file, success) { fileUploadSvc: function (file, success) {
console.log('file',file)
if(file.pkvalue && file.source_type){ if(file.pkvalue && file.source_type){
console.log('file1',file)
let path = file.filePath let path = file.filePath
var name = path.substr(path.lastIndexOf('/') + 1) var name = path.substr(path.lastIndexOf('/') + 1)
let url = encodeURI(process.env.fileUploadSvcPath + 'attachment_upload') let url = encodeURI(process.env.fileUploadSvcPath + 'attachment_upload')
...@@ -436,6 +438,7 @@ export default { ...@@ -436,6 +438,7 @@ export default {
ft.upload(path, url, uploadSuccess, fileError, options) ft.upload(path, url, uploadSuccess, fileError, options)
} }
else{ else{
console.log('file2',file)
hlsPopup.showLongCenter('上传失败!') hlsPopup.showLongCenter('上传失败!')
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment