Gitea 2 years ago
parent 10310a9f5e
commit 43c840d9e9
  1. 2
      ant-design-vue-jeecg/src/components/procedure/processFabric.vue
  2. 7
      ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesFormDetail.vue
  3. 1
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/accessories/controller/ZyAccessoriesController.java

@ -6,7 +6,7 @@
暂无数据! 暂无数据!
</div> </div>
<div style="padding: 20px 20px 0 20px;" v-for="(item,index) in tableModel" :key="index" v-else> <div style="padding: 20px 20px 0 20px;" v-for="(item,index) in tableModel" :key="index" v-else>
<p style="font-size: 16px;margin-bottom: 0">辅料{{index+1}}信息</p> <p style="font-size: 16px;margin-bottom: 0">辅料信息</p>
<el-descriptions class="margin-top" :column="3" border style="margin: 20px 0"> <el-descriptions class="margin-top" :column="3" border style="margin: 20px 0">
<el-descriptions-item> <el-descriptions-item>
<template slot="label"><i class="el-icon-receiving"></i>类型id</template> <template slot="label"><i class="el-icon-receiving"></i>类型id</template>

@ -39,11 +39,8 @@ import processFabric from '@/components/procedure/processFabric'
this.visible = true; this.visible = true;
this.$http.get('/accessories/zyAccessories/queryById?id='+id).then( this.$http.get('/accessories/zyAccessories/queryById?id='+id).then(
res=>{ res=>{
this.model=[];
if(this.model == ''){ this.model.push(res.result);
this.model.push(res.result)
console.log(1)
}
}) })
}, },
handleOk() { handleOk() {

@ -154,6 +154,7 @@ public class ZyAccessoriesController extends JeecgController<ZyAccessories, IZyA
@GetMapping(value = "/queryById") @GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) { public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
ZyAccessories zyAccessories = zyAccessoriesService.getById(id); ZyAccessories zyAccessories = zyAccessoriesService.getById(id);
zyAccessories.setPicture("http://localhost:10085/jeecg-boot/sys/common/static/"+zyAccessories.getPicture());
if(zyAccessories==null) { if(zyAccessories==null) {
return Result.error("未找到对应数据"); return Result.error("未找到对应数据");
} }

Loading…
Cancel
Save