|
@@ -93,6 +93,7 @@ class Entrust extends Backend
|
|
|
{
|
|
{
|
|
|
if (false === $this->request->isPost()) {
|
|
if (false === $this->request->isPost()) {
|
|
|
$user_id = Session::get('admin')['id'];
|
|
$user_id = Session::get('admin')['id'];
|
|
|
|
|
+ $nickname = Session::get('admin')['nickname'];
|
|
|
$company_id = Db::name('admin')->where('id',$user_id)->value('company');
|
|
$company_id = Db::name('admin')->where('id',$user_id)->value('company');
|
|
|
$company = Db::name('company')->where('pid',$company_id)->column('id,name');
|
|
$company = Db::name('company')->where('pid',$company_id)->column('id,name');
|
|
|
if (empty($company)){
|
|
if (empty($company)){
|
|
@@ -101,6 +102,7 @@ class Entrust extends Backend
|
|
|
$this->assign('company',$company);
|
|
$this->assign('company',$company);
|
|
|
$judgeData = Db::name('item_judge')->whereNull('delete')->column('id,name');
|
|
$judgeData = Db::name('item_judge')->whereNull('delete')->column('id,name');
|
|
|
$this->view->assign('judgeData', $judgeData);
|
|
$this->view->assign('judgeData', $judgeData);
|
|
|
|
|
+ $this->view->assign('nickname', $nickname);
|
|
|
return $this->view->fetch();
|
|
return $this->view->fetch();
|
|
|
}
|
|
}
|
|
|
$params = $this->request->post('row/a');
|
|
$params = $this->request->post('row/a');
|
|
@@ -193,9 +195,6 @@ class Entrust extends Backend
|
|
|
$this->assign('sample_stand',$sample_stand);
|
|
$this->assign('sample_stand',$sample_stand);
|
|
|
$this->view->assign('row', $row);
|
|
$this->view->assign('row', $row);
|
|
|
//修改判定标准
|
|
//修改判定标准
|
|
|
-// $entrust = Db::name('entrust')->where('id',$ids)->find();
|
|
|
|
|
-// $item_judge = $entrust['standard_id'];
|
|
|
|
|
-// $this->assign('item_judge',$item_judge);
|
|
|
|
|
$judgeData = Db::name('item_judge')->whereNull('delete')->column('id,name');
|
|
$judgeData = Db::name('item_judge')->whereNull('delete')->column('id,name');
|
|
|
$this->view->assign('judgeData', $judgeData);
|
|
$this->view->assign('judgeData', $judgeData);
|
|
|
return $this->view->fetch();
|
|
return $this->view->fetch();
|