【程序目录】后台页面设计列表数据优化

This commit is contained in:
evoxwht 2022-05-05 12:05:50 +08:00
parent 8b61254242
commit f840df99ba

View File

@ -55,7 +55,7 @@ class DiyServices extends BaseServices
{
[$page, $limit] = $this->getPageValue();
$where['is_del'] = 0;
$list = $this->dao->getDiyList($where, $page, $limit);
$list = $this->dao->getDiyList($where, $page, $limit, ['id', 'name', 'type', 'add_time', 'update_time', 'is_diy', 'status']);
foreach ($list as &$item) {
$item['type_name'] = $item['type'] == 0 ? '可视化' : 'DIY';
}