控制器示例

    1. <?php
    2. namespace app\controller;
    3. use app\BaseController;
    4. use tpScriptVueCurd\base\model\BaseModel;
    5. use tpScriptVueCurd\base\model\VueCurlModel;
    6. use tpScriptVueCurd\FieldCollection;
    7. class Project extends BaseController
    8. {
    9. use \tpScriptVueCurd\base\controller\Controller;
    10. public function init(): void
    11. {
    12. $this->md=\app\model\Project::make($this);
    13. $this->title='项目信息';
    14. }
    15. /**
    16. * 核实
    17. */
    18. public function check()
    19. {
    20. return $this->stepEdit();
    21. }
    22. /**
    23. * 撤回审核
    24. */
    25. public function withdrawal(){
    26. return $this->stepEdit();
    27. }
    28. }

    流程编写完成后,可打开 bpmn 页面进行查看流程图
    示例:
    http://127.0.0.1:8000/index.php/project/bpmn
    image.png