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"} +
+
+ {include file='record/index_search'} +
+
+
+ + +{/block} + +{block name='style'} + +{/block} + +{block name='script'} + +{/block} \ No newline at end of file diff --git a/plugs/think-plugs-inspection/src/view/record/index_search.html b/plugs/think-plugs-inspection/src/view/record/index_search.html new file mode 100644 index 0000000..0981286 --- /dev/null +++ b/plugs/think-plugs-inspection/src/view/record/index_search.html @@ -0,0 +1,34 @@ +
+ 条件搜索 + + +