From 6a50552cbd59e4a4cae129c5738513c5b03c2dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Fri, 7 Jul 2023 00:00:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=95=8C=E9=9D=A2=E7=9A=84=E5=9B=BE=E7=89=87=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecgbiz/modal/JSelectMaterialModal.vue | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue b/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue index 4b989084..8215ca3d 100644 --- a/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue +++ b/jshERP-web/src/components/jeecgbiz/modal/JSelectMaterialModal.vue @@ -300,16 +300,10 @@ this.$refs.modalForm.add() this.$refs.modalForm.title = '新增商品' }, - getImgUrl(imgName) { + getImgUrl(imgName, type) { if(imgName && imgName.split(',')) { - return getFileAccessHttpUrl('systemConfig/static/' + imgName.split(',')[0]) - } else { - return '' - } - }, - getImgMiniUrl(imgName) { - if(imgName && imgName.split(',')) { - return getFileAccessHttpUrl('systemConfig/static/mini/' + imgName.split(',')[0]) + type = type? type + '/':'' + return getFileAccessHttpUrl('systemConfig/static/' + type + imgName.split(',')[0]) } else { return '' }