wupengfei 1 gadu atpakaļ
vecāks
revīzija
d51fd3e71c

+ 3 - 2
.idea/workspace.xml

@@ -3,7 +3,8 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/comment_report/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/comment_report/index.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/nutrition/controller/DatumComment.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/DatumComment.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/nutrition/view/datum_comment/index_search.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/datum_comment/index_search.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -313,7 +314,7 @@
       <workItem from="1683680449159" duration="24035000" />
       <workItem from="1683766597228" duration="22109000" />
       <workItem from="1683852930702" duration="24375000" />
-      <workItem from="1684112329391" duration="10770000" />
+      <workItem from="1684112329391" duration="10867000" />
     </task>
     <servers />
   </component>

+ 1 - 0
application/nutrition/controller/DatumComment.php

@@ -34,6 +34,7 @@ class DatumComment extends Controller
         $sel_where[] = ['c.url_id','=',$this->url_id];
         if($content = $this->request->get('content'))$sel_where[] = ['c.content','like','%'.$content.'%'];
         if($name = $this->request->get('name'))$sel_where[] = ['u.name','like','%'.$name.'%'];
+        if($id = $this->request->get('id')) $sel_where[] = ['c.id','=',$id];
         $query = $this->_query($this->table)->alias('c')
             ->field('c.*,u.name,u.headimg')
             ->leftJoin("store_member u",'u.id = c.user_id')

+ 7 - 0
application/nutrition/view/datum_comment/index_search.html

@@ -3,6 +3,13 @@
     <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
 
         <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">ID</label>
+            <div class="layui-input-inline">
+                <input name="id" maxlength="60"  value='{$Think.get.id|default=""}' placeholder="请输入ID" class="layui-input">
+            </div>
+        </div>
+
+        <div class="layui-form-item layui-inline">
             <label class="layui-form-label">用户名</label>
             <div class="layui-input-inline">
                 <input name="name" value="{$Think.get.name|default=''}" placeholder="用户名" class="layui-input">