1、解决看板组件的bug

2、模型表单字段分组bug
This commit is contained in:
2020-04-18 11:37:28 +08:00
parent 8ab0ff15bb
commit abc1fac1b9
5 changed files with 7 additions and 6 deletions

View File

@@ -149,7 +149,7 @@ class Attribute extends \think\Model {
$map[] = ['is_show', 'IN', [1, 3]];
}
$row = self::where($map)->order('sort asc, id desc')
$row = self::where($map)->order('group_id asc, sort asc, id desc')
->select()
->append(['option'])
->toArray();

View File

@@ -78,7 +78,7 @@ class Model extends \think\Model{
foreach ($attribute_sort as $key => $value) {
$attr[$key] = Attribute::where('id', 'IN', $value)->column('*', 'id');
foreach ($value as $k => $v) {
$attr[$key][$v]['group'] = $key;
$attr[$key][$v]['group_id'] = $key;
$attr[$key][$v]['sort'] = $k;
}
}