Przeglądaj źródła

优化 选择 公司报错问题

wuxw 6 lat temu
rodzic
commit
a016c18487

+ 2 - 2
Api/src/main/java/com/java110/api/listener/users/QueryStaffServiceListener.java

@@ -119,7 +119,7 @@ public class QueryStaffServiceListener extends AbstractServiceApiListener {
     @Override
     protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) {
         Assert.hasKeyAndValue(reqJson,"page","请求报文中未包含page节点");
-        Assert.hasKeyAndValue(reqJson,"rows","请求报文中未包含rows节点");
+        Assert.hasKeyAndValue(reqJson,"row","请求报文中未包含rows节点");
         Assert.hasKeyAndValue(reqJson,"storeId","请求报文中未包含storeId节点");
     }
 
@@ -141,7 +141,7 @@ public class QueryStaffServiceListener extends AbstractServiceApiListener {
         ApiStaffVo apiStaffVo = new ApiStaffVo();
 
         apiStaffVo.setTotal(count);
-        apiStaffVo.setRecords((int) Math.ceil((double) count / (double) reqJson.getInteger("rows")));
+        apiStaffVo.setRecords((int) Math.ceil((double) count / (double) reqJson.getInteger("row")));
         apiStaffVo.setStaffs(staffs);
 
         ResponseEntity<String> responseEntity = new ResponseEntity<String>(JSONObject.toJSONString(apiStaffVo), HttpStatus.OK);

+ 3 - 1
WebService/src/main/resources/components/ownerRepairPackage/repairDispatchStep/repairDispatchStep.js

@@ -48,7 +48,7 @@
             vc.component._initStep();
         },
         _initEvent:function(){
-            vc.on("addStaffStep", "notify", function(_info){
+            vc.on("repairDispatchStep", "notify", function(_info){
                 if(vc.component.repairDispatchStepInfo.index == 0){
                     vc.copyObject(_info,vc.component.repairDispatchStepInfo.branchOrgInfo);
                     vc.component.repairDispatchStepInfo.infos[0] = vc.component.repairDispatchStepInfo.branchOrgInfo;
@@ -107,6 +107,8 @@
                     return ;
                 }
 
+                vc.component.repairDispatchStepInfo.repairDispatchInfo.repairId = vc.component.repairDispatchStepInfo.repairId;
+
                vc.http.post(
                    'repairDispatchStepBinding',
                    'binding',

+ 1 - 1
WebService/src/main/resources/components/staffPackage/search-staff/searchStaff.js

@@ -30,7 +30,7 @@
                 var param = {
                     params:{
                         page:_page,
-                        rows:_rows,
+                        row:_rows,
                         staffName:_staffName,
                         orgId:vc.component.searchStaffInfo.orgId
                     }