wupengfei 2 years ago
parent
commit
7a9cc07cd5

+ 3 - 3
.idea/workspace.xml

@@ -4,8 +4,8 @@
     <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/controller/ArticleReport.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/ArticleReport.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/article_report/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/article_report/form.html" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/nutrition/view/datum_report/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/datum_report/form.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/nutrition/controller/VideoReport.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/controller/VideoReport.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/nutrition/view/video_report/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/nutrition/view/video_report/form.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -201,7 +201,7 @@
       <workItem from="1670201125142" duration="9015000" />
       <workItem from="1670287594399" duration="11535000" />
       <workItem from="1670461023846" duration="27678000" />
-      <workItem from="1670547445908" duration="5616000" />
+      <workItem from="1670547445908" duration="5697000" />
     </task>
     <servers />
   </component>

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

@@ -72,6 +72,7 @@ class ArticleReport extends Controller
         $this->title = '回复';
         $this->_form($this->table,'form');
     }
+
     protected function _form_filter(&$data)
     {
         if($this->request->action() == 'edit' && $this->request->isGet())

+ 7 - 1
application/nutrition/controller/VideoReport.php

@@ -72,5 +72,11 @@ class VideoReport 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\VideoIntro::where('id',$data['report_id'])->value('title');
+        }
+    }
 }

+ 8 - 1
application/nutrition/view/video_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>