Commit a202339c authored by agping's avatar agping

优化

parent 1019f682
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
} }
#container_body_img_area>div,#container_body_img_area2>div{ #container_body_img_area>div,#container_body_img_area2>div{
float: left; float: left;
width: 216px; width: 136px;
} }
.active { .active {
color:dodgerblue; color:dodgerblue;
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
.img-pre-ul>li { .img-pre-ul>li {
list-style: no; list-style: no;
float: left; float: left;
width: 210px; width: 110px;
height: 170px; height: 170px;
overflow: hidden; overflow: hidden;
margin-right: 10px; margin-right: 10px;
...@@ -83,8 +83,8 @@ ...@@ -83,8 +83,8 @@
display: none !important; display: none !important;
} }
.result>img,.result2>img{ .result>img,.result2>img{
width: 120px; width: 80px;
height: 120px; height: 80px;
margin-top: 8px; margin-top: 8px;
} }
#container_body{ #container_body{
......
...@@ -80,6 +80,15 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', ' ...@@ -80,6 +80,15 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
$(document).on('click','#reset',function(e){ $(document).on('click','#reset',function(e){
that.resetAll(); that.resetAll();
}); });
//新增报销图片删除
_doc.on('click', '.span-del', function(e) {
var _this = $(this);
e.preventDefault();
e.stopPropagation();
if(confirm('确认删除吗?')){
_this.parent().remove();
};
});
//点击新增报销 //点击新增报销
$(document).on('click','.new-cost',function(e){ $(document).on('click','.new-cost',function(e){
//初始化新增 费用项目 隐藏费用项目 门店 办公室 //初始化新增 费用项目 隐藏费用项目 门店 办公室
...@@ -613,7 +622,8 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', ' ...@@ -613,7 +622,8 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
that.agent_id_office=""; that.agent_id_office="";
that.agent_id_store=""; that.agent_id_store="";
that.agent_site_office=""; that.agent_site_office="";
//图片置空
$('#container_body_img_area').html('');
}, },
//重置搜索条件 //重置搜索条件
resetAll : function(){ resetAll : function(){
......
...@@ -413,7 +413,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', ' ...@@ -413,7 +413,7 @@ define(['doT', 'text!temp/cost_check_template_tpl.html', 'css!style/home.css', '
}; };
params.id = cost.id; params.id = cost.id;
params.img_arr = JSON.stringify(imgname); params.img_arr = JSON.stringify(imgname);
if(img_arr){ if(imgname.length){
}else{ }else{
alert('请上传图片'); alert('请上传图片');
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment