mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
调整展示排序
This commit is contained in:
parent
cf964e55f1
commit
584f3c2fca
@ -247,11 +247,22 @@ class SystemCrud extends AuthController
|
||||
$item['name'] = $item['path'];
|
||||
try {
|
||||
$item['content'] = file_get_contents($path, LOCK_EX);
|
||||
$data[] = $item;
|
||||
$data[$key] = $item;
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//调整排序
|
||||
$makeData = [];
|
||||
$names = ['model', 'dao', 'service', 'controller', 'validate', 'router', 'api', 'pages'];
|
||||
foreach ($names as $name) {
|
||||
if (isset($data[$name])) {
|
||||
$makeData[] = $data[$name];
|
||||
}
|
||||
}
|
||||
$data = $makeData;
|
||||
|
||||
$info = $info->toArray();
|
||||
//记录没有修改之前的数据
|
||||
foreach ((array)$info['field']['tableField'] as $key => $item) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user