|
@@ -34,6 +34,7 @@ class Auction extends AuthController
|
|
|
{
|
|
{
|
|
|
$list = AuctionGu::select();
|
|
$list = AuctionGu::select();
|
|
|
|
|
|
|
|
|
|
+ $this->assign('admin', $this->adminInfo);
|
|
|
$this->assign('list', $list);
|
|
$this->assign('list', $list);
|
|
|
return $this->fetch();
|
|
return $this->fetch();
|
|
|
}
|
|
}
|
|
@@ -206,15 +207,21 @@ class Auction extends AuthController
|
|
|
$f[] = Form::input('anticipate', '预约价格', $data->getData('anticipate'))->col(12);
|
|
$f[] = Form::input('anticipate', '预约价格', $data->getData('anticipate'))->col(12);
|
|
|
$f[] = Form::frameImageOne('image', '场次主图片(305*305px)',Url::buildUrl('admin/widget.images/index', array('fodder' => 'image')), $data->getData('image'))->icon('image')->width('100%')->height('500px');
|
|
$f[] = Form::frameImageOne('image', '场次主图片(305*305px)',Url::buildUrl('admin/widget.images/index', array('fodder' => 'image')), $data->getData('image'))->icon('image')->width('100%')->height('500px');
|
|
|
$f[] = Form::radio('status', '状态', $data->getData('status'))->options([['label' => '开启', 'value' => 1], ['label' => '关闭', 'value' => 0]])->col(12);
|
|
$f[] = Form::radio('status', '状态', $data->getData('status'))->options([['label' => '开启', 'value' => 1], ['label' => '关闭', 'value' => 0]])->col(12);
|
|
|
- $f[] = Form::select('auction_gu_id', '绑定场馆', (string)$data->getData('auction_gu_id'))->setOptions(function () {
|
|
|
|
|
- $model = new AuctionGu();
|
|
|
|
|
- $list = $model->select();
|
|
|
|
|
- $menus = [];
|
|
|
|
|
- foreach ($list as $menu) {
|
|
|
|
|
- $menus[] = ['value' => $menu['id'], 'label' => $menu['name']];
|
|
|
|
|
- }
|
|
|
|
|
- return $menus;
|
|
|
|
|
- })->filterable(1)->col(12);
|
|
|
|
|
|
|
+ if ($this->adminInfo['roles'] == 1){
|
|
|
|
|
+ $f[] = Form::select('auction_gu_id', '绑定场馆', (string)$data->getData('auction_gu_id'))->setOptions(function () {
|
|
|
|
|
+ $model = new AuctionGu();
|
|
|
|
|
+ $list = $model->select();
|
|
|
|
|
+ $menus = [];
|
|
|
|
|
+ foreach ($list as $menu) {
|
|
|
|
|
+ $menus[] = ['value' => $menu['id'], 'label' => $menu['name']];
|
|
|
|
|
+ }
|
|
|
|
|
+ return $menus;
|
|
|
|
|
+ })->filterable(1)->col(12);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $f[] = Form::hidden('auction_gu_id', $data->getData('auction_gu_id'));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
$f[] = Form::dateTimes('add_time', '预约开始时间', $data->getData('add_time'));
|
|
$f[] = Form::dateTimes('add_time', '预约开始时间', $data->getData('add_time'));
|
|
|
$f[] = Form::dateTimes('end_time', '预约结束时间', $data->getData('end_time'));
|
|
$f[] = Form::dateTimes('end_time', '预约结束时间', $data->getData('end_time'));
|
|
|
$f[] = Form::dateTimes('radd_time', '入场时间', $data->getData('radd_time'));
|
|
$f[] = Form::dateTimes('radd_time', '入场时间', $data->getData('radd_time'));
|
|
@@ -319,6 +326,8 @@ class Auction extends AuthController
|
|
|
'id' => $id
|
|
'id' => $id
|
|
|
|
|
|
|
|
]);
|
|
]);
|
|
|
|
|
+ $this->assign('admin', $this->adminInfo);
|
|
|
|
|
+
|
|
|
return $this->fetch('');
|
|
return $this->fetch('');
|
|
|
|
|
|
|
|
|
|
|