From 3a0112badb138df96116eee755772924564c36c5 Mon Sep 17 00:00:00 2001 From: logoji Date: Sat, 10 Dec 2022 20:35:09 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E5=BC=80=E5=85=B3=20Signed-off-by:=20logoji=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../site/global/siteSet/siteFunctionSetCon.js | 11 +++++++++-- .../site/user/userRol/rolPermissionCon.js | 1 + .../global/siteSet/siteFunctionSetView.vue | 16 ++++++++++++++-- .../site/user/userRol/rolPermissionView.vue | 19 ++++++++++++++++--- 4 files changed, 40 insertions(+), 7 deletions(-) diff --git a/resources/frame/src/admin/controllers/site/global/siteSet/siteFunctionSetCon.js b/resources/frame/src/admin/controllers/site/global/siteSet/siteFunctionSetCon.js index 43929a5..f897f55 100644 --- a/resources/frame/src/admin/controllers/site/global/siteSet/siteFunctionSetCon.js +++ b/resources/frame/src/admin/controllers/site/global/siteSet/siteFunctionSetCon.js @@ -6,6 +6,7 @@ export default { return { // purchase:false, // 购买权限 reward: false, // 数据过滤开关 + title: false, // 标题过滤开关 recharge: false, } }, @@ -31,6 +32,7 @@ export default { // 打赏权限 this.reward = forumData.other.threadOptimize; this.recharge = forumData.setSite.siteCharge === 1 ? true : false; + this.title = forumData.setSite.siteTitle === 1 ? true : false; } }) .catch(error => {}); @@ -74,6 +76,11 @@ export default { "value": this.recharge ? 1 : 0, "tag": "default" }, + { + "key":"site_title", + "value": this.title ? 1 : 0, + "tag": "default" + }, ] } }).then(res=>{ @@ -90,7 +97,7 @@ export default { }); this.loadFunctionStatus(); } - + }).catch(err=>{ this.$message.error('操作失败!'); }) @@ -103,4 +110,4 @@ export default { Card, CardRow } -} \ No newline at end of file +} diff --git a/resources/frame/src/admin/controllers/site/user/userRol/rolPermissionCon.js b/resources/frame/src/admin/controllers/site/user/userRol/rolPermissionCon.js index fe56738..7d38825 100644 --- a/resources/frame/src/admin/controllers/site/user/userRol/rolPermissionCon.js +++ b/resources/frame/src/admin/controllers/site/user/userRol/rolPermissionCon.js @@ -841,6 +841,7 @@ "thread.viewAttachment", // 查看附件 "thread.downloadAttachment", // 下载附件 "thread.sticky", //置顶 + "thread.poster", //海报 "switch.thread.essence", //加精 "switch.thread.edit", //编辑主题 "switch.thread.hide", //删除主题 diff --git a/resources/frame/src/admin/view/site/global/siteSet/siteFunctionSetView.vue b/resources/frame/src/admin/view/site/global/siteSet/siteFunctionSetView.vue index ae0340a..ea3f51b 100644 --- a/resources/frame/src/admin/view/site/global/siteSet/siteFunctionSetView.vue +++ b/resources/frame/src/admin/view/site/global/siteSet/siteFunctionSetView.vue @@ -1,5 +1,15 @@