wesmiler 3 months ago
parent
commit
0bdb28a588
2 changed files with 17 additions and 1 deletions
  1. 16 0
      app/Models/MeetingModel.php
  2. 1 1
      app/Services/Common/MeetingService.php

+ 16 - 0
app/Models/MeetingModel.php

@@ -70,6 +70,22 @@ class MeetingModel extends BaseModel
     }
 
     /**
+     * @return array
+     */
+    public function getSupervisorIdsAttribute($value)
+    {
+        return $value? array_filter(explode(',', $value)):[];
+    }
+
+    /**
+     * @return array
+     */
+    public function setSupervisorIdsAttribute($value)
+    {
+        return $value? implode(',', $value).',' : '';
+    }
+
+    /**
      * 推荐组织人
      */
     public function member()

+ 1 - 1
app/Services/Common/MeetingService.php

@@ -135,7 +135,7 @@ class MeetingService extends BaseService
         $data['city_id'] = isset($areas[1])?$areas[1]:0;
         // 县区
         $data['district_id'] = isset($areas[2])?$areas[2]:0;
-        
+
         // 设置日志
         ActionLogModel::setRecord(session('userId'), ['type' => 1, 'title' => '编辑会议信息', 'content' => json_encode($data, 256), 'module' => 'admin']);
         ActionLogModel::record();