Commit 6da309e1 by 朱继来

添加权限

parent a316866c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
return [ return [
// 菜单权限 // 菜单权限
'订单管理' => [ '订单管理' => [
'平台订单' => ['orderlist_check', 'export', 'check_order', 'cancel_order', 'check_account', 'order_send', 'send_invoice', 'update_address', 'update_invoice', 'check_test_order', 'check_offline_order'], '平台订单' => ['orderlist_check', 'export', 'check_order', 'cancel_order', 'check_account', 'order_send', 'send_invoice', 'update_address', 'update_invoice', 'check_test_order', 'check_offline_order', 'download_contract'],
'ERP订单' => ['erp_order_check'], 'ERP订单' => ['erp_order_check'],
......
...@@ -281,7 +281,9 @@ ...@@ -281,7 +281,9 @@
$downLoadUrl = $apiUrl.'contract/pdfinfo?id='.$v['order_id'].'&k1='.$k1.'&k2='.$k2; $downLoadUrl = $apiUrl.'contract/pdfinfo?id='.$v['order_id'].'&k1='.$k1.'&k2='.$k2;
?> ?>
<a class="btn btn-primary" href="{{$downLoadUrl}}">下载合同</a> @if (in_array('download_contract', $userPerms))
<a class="btn btn-info" href="{{$downLoadUrl}}">下载合同</a>
@endif
</div> </div>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment