|
@@ -9,7 +9,8 @@ use app\common\controller\Backend;
|
|
|
use think\Db;
|
|
|
use think\exception\PDOException;
|
|
|
use think\exception\ValidateException;
|
|
|
-
|
|
|
+use app\common\model\Usergangwei;
|
|
|
+use fast\Tree;
|
|
|
/**
|
|
|
* 试卷
|
|
|
* @icon fa fa-circle-o
|
|
@@ -30,6 +31,12 @@ class Paper extends Backend
|
|
|
$this->view->assign("modeList", $this->model->getModeList());
|
|
|
$this->view->assign("kindList", $this->model->getKindList());
|
|
|
$this->view->assign("statusList", $this->model->getStatusList());
|
|
|
+
|
|
|
+ //岗位
|
|
|
+ $tree = Tree::instance();
|
|
|
+ $tree->init(Usergangwei::getCategoryArray(), 'pid');
|
|
|
+ $gangweilist = $tree->getTreeList($tree->getTreeArray(0), 'name');
|
|
|
+ $this->view->assign("gangweilist", $gangweilist);
|
|
|
}
|
|
|
|
|
|
|