作者 sgj
1 个管道 的构建 失败 耗费 1 秒

志愿者导出信息

... ... @@ -749,4 +749,10 @@ class ActivityController extends AdminBaseController
$Excel->excel($letter, $title, $join, "$activity[activity_name]活动申请列表");
}
public function addtime(){
$id=input('id');
$this->assign('id',$id);
return $this->fetch();
}
}
\ No newline at end of file
... ...
<include file="public@header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
</ul>
<form id="refund_form" method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('joinUnPass')}">
<div class="form-group ">
<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>拒绝理由</label>
<div class="col-md-10 col-sm-10">
<input class="form-control" type="text" required name="refund_reason" id="refund_reason" value="" placeholder="请输入拒绝理由">
</div>
</div>
<input type="hidden" name="id" value="{$id}">
<div style="display: none" class="form-group">
<label for="input-name" class="col-sm-2 control-label"><span class="form-required"></span></label>
<div class="col-md-6 col-sm-10">
<button id="sub" type="submit" class="btn btn-primary js-ajax-submit">保存</button>
</div>
</div>
</form>
<script type="application/javascript">
function load(){
/*检查*/
$('#sub').click();
}
</script>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -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
... ...