Commit 603145f1 authored by chase's avatar chase

fix bug

parent d47d5e44
...@@ -1054,7 +1054,7 @@ taxDocumentManageModule.directive('multiFileUploader', function () { ...@@ -1054,7 +1054,7 @@ taxDocumentManageModule.directive('multiFileUploader', function () {
_taxDocumentListService.verifyDuplicate(params).then(function (data) { _taxDocumentListService.verifyDuplicate(params).then(function (data) {
//data.id===null|| data.id===undefined,代表可以直接上传,否则属于覆盖行为 //data.id===null|| data.id===undefined,代表可以直接上传,否则属于覆盖行为
if (data.id===null|| data.id===undefined) { if (data.id===null|| data.id===undefined) {
_fileItem.url = "http://etms.longi-silicon.com:8180//api/v1/taxDoc/add"; _fileItem.url = apiInterceptor.webApiHostUrl + "/taxDoc/add";
} else { } else {
//覆盖行为-需上传参数 //覆盖行为-需上传参数
for (var name in data) { for (var name in data) {
...@@ -1070,7 +1070,7 @@ taxDocumentManageModule.directive('multiFileUploader', function () { ...@@ -1070,7 +1070,7 @@ taxDocumentManageModule.directive('multiFileUploader', function () {
cover_fields[name] = data[name]; cover_fields[name] = data[name];
fileItem.formData.push(cover_fields); fileItem.formData.push(cover_fields);
} }
_fileItem.url = "http://etms.longi-silicon.com:8180//api/v1/taxDoc/edit"; _fileItem.url = apiInterceptor.webApiHostUrl + "/taxDoc/edit";
} }
_multiUploader.uploadItem(_i); _multiUploader.uploadItem(_i);
}); });
......
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