|
...
|
...
|
@@ -53,8 +53,6 @@ |
|
|
|
cols: [[
|
|
|
|
{field: 'id', title: '{:lang("id")}', width:60, fixed: true},
|
|
|
|
{field: 'sellername', title: '商家名称'},
|
|
|
|
{field: 'phone', title: '商家电话'},
|
|
|
|
{field: 'map_address', title: '商家地址'},
|
|
|
|
{field: 'cuisine', align: 'center',title: '现有菜系'},
|
|
|
|
{field: 'type', align: 'center',title: '现有类型'},
|
|
|
|
{field: 'last_num', align: 'center',title: '短信余量'},
|
|
...
|
...
|
@@ -63,7 +61,6 @@ |
|
|
|
{field: 'is_parking', align: 'center', edit: 'text',title: '是否有停车场'},
|
|
|
|
{field: 'user_name', align: 'center',title: '创建人'},
|
|
|
|
{field: 'dz_version', align: 'center',title: 'APP版本'},
|
|
|
|
{field: 'cdate', align: 'center',title: '创建日期'},
|
|
|
|
{align: 'center', width:200,title: '操作', toolbar: '#action'}
|
|
|
|
]]
|
|
|
|
,id: 'testReload'
|
|
...
|
...
|
@@ -89,6 +86,24 @@ |
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//监听行双击事件
|
|
|
|
table.on('rowDouble(list)', function(obj){
|
|
|
|
//console.log(obj.tr) //得到当前行元素对象
|
|
|
|
console.log(obj.data) //得到当前行数据
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
title: obj.data.sellername,
|
|
|
|
shadeClose: true,
|
|
|
|
shade: 0.8,
|
|
|
|
area: ['90%', '90%'],
|
|
|
|
content: '{:url("sellerdetail")}?sid='+obj.data.id //iframe的url
|
|
|
|
/*success:function(dom){
|
|
|
|
let $iframeDom=$(dom[0]).find("iframe").eq(0).contents();
|
|
|
|
$iframeDom.find("#test").html("我是从父级传来的值哟……")
|
|
|
|
}*/
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//搜索
|
|
|
|
$('#search').on('click', function() {
|
|
|
|
var key = $('#key').val();
|
...
|
...
|
|