From 8b09fbc19a96b57bf1d0e4d7c79b51a76aeca554 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 28 三月 2025 19:57:56 +0800 Subject: [PATCH] 修改bug --- ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tReportLoss/tReportLoss.js | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tReportLoss/tReportLoss.js b/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tReportLoss/tReportLoss.js index f7b05fb..90c10be 100644 --- a/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tReportLoss/tReportLoss.js +++ b/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tReportLoss/tReportLoss.js @@ -20,7 +20,18 @@ {title: '联系方式', field: 'phone', visible: true, align: 'center', valign: 'middle'}, {title: '司机车牌号', field: 'carNumber', visible: true, align: 'center', valign: 'middle'}, {title: '内容', field: 'remark', visible: true, align: 'center', valign: 'middle'}, - {title: '图片', field: 'image', visible: true, align: 'center', valign: 'middle'}, + {title: '图片', field: 'image', visible: true, align: 'center', valign: 'middle', + formatter:function(data){ + if(typeof data != "undefined"){ + let imgs = data.split(","); + let htmlStr = ''; + for (let i = 0; i < imgs.length; i++) { + htmlStr += '<img src="' + imgs[i] + '" style="height: 100px;" onclick="lookBigImg(\'' + imgs[i] + '\')"/> ' + } + return htmlStr; + } + } + }, {title: '状态', field: 'status', visible: true, align: 'center', valign: 'middle', formatter:function(data){ if(data==1){ @@ -79,14 +90,14 @@ layer.open({ type: 1 , title: '' - , area: ['30%', '30%'] + , area: ["400px", '300px'] , offset: 'auto' //具体配置参考:http://www.layui.com/doc/modules/layer.html#offset , id: 'layerDemo' //防止重复弹出cge , content: '<div class="form-horizontal">' + ' <div class="col-sm-11" style="margin-top: 30px">' + ' <div class="col-sm-11">' + ' <div class="form-group">\n' + - ' <label class="col-sm-3 control-label">备注:</label>\n' + + ' <label class="col-sm-3 control-label">回复内容:</label>\n' + ' <div class="col-sm-9">\n' + ' <textarea id="info" style="height: 150px;width: 250px" placeholder="多行输入,最多500字" maxlength="500"></textarea>\n' + ' </div>\n' + -- Gitblit v1.7.1