wupengfei 2 tahun lalu
induk
melakukan
e9cfbc1ec4

+ 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/operate/view/forum_report/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/forum_report/form.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/controller/PressReport.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/PressReport.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/view/press_report/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/press_report/form.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -199,7 +200,7 @@
       <workItem from="1670201125142" duration="9015000" />
       <workItem from="1670287594399" duration="11535000" />
       <workItem from="1670461023846" duration="27678000" />
-      <workItem from="1670547445908" duration="5023000" />
+      <workItem from="1670547445908" duration="5120000" />
     </task>
     <servers />
   </component>

+ 7 - 0
application/operate/controller/PressReport.php

@@ -73,5 +73,12 @@ class PressReport extends Controller
         $this->_form($this->table,'form');
     }
 
+    protected function _form_filter(&$data)
+    {
+        if($this->request->action() == 'edit' && $this->request->isGet())
+        {
+            $data['title'] = \app\common\model\Press::where('id',$data['report_id'])->value('title');
+        }
+    }
 
 }

+ 8 - 1
application/operate/view/press_report/form.html

@@ -3,9 +3,16 @@
     <div class="layui-card-body">
 
         <div class="layui-row margin-bottom-15">
+            <label class="layui-col-xs2 think-form-label">举报标题:</label>
+            <label class="layui-col-xs10">
+                <input value="{$vo.title}" class="layui-input" />
+            </label>
+        </div>
+
+        <div class="layui-row margin-bottom-15">
             <label class="layui-col-xs2 think-form-label">回复内容:</label>
             <label class="layui-col-xs10">
-                <textarea name="reply" rows="10" cols="100">{$vo.reply|default=''}</textarea>
+                <textarea name="reply" rows="10" cols="102">{$vo.reply|default=''}</textarea>
             </label>
         </div>