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