From 4babd9a9cc260316c549f52f68618ec9ce353841 Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 3 Dec 2019 10:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/view/auth/index.html | 29 +++++++++++++++-------------- app/admin/view/user/index.html | 7 ++++--- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/app/admin/view/auth/index.html b/app/admin/view/auth/index.html index 23d328fbb..33879201b 100644 --- a/app/admin/view/auth/index.html +++ b/app/admin/view/auth/index.html @@ -2,12 +2,12 @@ {block name="button"} -{if auth("admin/auth/add")} +{if auth("add")} {/if} -{if auth("admin/auth/remove")} - +{if auth("remove")} + {/if} {/block} @@ -48,24 +48,25 @@ - {if auth("admin/auth/edit")} + {if auth("edit")} | - 编 辑 + 编 辑 {/if} - {if auth("admin/auth/apply")} - 授 权 + {if auth("apply")} + 授 权 {/if} - {if $vo.status eq 1 and auth("admin/auth/state")} - 禁 用 - {/if} - {if $vo.status eq 0 and auth("admin/auth/state")} - 启 用 + {if $vo.status eq 1 and auth("state")} + 禁 用 {/if} - {if auth("admin/auth/remove")} - 删 除 + {if $vo.status eq 0 and auth("state")} + 启 用 + {/if} + + {if auth("remove")} + 删 除 {/if} diff --git a/app/admin/view/user/index.html b/app/admin/view/user/index.html index f188c6414..2d9a36c8a 100644 --- a/app/admin/view/user/index.html +++ b/app/admin/view/user/index.html @@ -55,9 +55,10 @@ {/if} {if $vo.status eq 1 and auth("state")} - 禁 用 - {elseif $vo.status eq 0 and auth("state")} - 启 用 + 禁 用 + {/if} + {if $vo.status eq 0 and auth("state")} + 启 用 {/if} {if auth("remove")}