控制器示例
<?php
namespace app\controller;
use app\BaseController;
use tpScriptVueCurd\base\model\BaseModel;
use tpScriptVueCurd\base\model\VueCurlModel;
use tpScriptVueCurd\FieldCollection;
class Project extends BaseController
{
use \tpScriptVueCurd\base\controller\Controller;
public function init(): void
{
$this->md=\app\model\Project::make($this);
$this->title='项目信息';
}
/**
* 核实
*/
public function check()
{
return $this->stepEdit();
}
/**
* 撤回审核
*/
public function withdrawal(){
return $this->stepEdit();
}
}
流程编写完成后,可打开 bpmn 页面进行查看流程图
示例:
http://127.0.0.1:8000/index.php/project/bpmn