From 6c491bac813c526d33768604731e6b7efeb611db Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Thu, 16 Apr 2026 14:32:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=BF=90=E8=90=A5]=E5=85=AC=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/operation/OperationNotice.php | 31 +++++ app/common/model/OperationNotice.php | 20 +++ .../backend/en/operation/operationNotice.ts | 15 ++ .../zh-cn/operation/operationNotice.ts | 15 ++ .../operation/operationNotice/index.vue | 130 ++++++++++++++++++ .../operation/operationNotice/popupForm.vue | 56 ++++++++ 6 files changed, 267 insertions(+) create mode 100644 app/admin/controller/operation/OperationNotice.php create mode 100644 app/common/model/OperationNotice.php create mode 100644 web/src/lang/backend/en/operation/operationNotice.ts create mode 100644 web/src/lang/backend/zh-cn/operation/operationNotice.ts create mode 100644 web/src/views/backend/operation/operationNotice/index.vue create mode 100644 web/src/views/backend/operation/operationNotice/popupForm.vue diff --git a/app/admin/controller/operation/OperationNotice.php b/app/admin/controller/operation/OperationNotice.php new file mode 100644 index 0000000..9b61544 --- /dev/null +++ b/app/admin/controller/operation/OperationNotice.php @@ -0,0 +1,31 @@ + 'desc']; + + protected string|array $orderGuarantee = ['id' => 'desc']; + + protected bool $modelValidate = false; + + protected function initController(WebmanRequest $request): ?Response + { + $this->model = new \app\common\model\OperationNotice(); + return null; + } +} diff --git a/app/common/model/OperationNotice.php b/app/common/model/OperationNotice.php new file mode 100644 index 0000000..7995188 --- /dev/null +++ b/app/common/model/OperationNotice.php @@ -0,0 +1,20 @@ + 'integer', + 'update_time' => 'integer', + 'publish_at' => 'integer', + 'notice_type' => 'integer', + 'status' => 'integer', + ]; +} diff --git a/web/src/lang/backend/en/operation/operationNotice.ts b/web/src/lang/backend/en/operation/operationNotice.ts new file mode 100644 index 0000000..f3b64f5 --- /dev/null +++ b/web/src/lang/backend/en/operation/operationNotice.ts @@ -0,0 +1,15 @@ +export default { + 'quick Search Fields': 'ID/Title', + id: 'ID', + title: 'Title', + content: 'Content', + notice_type: 'Notice type', + 'notice_type 0': 'Inbox (silent)', + 'notice_type 1': 'Pop-up', + status: 'Status', + 'status 0': 'Draft', + 'status 1': 'Published', + publish_at: 'Publish time', + create_time: 'Created', + update_time: 'Updated', +} diff --git a/web/src/lang/backend/zh-cn/operation/operationNotice.ts b/web/src/lang/backend/zh-cn/operation/operationNotice.ts new file mode 100644 index 0000000..949d3c5 --- /dev/null +++ b/web/src/lang/backend/zh-cn/operation/operationNotice.ts @@ -0,0 +1,15 @@ +export default { + 'quick Search Fields': 'ID/标题', + id: 'ID', + title: '标题', + content: '正文', + notice_type: '公告类型', + 'notice_type 0': '静默信箱', + 'notice_type 1': '强弹窗', + status: '状态', + 'status 0': '草稿', + 'status 1': '发布', + publish_at: '发布时间', + create_time: '创建时间', + update_time: '更新时间', +} diff --git a/web/src/views/backend/operation/operationNotice/index.vue b/web/src/views/backend/operation/operationNotice/index.vue new file mode 100644 index 0000000..2dd9408 --- /dev/null +++ b/web/src/views/backend/operation/operationNotice/index.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/web/src/views/backend/operation/operationNotice/popupForm.vue b/web/src/views/backend/operation/operationNotice/popupForm.vue new file mode 100644 index 0000000..0fcc734 --- /dev/null +++ b/web/src/views/backend/operation/operationNotice/popupForm.vue @@ -0,0 +1,56 @@ + + + + +