更新细节

This commit is contained in:
yaooo 2023-11-01 16:01:33 +08:00
parent 7e3851f7cb
commit a5d6866a2e
2 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@ class OaApprove extends ApiController
$this->did = $loginAdmin['did'];
$param = get_params();
if (empty($param['flow_id'])) {
$this->apiError("审批类型id不能为空");
$this->apiError("审批流程id不能为空");
}
if (isset($param['detail_time'])) {
$param['detail_time'] = strtotime($param['detail_time']);
@ -250,7 +250,7 @@ class OaApprove extends ApiController
$users = $param['check_admin_ids'];
sendMessage($users,21,$msg);
} catch (\Exception $e) {
$this->apiError($e->getError());
$this->apiError($e->getMessage());
}
} else {
$param['admin_id'] = $this->uid;
@ -317,7 +317,7 @@ class OaApprove extends ApiController
$users = $param['check_admin_ids'];
sendMessage($users, 21, $msg);
} catch (\Exception $e) {
$this->apiError($e->getError());
$this->apiError($e->getMessage());
}
}
$this->apiSuccess('操作成功');

View File

@ -24,7 +24,7 @@
<div class="layui-row">
{volist name="list" id="vo"}
{eq name="vo.type" value="$v.id"}
<div class="layui-col-md4" data-type="{$vo.id}" title="{$vo.title}"><div><i class="iconfont {$vo.icon}"></i>{$vo.title}</div></div>
<div class="layui-col-md4" data-type="{$vo.id}" title="{$vo.title}"><div><i class="iconfont {$vo.icon}"></i>{$vo.title}-{$vo.id}</div></div>
{/eq}
{/volist}
</div>