将最新的代码合并到当前开发分支中

This commit is contained in:
2022-12-14 16:40:11 +08:00
23 changed files with 145 additions and 221 deletions

View File

@@ -15,19 +15,23 @@ use think\facade\App;
class Version extends Command
{
const VERSION = 'v2.0.21';
const VERSION = 'v2.0.22';
const LAYUI_VERSION = '2.7.6';
const COMMENT = [
'优化多处细节,继续提升开发体验',
'升级为最新的echart扩展',
'后台使用增加基类全局状态',
'修改默认头像为中性头像',
'优化上传增加svg扩展',
'优化上传,增加设置扩展名分组的用法',
'优化上传,增加检测上传代码注入的用法',
'增加配置系统默认密码,并修改了表结构',
'升级ThinkPHP6.1',
'升级第三方flysystem组件',
'调整表格重载特性',
'完善CURD模板',
'修改table.operat.field特性',
'清理技术债务',
'增加权限菜单的权限标志',
'修复导出方法文件名获取方式',
'优化时间范围和数字范围的placeholder',
'优化版本设置有效性',
'优化表格导出按照字段字数设置宽度',
'默认允许icon上传',
];
protected function configure()

View File

@@ -5,7 +5,6 @@
namespace app\common\controller;
use app\admin\model\SystemAdmin;
use app\admin\service\ConfigService;
use app\BaseController;
use app\common\constants\AdminConstant;
use app\common\service\AuthService;
@@ -331,7 +330,7 @@ class AdminController extends BaseController
'thisControllerJsPath' => "{$thisControllerJsPath}",
'autoloadJs' => $autoloadJs,
'isSuperAdmin' => $isSuperAdmin,
'version' => env('app_debug') ? time() : ConfigService::getVersion(),
'version' => env('app_debug') ? time() : sysconfig('site', 'site_version')
];
View::assign($data);

View File

@@ -57,7 +57,15 @@ class MenuService
{
$treeList = [];
foreach ($menuList as &$v) {
$check = empty($v['href']) ? true : $authServer->checkNode($v['href']);
$check = false;
if (!empty($v['auth_node'])) {
$check = $authServer->checkNode($v['auth_node']);
} else if (!empty($v['href'])) {
$check = $authServer->checkNode($v['href']);
} else {
$check = true;
}
!empty($v['href']) && $v['href'] = __url($v['href']);
if ($pid == $v['pid'] && $check) {
$node = $v;

View File

@@ -17,6 +17,7 @@ class ExportTools
foreach ($fields as $field_key => $field_name) {
$col_key = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex($write_col);
$sheet->setCellValue($col_key . $write_line, $field_name);
$sheet->getColumnDimension($col_key)->setWidth(mb_strlen($field_name) * 3);
$write_col++;
}