Cdsss.php 557 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class Cdsss extends Model
  5. {
  6. protected $table = "jm_cdss";
  7. public function getCategoryAttr($value)
  8. {
  9. $options = [ 1 => '全身症状' , 2 => '皮肤黏膜' , 3 => '面部五官' , 4 => '神经系统' , 5 => '呼吸系统' , 6 => '运动系统'];
  10. return $options[$value];
  11. }
  12. public function getOptionsAttr($options)
  13. {
  14. return explode(',' , $options);
  15. }
  16. public function getOptionSelectAttr($value)
  17. {
  18. return json_decode($value , true);
  19. }
  20. }