From a67e7fb80a71d50d972b461dde1e2738f8dfec0d Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Fri, 29 Nov 2024 14:33:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E8=AE=B0=E5=BD=95=EF=BC=88?= =?UTF-8?q?=E7=BC=BA=E8=AF=A6=E6=83=85=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/controller/Record.php | 31 ++++++++ .../src/view/record/index.html | 78 +++++++++++++++++++ .../src/view/record/index_search.html | 34 ++++++++ 3 files changed, 143 insertions(+) create mode 100644 plugs/think-plugs-inspection/src/controller/Record.php create mode 100644 plugs/think-plugs-inspection/src/view/record/index.html create mode 100644 plugs/think-plugs-inspection/src/view/record/index_search.html diff --git a/plugs/think-plugs-inspection/src/controller/Record.php b/plugs/think-plugs-inspection/src/controller/Record.php new file mode 100644 index 0000000..b1cdc81 --- /dev/null +++ b/plugs/think-plugs-inspection/src/controller/Record.php @@ -0,0 +1,31 @@ +title = '巡检记录'; + InspectionRecord::mQuery()->layTable(function () { + }, function (QueryHelper $query) { + $query->dateBetween(['start_at','end_at'])->equal(['status'])->with(['staff'])->append(['status_text']); + }); + } +} \ No newline at end of file diff --git a/plugs/think-plugs-inspection/src/view/record/index.html b/plugs/think-plugs-inspection/src/view/record/index.html new file mode 100644 index 0000000..a937868 --- /dev/null +++ b/plugs/think-plugs-inspection/src/view/record/index.html @@ -0,0 +1,78 @@ +{extend name="table"} + +{block name="button"} +{/block} + +{block name="content"} +