We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c9970 commit ee3c1d4Copy full SHA for ee3c1d4
wwwroot/Application/Admin/Controller/ModelController.class.php
@@ -76,15 +76,21 @@ public function edit(){
76
$fields[$key]['is_show'] = 0;
77
}
78
79
+
80
// 获取模型排序字段
81
$field_sort = json_decode($data['field_sort'], true);
82
if(!empty($field_sort)){
83
foreach($field_sort as $group => $ids){
- foreach($ids as $key){
84
- $fields[$key]['group'] = $group;
+ foreach($ids as $key => $value){
85
+ $fields[$value]['group'] = $group;
86
+ $fields[$value]['sort'] = $key;
87
88
89
90
91
+ // 模型字段列表排序
92
+ $fields = list_sort_by($fields,"sort");
93
94
$this->assign('fields', $fields);
95
$this->assign('info', $data);
96
$this->meta_title = '编辑模型';
0 commit comments