From 8bda1e3d2ca60a765b31c37e9c82b6acc987993b Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Wed, 25 Dec 2019 13:55:25 +0800 Subject: [PATCH 1/2] xuigaiquanxian --- safesite/templates/riskadd.html | 6 ++++++ safesite/urls.py | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/safesite/templates/riskadd.html b/safesite/templates/riskadd.html index 9fc16317..0937d301 100644 --- a/safesite/templates/riskadd.html +++ b/safesite/templates/riskadd.html @@ -74,6 +74,12 @@ 查询 diff --git a/safesite/templates/zuoyepeizhi.html b/safesite/templates/zuoyepeizhi.html index 3f1042a4..531ec1bf 100644 --- a/safesite/templates/zuoyepeizhi.html +++ b/safesite/templates/zuoyepeizhi.html @@ -6,15 +6,31 @@
+ + {% load myfilter %} + {% if request|has_permission:'b_zuoyepeizhi_risk_add' %} 新增 - 删除 + {% endif %} + {% if request|has_permission:'b_zuoyepeizhi_risk_del' %} + 删除 + {% endif %} + + + +
+ {% if request|has_permission:'b_zuoyepeizhi_shenpi_add' %} 新增 - 删除 + {% endif %} + {% if request|has_permission:'b_zuoyepeizhi_shenpi_del' %} + 删除 + {% endif %} + +