| | |
| | | max-width: 100px; |
| | | max-height: 100px; |
| | | } |
| | | |
| | | </style> |
| | | <script> |
| | | // 这里是需要在页面渲染之前执行的代码 |
| | |
| | | <div style="display: none;" id="UploadImageView"> |
| | | |
| | | <div id="UploadImage" style="margin-left: 35px;margin-top: 30px;"> |
| | | <label>上传图片:</label><button type="button" class="layui-btn" id="uploadBtn" style="margin-left: 20px;" >浏览</button> |
| | | <label>上传图片:</label><button type="button" class="layui-btn" id="uploadBtn" |
| | | style="margin-left: 20px;">浏览</button> |
| | | <button type="button" class="layui-btn" id="upload" style="margin-left: 20px;">上传</button> |
| | | |
| | | </div> |
| | |
| | | { field: 'Status', title: '执行状态', align: 'center', width: 90, templet: '#templetStatus' }, |
| | | { field: 'RequestTime', title: '请验日期', align: 'center', width: 165, templet: '#templetCompleteTime' }, |
| | | { field: 'RequestUser', title: '请验人', align: 'center', width: 165 }, |
| | | { field: 'UDF5', title: '图片', align: 'center', width: 100 ,templet: function (d) { |
| | | return d.image ? '<img src="' + d.image + '" alt="图片">' : '无图片';}}, |
| | | { |
| | | field: 'UDF5', title: '图片', align: 'center', width: 100, templet: function (d) { |
| | | return d.image ? '<img src="' + d.image + '" alt="图片">' : '无图片'; |
| | | } |
| | | }, |
| | | // { field: 'UDF2', title: '自定义2', align: 'center', width: 100 }, |
| | | // { field: 'UDF3', title: '自定义3', align: 'center', width: 100 }, |
| | | // { field: 'UDF4', title: '自定义4', align: 'center', width: 100 }, |
| | |
| | | } |
| | | }); |
| | | |
| | | function getImage(id) |
| | | { |
| | | function getImage(id) { |
| | | var param = { |
| | | Id:id |
| | | } |
| | |
| | | }); |
| | | } |
| | | }); |
| | | })}); |
| | | }) |
| | | }); |
| | | } else { //不成功 |
| | | $("#ImagesShow").html(''); |
| | | res.msg, { |