|
@@ -87,7 +87,7 @@ class FormService implements FormServiceInterface
|
|
|
'length' => 255,
|
|
|
'sort' => 1000,
|
|
|
'is_check' => 1,
|
|
|
- 'admin_display' => 1,
|
|
|
+ 'admin_display' => 0,
|
|
|
'home_display' => 0,
|
|
|
'disable_del' => 1,
|
|
|
],
|
|
@@ -326,7 +326,7 @@ class FormService implements FormServiceInterface
|
|
|
{
|
|
|
try {
|
|
|
//查询global库的表GlobalTableField模型中table_id为$data['id']的数据条件为admin_display=1的数据
|
|
|
- $globalTableFields = GlobalTableField::where(['table_id'=>$data['id'],'admin_display'=>1])->get();
|
|
|
+ $globalTableFields = GlobalTableField::where(['table_id'=>$data['id'],'admin_display'=>1])->orderBy('sort','asc')->get();
|
|
|
$globalTableFields->transform(function ($field) {
|
|
|
$optionValue = [];
|
|
|
$optionStr = trim((string) $field->option);
|