解决无效列表报错信息

dev
曾超新 5 years ago
parent 2329339691
commit db94d465e3
  1. 5
      frontend/controllers/DatabaseController.php
  2. 8
      frontend/views/database/invalid-index.php

@ -1921,7 +1921,10 @@ class DatabaseController extends BaseController
}
public function actionInvalidIndex()
{
return $this->render('invalid-index');
$invalid_items = InvalidT::getTree();
return $this->render('invalid-index',[
'invalid_items'
]);
}
public function actionInvalidSearch() {
$invalid_items = InvalidT::getTree();

@ -24,14 +24,6 @@ use \common\libs\MyLib;
<button type="button" class="btn btn-primary btn-assign-return">勾选恢复</button>
<button type="button" class="btn btn-primary btn-assign-all">批量恢复</button>
<button type="button" class="btn btn-danger btn-clear">清空搜索条件</button>
<select class="form-control" id="invalid_id" name="invalid_id">
<option value="0">请选择无效理由</option>
<?php foreach($invalid_items as $item) {
echo '<option value="'.$item->id.'">'.$item->name.'</option>';
}
?>
</select>
<button type="button" class="btn btn-primary btn-a-invalid">勾选无效数据</button>
</div>
</form>
<div class="row">

Loading…
Cancel
Save