Browse Source

重建动态

lizhen_gitee 1 year ago
parent
commit
f372f88f0a

+ 1 - 1
application/admin/lang/zh-cn/topicdongtai.php

@@ -23,7 +23,7 @@ return [
     'Is_public 1'   => '公开',
     'Is_public 2'   => '私密',
     'Toptime'       => '置顶顺序',
-    'Auditstatus'   => '状态',
+    'Auditstatus'   => '审核状态',
     'Auditstatus 0' => '待审核',
     'Auditstatus 1' => '审核通过',
     'Auditstatus 2' => '审核驳回',

+ 2 - 2
application/admin/model/Topicdongtai.php

@@ -89,12 +89,12 @@ class Topicdongtai extends Model
 
     protected function setToptimeAttr($value)
     {
-        return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value);
+        return $value === '' ? 0 : ($value && !is_numeric($value) ? strtotime($value) : $value);
     }
 
     protected function setAudittimeAttr($value)
     {
-        return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value);
+        return $value === '' ? 0 : ($value && !is_numeric($value) ? strtotime($value) : $value);
     }
 
 

+ 3 - 3
application/admin/view/topicdongtai/edit.html

@@ -3,7 +3,7 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Topic_ids')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-topic_ids" data-rule="required" data-source="topichub/index" data-multiple="true" class="form-control selectpage" name="row[topic_ids]" type="text" value="{$row.topic_ids|htmlentities}">
+            <input id="c-topic_ids" data-source="topichub/index" data-multiple="true" class="form-control selectpage" name="row[topic_ids]" type="text" value="{$row.topic_ids|htmlentities}">
         </div>
     </div>
     <!--<div class="form-group">
@@ -128,13 +128,13 @@
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-audittime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audittime]" type="text" value="{:$row.audittime?datetime($row.audittime):''}">
+            <input id="c-audittime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audittime]" type="text" value="{:$row.audittime?datetime($row.audittime):''}">
         </div>
     </div>
     <div class="form-group">
         <label class="control-label col-xs-12 col-sm-2">{:__('Auditremark')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-auditremark" data-rule="required" class="form-control" name="row[auditremark]" type="text" value="{$row.auditremark|htmlentities}">
+            <input id="c-auditremark" class="form-control" name="row[auditremark]" type="text" value="{$row.auditremark|htmlentities}">
         </div>
     </div>
     <div class="form-group layer-footer">