You've already forked guangan
菜单,首页数据
This commit is contained in:
@ -10,12 +10,13 @@ use think\admin\model\SystemUser;
|
||||
class Approval extends Controller
|
||||
{
|
||||
/**
|
||||
* 流程管理列表
|
||||
* 审批流程管理页面
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @return void
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
@ -35,9 +36,10 @@ class Approval extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加审批流程
|
||||
* 添加审批流程页面
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @return void
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
@ -47,9 +49,10 @@ class Approval extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑审批流程
|
||||
* 编辑审批流程页面
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @return void
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
@ -63,6 +66,7 @@ class Approval extends Controller
|
||||
* 删除审批流程
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @return void
|
||||
*/
|
||||
public function remove()
|
||||
{
|
||||
|
@ -213,6 +213,13 @@ class Ticket extends Controller
|
||||
$this->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
* 审核提交
|
||||
* @auth true
|
||||
* @menu true
|
||||
*/
|
||||
public function create_approval()
|
||||
{
|
||||
$data = $this->_vali([
|
||||
@ -268,6 +275,14 @@ class Ticket extends Controller
|
||||
$this->success('创建成功!');
|
||||
}
|
||||
|
||||
/**
|
||||
* 进行审核
|
||||
* @return void
|
||||
* @throws \Exception
|
||||
*
|
||||
* @auth true
|
||||
* @menu true
|
||||
*/
|
||||
public function do_approve()
|
||||
{
|
||||
$data = $this->_vali([
|
||||
|
@ -13,11 +13,13 @@ use think\admin\helper\QueryHelper;
|
||||
class Type extends Controller
|
||||
{
|
||||
/**
|
||||
* 工单类型列表
|
||||
* @return void
|
||||
* 工单类型列表页面
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @throws \think\db\exception\DataNotFoundException
|
||||
* @throws \think\db\exception\DbException
|
||||
* @throws \think\db\exception\ModelNotFoundException
|
||||
* @return void
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
@ -31,7 +33,9 @@ class Type extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加工单类型
|
||||
* 添加工单类型页面
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @return void
|
||||
*/
|
||||
public function add()
|
||||
@ -41,7 +45,9 @@ class Type extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑工单类型
|
||||
* 编辑工单类型页面
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @return void
|
||||
*/
|
||||
public function edit()
|
||||
@ -52,6 +58,8 @@ class Type extends Controller
|
||||
|
||||
/**
|
||||
* 修改工单类型状态
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @return void
|
||||
*/
|
||||
public function status()
|
||||
@ -65,6 +73,8 @@ class Type extends Controller
|
||||
|
||||
/**
|
||||
* 修改工单类型排序
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @return void
|
||||
*/
|
||||
public function sort()
|
||||
@ -76,8 +86,11 @@ class Type extends Controller
|
||||
'sort.between:0,9999' => '排序值必须为0~9999之间!',
|
||||
]), 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除工单类型
|
||||
* @auth true
|
||||
* @menu true
|
||||
* @return void
|
||||
*/
|
||||
public function remove()
|
||||
|
Reference in New Issue
Block a user