|
@@ -5,17 +5,17 @@
|
|
<style>
|
|
<style>
|
|
.tableImage_s{
|
|
.tableImage_s{
|
|
border-radius:2px;
|
|
border-radius:2px;
|
|
- width:35px;
|
|
|
|
- height: 32px;
|
|
|
|
|
|
+ width: 24px;
|
|
|
|
+ height: 22px;
|
|
}
|
|
}
|
|
.tableImage_m{
|
|
.tableImage_m{
|
|
border-radius:2px;
|
|
border-radius:2px;
|
|
- width:38px;
|
|
|
|
- height: 32px;
|
|
|
|
|
|
+ width: 36px;
|
|
|
|
+ height: 30px;
|
|
}
|
|
}
|
|
.tableImage_l{
|
|
.tableImage_l{
|
|
border-radius:2px;
|
|
border-radius:2px;
|
|
- width:57px;
|
|
|
|
|
|
+ width: 73px;
|
|
height: 32px;
|
|
height: 32px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
@@ -46,7 +46,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
<div class="btn-group-sm" id="toolbar" role="group">
|
|
- <a class="btn btn-success" onclick="$.operate.add(0)" shiro:hasPermission="wxportal:magnet:add">
|
|
|
|
|
|
+ <a class="btn btn-success" onclick="addNew()" shiro:hasPermission="wxportal:magnet:add">
|
|
<i class="fa fa-plus"></i> 新增
|
|
<i class="fa fa-plus"></i> 新增
|
|
</a>
|
|
</a>
|
|
<!--<a class="btn btn-primary" onclick="$.operate.editFull()" shiro:hasPermission="wxportal:magnet:edit">-->
|
|
<!--<a class="btn btn-primary" onclick="$.operate.editFull()" shiro:hasPermission="wxportal:magnet:edit">-->
|
|
@@ -101,11 +101,11 @@
|
|
str = ctx+value;
|
|
str = ctx+value;
|
|
}
|
|
}
|
|
if(row.magnetSize=="S"){
|
|
if(row.magnetSize=="S"){
|
|
- return $.table.imageView(str,200,200,"tableImage_s img-view");
|
|
|
|
|
|
+ return $.table.imageView(str,218,237,"tableImage_s img-view");
|
|
}else if(row.magnetSize=="M"){
|
|
}else if(row.magnetSize=="M"){
|
|
- return $.table.imageView(str,200,300,"tableImage_m img-view");
|
|
|
|
|
|
+ return $.table.imageView(str,300,360,"tableImage_m img-view");
|
|
}else if(row.magnetSize=="L"){
|
|
}else if(row.magnetSize=="L"){
|
|
- return $.table.imageView(str,200,600,"tableImage_l img-view");
|
|
|
|
|
|
+ return $.table.imageView(str,320,730,"tableImage_l img-view");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -148,7 +148,7 @@
|
|
align: "left",
|
|
align: "left",
|
|
formatter: function(value, row, index) {
|
|
formatter: function(value, row, index) {
|
|
var actions = [];
|
|
var actions = [];
|
|
- actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.magnetId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
|
|
|
+ actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="editMagnet(\'' + row.magnetId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.magnetId + '\')"><i class="fa fa-trash"></i>删除</a>');
|
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.magnetId + '\')"><i class="fa fa-trash"></i>删除</a>');
|
|
return actions.join('');
|
|
return actions.join('');
|
|
}
|
|
}
|
|
@@ -156,6 +156,25 @@
|
|
};
|
|
};
|
|
$.table.init(options);
|
|
$.table.init(options);
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ function addNew(){
|
|
|
|
+ //$.modal.open("添加" + $.table._option.modalName, );
|
|
|
|
+ $.modal.open("添加" + $.table._option.modalName, $.operate.addUrl(0),950,700);
|
|
|
|
+ // var options = {
|
|
|
|
+ // title: "添加" + $.table._option.modalName,
|
|
|
|
+ // width: 950,
|
|
|
|
+ // height: 700,
|
|
|
|
+ // url: $.operate.addUrl()
|
|
|
|
+ // };
|
|
|
|
+ // $.modal.openOptions(options);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function editMagnet(id){
|
|
|
|
+
|
|
|
|
+ $.modal.open("修改" + $.table._option.modalName, $.operate.editUrl(id),950,700);
|
|
|
|
+
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|