...
|
...
|
@@ -12,9 +12,10 @@ |
|
|
<input type="text" class="form-control" name="keyword" style="width: 150px;" value="" placeholder="请输入关键字">-->
|
|
|
<input type="hidden" name="id" value="{:input('id')}">
|
|
|
<input type="submit" class="btn btn-primary" value="导出">
|
|
|
|
|
|
<!-- <a class="btn btn-danger" href="/admin/activity/index.html">清空</a>-->
|
|
|
</form>
|
|
|
|
|
|
<button class="btn btn-primary" onclick="addtime({:input('id')})">批量添加工时</button>
|
|
|
<form class="js-ajax-form" action="" method="post">
|
|
|
<table class="table table-hover table-bordered">
|
|
|
|
...
|
...
|
@@ -198,6 +199,36 @@ |
|
|
}
|
|
|
|
|
|
|
|
|
function addtime(res) {
|
|
|
var selectedCategoriesId = res
|
|
|
console.log(res)
|
|
|
openIframeLayer("{:url('activity/addtime')}?id=" + selectedCategoriesId, '拒绝信息', {
|
|
|
area: ['700px', '300px'],
|
|
|
btn: ['确定','取消'],
|
|
|
yes: function (index, layero) {
|
|
|
//do something
|
|
|
console.log(index)
|
|
|
console.log(layero)
|
|
|
var iframeWin= window[layero.find('iframe')];
|
|
|
|
|
|
// console.log('222222222222');
|
|
|
/* console.log($('#refund_form').html());
|
|
|
$('#refund_form').submit();*/
|
|
|
var body = layer.getChildFrame('body', index);
|
|
|
var iframeWin = window[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象,执行iframe页的方法:
|
|
|
iframeWin.load();
|
|
|
//console.log(layer.getFrameIndex(index));
|
|
|
layer.close(index); //如果设定了yes回调,需进行手工关闭
|
|
|
console.log('reload');
|
|
|
location.reload()
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|