From 4e2cb1b1d65c2f6b6fe43a0dae9964623fecae59 Mon Sep 17 00:00:00 2001 From: hdw <496960745@qq.com> Date: 星期六, 03 十一月 2018 15:09:56 +0800 Subject: [PATCH] 添加无图片显示效果 --- gx_tieta/WebRoot/batt-fault-manage.jsp | 1 + gx_tieta/WebRoot/iframe/batt-fault-manage-details.html | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/gx_tieta/WebRoot/batt-fault-manage.jsp b/gx_tieta/WebRoot/batt-fault-manage.jsp index e807bd8..383010c 100644 --- a/gx_tieta/WebRoot/batt-fault-manage.jsp +++ b/gx_tieta/WebRoot/batt-fault-manage.jsp @@ -192,6 +192,7 @@ area: ['1200px', '660px'], fixed: false, //涓嶅浐瀹� resize: true, + maxHeight: 660, maxmin: true, content: 'iframe/batt-fault-manage-details.html' }); diff --git a/gx_tieta/WebRoot/iframe/batt-fault-manage-details.html b/gx_tieta/WebRoot/iframe/batt-fault-manage-details.html index f7f04a8..7292d26 100644 --- a/gx_tieta/WebRoot/iframe/batt-fault-manage-details.html +++ b/gx_tieta/WebRoot/iframe/batt-fault-manage-details.html @@ -49,6 +49,10 @@ {{# layui.each(d.imgs, function(index, item){ }} <div><img src="Deverror_recordAction!serchByInfo?json={num:{{ d.num }},note:{{ item }} }"></div> {{# }); }} + + {{# if(d.imgs.length === 0) { }} + <div><img src="../images/none.jpg"></div> + {{# } }} </div> </script> <script type="text/javascript"> -- Gitblit v1.9.1