WorkAction.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace app\bug\model;
  3. use think\model\concern\SoftDelete;class WorkAction extends Base
  4. {
  5. //设置字段信息
  6. use SoftDelete;
  7. protected $schema = [
  8. 'id' =>'int',//
  9. 'action_name' =>'varchar',//功能名称
  10. 'menu_id' =>'int',//归属菜单页面id
  11. 'belong' =>'tinyint',//系统归属1采销2结算3数据统计
  12. 'belong_action' =>'text',//功能集合
  13. 'belong_process' =>'text',//功能集合
  14. 'apply_id' =>'int',//申请人id
  15. 'apply_name' =>'varchar',//申请人名称
  16. 'createTime' =>'datetime',//
  17. 'updateTime' =>'datetime',//
  18. 'delete_time' =>'datetime',//
  19. ];
  20. protected $updateTime='updateTime';
  21. protected $createTime='createTime';
  22. protected $deleteTime = 'delete_time';
  23. public function GetBelongActionAttr($v){
  24. return json_decode($v,true);
  25. }
  26. public function SetBelongActionAttr($v){
  27. return json_encode($v,JSON_UNESCAPED_UNICODE);
  28. }
  29. public function GetBelongProcessAttr($v){
  30. return json_decode($v,true);
  31. }
  32. public function SetBelongProcessAttr($v){
  33. return json_encode($v,JSON_UNESCAPED_UNICODE);
  34. }
  35. public function GetTreeActionByIdArr($idArr){
  36. }
  37. }