tomatozq пре 5 година
родитељ
комит
031e429c83
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 1 1
      src/api/base/company.js
  2. 4 4
      src/views/business/insuranceApplication-detail.vue

+ 1 - 1
src/api/base/company.js

@@ -6,7 +6,7 @@ function pageList(formData){
 }
 
 function detail(id){
-  return request.post(constant.serverUrl + "/company/detail?companyId={0}", companyId);
+  return request.post(constant.serverUrl + "/company/detail?companyId={0}", id);
 }
 
 

+ 4 - 4
src/views/business/insuranceApplication-detail.vue

@@ -169,9 +169,9 @@ export default {
             var id = self.formModel.id;
 
             if (id == null || id.length == 0) {
-              return insuranceApi.add(self.formModel);
+              return insuranceApplicationApi.add(self.formModel);
             } else {
-              return insuranceApi.update(self.formModel);
+              return insuranceApplicationApi.update(self.formModel);
             }
           })().then(function(response) {
             var jsonData = response.data;
@@ -201,9 +201,9 @@ export default {
 
     (function() {
       if (self.businessKey.length == 0) {
-        return insuranceApi.create();
+        return insuranceApplicationApi.create();
       } else {
-        return insuranceApi.edit(self.menuId);
+        return insuranceApplicationApi.edit(self.menuId);
       }
     })()
       .then(response => {