From 43c840d9e9c0f0e9cc31f075a0f1bf87962e8c56 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sat, 6 May 2023 17:13:22 +0800 Subject: [PATCH] bug --- .../src/components/procedure/processFabric.vue | 2 +- .../erp/accessories/modules/ZyAccessoriesFormDetail.vue | 7 ++----- .../accessories/controller/ZyAccessoriesController.java | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ant-design-vue-jeecg/src/components/procedure/processFabric.vue b/ant-design-vue-jeecg/src/components/procedure/processFabric.vue index cdf13f9f..96a52a63 100644 --- a/ant-design-vue-jeecg/src/components/procedure/processFabric.vue +++ b/ant-design-vue-jeecg/src/components/procedure/processFabric.vue @@ -6,7 +6,7 @@ 暂无数据!
-

辅料{{index+1}}信息

+

辅料信息

diff --git a/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesFormDetail.vue b/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesFormDetail.vue index 8593c18f..3e7875b9 100644 --- a/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesFormDetail.vue +++ b/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesFormDetail.vue @@ -39,11 +39,8 @@ import processFabric from '@/components/procedure/processFabric' this.visible = true; this.$http.get('/accessories/zyAccessories/queryById?id='+id).then( res=>{ - - if(this.model == ''){ - this.model.push(res.result) - console.log(1) - } + this.model=[]; + this.model.push(res.result); }) }, handleOk() { diff --git a/jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/accessories/controller/ZyAccessoriesController.java b/jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/accessories/controller/ZyAccessoriesController.java index 72146c01..b4f161aa 100644 --- a/jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/accessories/controller/ZyAccessoriesController.java +++ b/jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/accessories/controller/ZyAccessoriesController.java @@ -154,6 +154,7 @@ public class ZyAccessoriesController extends JeecgController queryById(@RequestParam(name="id",required=true) String id) { ZyAccessories zyAccessories = zyAccessoriesService.getById(id); + zyAccessories.setPicture("http://localhost:10085/jeecg-boot/sys/common/static/"+zyAccessories.getPicture()); if(zyAccessories==null) { return Result.error("未找到对应数据"); }