作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -610,6 +610,11 @@ class ProjectController extends BaseController @@ -610,6 +610,11 @@ class ProjectController extends BaseController
610 $hrManagerModel = new ManageHr(); 610 $hrManagerModel = new ManageHr();
611 if(!isset($this->map['status'])){ 611 if(!isset($this->map['status'])){
612 $this->map['status'] = $hrManagerModel::STATUS_ONE; 612 $this->map['status'] = $hrManagerModel::STATUS_ONE;
  613 + }else{
  614 + if(!is_array($this->map['status'])){
  615 + $this->map['status'] = [$this->map['status']];
  616 + }
  617 + $this->map['status'] = ['in',$this->map['status']];
613 } 618 }
614 if(isset($this->map['entry_position']) && !empty($this->map['entry_position'])){ 619 if(isset($this->map['entry_position']) && !empty($this->map['entry_position'])){
615 $this->map['entry_position'] = ['in',$this->map['entry_position']]; 620 $this->map['entry_position'] = ['in',$this->map['entry_position']];
@@ -96,7 +96,11 @@ class OperationHeartbeatController extends BaseController @@ -96,7 +96,11 @@ class OperationHeartbeatController extends BaseController
96 if($info['manager_id'] != 0){ 96 if($info['manager_id'] != 0){
97 $managerModel = new Manage(); 97 $managerModel = new Manage();
98 $managerInfo = $managerModel->read(['id'=>$info['manager_id']],['name']); 98 $managerInfo = $managerModel->read(['id'=>$info['manager_id']],['name']);
99 - $info['message'] = '此页面数据已有人在编辑,请勿重复操作!操作人ip:'.$info['ip'].'操作的管理员为:'.$managerInfo['name']; 99 + if(($info['ip'] == $this->request->ip()) && ($info['manager_id'] == $this->user['manager_id'])){
  100 + $info['status'] = 0;
  101 + }else{
  102 + $info['message'] = '此页面数据已有人在编辑,请勿重复操作!操作人ip:'.$info['ip'].'操作的管理员为:'.$managerInfo['name'];
  103 + }
100 }else{ 104 }else{
101 //账号密码登录 105 //账号密码登录
102 $userModel = new User(); 106 $userModel = new User();
@@ -13,6 +13,7 @@ use App\Models\Template\BTemplateLog; @@ -13,6 +13,7 @@ use App\Models\Template\BTemplateLog;
13 use App\Models\Template\BTemplateMain; 13 use App\Models\Template\BTemplateMain;
14 use App\Models\Template\Setting; 14 use App\Models\Template\Setting;
15 use App\Models\Template\BTemplate; 15 use App\Models\Template\BTemplate;
  16 +use App\Models\Template\TemplateTypeMain;
16 17
17 class CustomTemplateLogic extends BaseLogic 18 class CustomTemplateLogic extends BaseLogic
18 { 19 {
@@ -179,10 +180,11 @@ class CustomTemplateLogic extends BaseLogic @@ -179,10 +180,11 @@ class CustomTemplateLogic extends BaseLogic
179 $this->fail('404页面已存在'); 180 $this->fail('404页面已存在');
180 } 181 }
181 if($this->param['url'] == 'search'){ 182 if($this->param['url'] == 'search'){
182 - $bTemplateMainModel = new BTemplateMain(); 183 + $bTemplateMainModel = new TemplateTypeMain();
183 $mainInfo = $bTemplateMainModel->read(['type'=>8]); 184 $mainInfo = $bTemplateMainModel->read(['type'=>8]);
184 if($mainInfo !== false){ 185 if($mainInfo !== false){
185 $this->param['html'] = $mainInfo['main_html']; 186 $this->param['html'] = $mainInfo['main_html'];
  187 + $this->param['html_style'] = "<style id='globalsojs-styles'></style>";
186 } 188 }
187 } 189 }
188 $this->param['project_id'] = $this->user['project_id']; 190 $this->param['project_id'] = $this->user['project_id'];