소스 검색

设备管理显示调整

chenwen 3 년 전
부모
커밋
e554a71c49
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/main/webapp/page/notice/equipmentEdit.html
  2. 1 1
      src/main/webapp/page/notice/equipmentQuery.js

+ 1 - 1
src/main/webapp/page/notice/equipmentEdit.html

@@ -90,7 +90,7 @@
 				 <div class="layui-form-item layui-col-sm10">
 				   <div class="layui-input-block" style="position:relative;">
 				   	 <div class="del-mark layui-icon layui-icon-close"></div>
-				     <img style="width:550px;height:100px;" id="ad-preview">
+				     <img style="width:200px;height:200px;" id="ad-preview">
 				     
 				   </div>
 				 </div>

+ 1 - 1
src/main/webapp/page/notice/equipmentQuery.js

@@ -24,7 +24,7 @@ layui.use(['element','mylayer','newtable','laydate','myform','page'], function (
 				  					 cols:[[
 										 {type: 'numbers', title: '序号', width:60},
 										 {field: 'equiCon', title: '设备图片', width:240,templet:function(d){
-											 return '<div style="height:200px;width:200px;background:url(\''+d.accessPath+'\');background-size:cover;"></div>';
+											 return '<div style="height:200px;width:200px;background:url(\''+d.accessPath+'\') no-repeat;background-size:contain;"></div>';
 										 }},
 										 {field: 'equSort', title: '类型', width:140,templet:function(d){
 				  							 return {'rescue':'救援设备','intelligent':'智能设备'}[d.equSort]||'';