|
...
|
...
|
@@ -28,7 +28,12 @@ |
|
|
|
</div>
|
|
|
|
<table class="layui-table" id="list" lay-filter="list"></table>
|
|
|
|
</div>
|
|
|
|
<script type="text/html" id="toolbarDemo">
|
|
|
|
<script type="text/html" id="action">
|
|
|
|
{{# if(d.status == "未通过" || d.status =="已发送"|| d.status =="待发送"){ }}
|
|
|
|
<button type="button" class="layui-btn layui-btn-xs layui-btn-disabled">已审核</button>
|
|
|
|
{{# } else { }}
|
|
|
|
<button type="button" class="layui-btn layui-btn-xs" lay-event="update">审核</button>
|
|
|
|
{{# } }}
|
|
|
|
</script>
|
|
|
|
{include file="common/foot"/}
|
|
|
|
<script>
|
|
...
|
...
|
@@ -43,26 +48,20 @@ |
|
|
|
page:true,
|
|
|
|
toolbar: '#toolbarDemo',
|
|
|
|
cols: [[
|
|
|
|
{field: 'sid', title: '{:lang("sid")}',width:70, fixed: true},
|
|
|
|
{field: 'sellername', align: 'center',title: '店铺名字'},
|
|
|
|
{field: 'type_id', title: '来源'},
|
|
|
|
{field: 'id', title: '营销ID'},
|
|
|
|
{field: 'tmp_code', title: '模板CODE'},
|
|
|
|
{field: 'send_phones', title: '发送号码'},
|
|
|
|
{field: 'send_total', align: 'center', title: '发送人数'},
|
|
|
|
{field: 'send_msg', align: 'center', title: '发送内容'},
|
|
|
|
{field: 'name', align: 'center',title: '负责发送人'},
|
|
|
|
{field: 'phone', align: 'center',title: '负责人手机号'},
|
|
|
|
{field: 'note_name', align: 'center',title: '创建人'},
|
|
|
|
{field: 'sender', align: 'center',title: '发送人'},
|
|
|
|
{field: 'reduce_num', align: 'center',title: '短信扣除数'},
|
|
|
|
{field: 'status', align: 'center',title: '审核状态'},
|
|
|
|
{field: 'channel', align: 'center',title: '发送渠道'},
|
|
|
|
{field: 'is_send_end', align: 'center',title: '是否发送完毕'},
|
|
|
|
{field: 'channel', align: 'center',title: '发送渠道'},
|
|
|
|
{field: 'channel', align: 'center',title: '发送渠道'},
|
|
|
|
{field: 'stime', align: 'center',title: '发送时间'},
|
|
|
|
{field: 'addtime', align: 'center',title: '创建时间'},
|
|
|
|
{field: 'sellername',title: '店铺名字'},
|
|
|
|
{field: 'type_id', title: '来源'},
|
|
|
|
{field: 'send_total', title: '发送人数'},
|
|
|
|
{field: 'send_msg', title: '发送内容'},
|
|
|
|
{field: 'phone',title: '负责人手机号'},
|
|
|
|
{field: 'note_name',title: '创建人'},
|
|
|
|
{field: 'reduce_num',title: '短信扣除数'},
|
|
|
|
{field: 'status',title: '短信状态'},
|
|
|
|
{field: 'channel',title: '发送渠道'},
|
|
|
|
{field: 'is_send_end',width:120,title: '是否发送完毕'},
|
|
|
|
{field: 'stime',title: '发送时间'},
|
|
|
|
{field: 'addtime',title: '创建时间'},
|
|
|
|
{align: 'center', width:200,title: '操作', toolbar: '#action'}
|
|
|
|
]],
|
|
|
|
done: function(res, curr, count){
|
|
|
|
|
|
...
|
...
|
@@ -110,5 +109,24 @@ |
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
//监听工具条
|
|
|
|
table.on('tool(list)', function(obj){ //注:tool是工具条事件名,test是table原始容器的属性 lay-filter="对应的值"
|
|
|
|
var data = obj.data; //获得当前行数据
|
|
|
|
var layEvent = obj.event; //获得 lay-event 对应的值(也可以是表头的 event 参数对应的值)
|
|
|
|
var tr = obj.tr; //获得当前行 tr 的DOM对象
|
|
|
|
|
|
|
|
if(layEvent === 'update'){ //修改
|
|
|
|
//iframe层
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
title: obj.data.sellername,
|
|
|
|
shadeClose: true,
|
|
|
|
shade: 0.8,
|
|
|
|
area: ['50%', '55%'],
|
|
|
|
content: '{:url("Sms/smsToExamine")}?id='+obj.data.id //iframe的url
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|