From 3e34c5745e8c611ab82b0a803278d18ec3b710cf Mon Sep 17 00:00:00 2001 From: lenovo <123> Date: Mon, 9 Jan 2023 15:41:38 +0800 Subject: [PATCH] 2023-1-9sample --- .../views/zyclothsample/ZyClothSampleList.vue | 2 +- .../modules/ZyClothSampleForm.vue | 14 +++++------ .../device/controller/ZyDeviceController.java | 19 +------------- .../impl/ZyPlanProcessServiceImpl.java | 2 +- .../zyclothsample/entity/ZyClothSample.java | 25 ++++++++++++------- .../controller/ZyDevicebrandController.java | 2 +- .../controller/ZyDevicemodelController.java | 2 +- .../controller/ZyDevicetypeController.java | 2 +- 8 files changed, 29 insertions(+), 39 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/zyclothsample/ZyClothSampleList.vue b/ant-design-vue-jeecg/src/views/zyclothsample/ZyClothSampleList.vue index d3dcca18..139a80d0 100644 --- a/ant-design-vue-jeecg/src/views/zyclothsample/ZyClothSampleList.vue +++ b/ant-design-vue-jeecg/src/views/zyclothsample/ZyClothSampleList.vue @@ -217,7 +217,7 @@ export default { { title: '企业', align: "center", - dataIndex: 'userId_dictText' + dataIndex: 'enterpriseId_dictText' }, { title: '创建时间', diff --git a/ant-design-vue-jeecg/src/views/zyclothsample/modules/ZyClothSampleForm.vue b/ant-design-vue-jeecg/src/views/zyclothsample/modules/ZyClothSampleForm.vue index cdf42a2e..af5aa95c 100644 --- a/ant-design-vue-jeecg/src/views/zyclothsample/modules/ZyClothSampleForm.vue +++ b/ant-design-vue-jeecg/src/views/zyclothsample/modules/ZyClothSampleForm.vue @@ -5,7 +5,7 @@ - + @@ -152,11 +152,11 @@ export default { }, // kuanshi(){ - this.dict="zy_cloths_style,style_names,nums,enterprise_id="+"'"+this.model.userId+"'"; + this.dict="zy_cloths_style,style_names,nums,enterprise_id="+"'"+this.model.enterpriseId+"'"; this.model.styleId=null }, xiugai(){ - if(this.model.stylemodelId!=null&&this.model.userId!=null){ + if(this.model.stylemodelId!=null&&this.model.enterpriseId!=null){ this.gaibian() } }, @@ -165,11 +165,11 @@ export default { console.log(this.model) getAction(this.url.sort,this.model).then((res)=>{ console.log(res) - if(this.model.id!=null){ - var num=parseInt(res.result,10) - }else{ + if(this.model.id==null||parseInt(res.result,10)==0){ var num=parseInt(res.result,10)+1 + }else{ + var num=parseInt(res.result,10) } num=num.toString() while(num.length