91270 / meiam.system Goto Github PK
View Code? Open in Web Editor NEW.NET 8 / .NET 5 WebAPI + Vue 2.0 + RBAC 企业级前后端分离权限框架
Home Page: http://www.592.la
License: Apache License 2.0
.NET 8 / .NET 5 WebAPI + Vue 2.0 + RBAC 企业级前后端分离权限框架
Home Page: http://www.592.la
License: Apache License 2.0
请问一下地址输入
http://127.0.0.1:18889/dashboard
对应的应该是下面的视图把
这Layout怎么就被加载出来了呢, main.js中没看到引入了layout啊
像MVC,有个_Layout 模板页,然后中间Render Body, 其他视图都可以被渲染在模板页中
留个联系方式吧?想请教一下技术方面的
大佬,项目跑起来了,后台接口时间特别长,获取验证码用了一分钟
游览器上看,验证码的数据瞬间出来,但是还一直转圈,要等一分钟左右才停,F12查看 content download 时间都在这里消耗了
作者有准备把后台方法改成异步吗?
日志内容:TaskSchedulingThreadPool configured with max concurrency of 10 and TaskScheduler ThreadPoolTaskScheduler.
在StartpUp调用Task服务实例化的时候,用到了 Meiam.System.Tasks.TaskSchedulerServer 类
/// <summary>
/// 开启计划任务
/// </summary>
/// <returns></returns>
private Task<IScheduler> GetTaskSchedulerAsync()
{
if (_scheduler != null)
{
return _scheduler;
}
NameValueCollection collection = new NameValueCollection
{
{
"quartz.serializer.type",
"binary"
}
};
StdSchedulerFactory factory = new StdSchedulerFactory(collection);
return _scheduler = factory.GetScheduler(); //这边创建的时候会进行debug日志写入
}
quartz的源码也存在该报错的具体内容,quartz源码
/// <summary>
/// Initializes the thread pool for use
/// </summary>
/// <remarks>
/// Note that after invoking this method, neither
/// </remarks>
public virtual void Initialize()
{
// Checking for null allows users to specify their own scheduler prior to initialization.
// If this is undesirable, the scheduler should be set here unconditionally.
if (Scheduler == null)
{
Scheduler = GetDefaultScheduler();
}
// Initialize the concurrency semaphore with the proper initial count
concurrencySemaphore = new SemaphoreSlim(MaxConcurrency);
isInitialized = true;
log.Debug($"TaskSchedulingThreadPool configured with max concurrency of {MaxConcurrency} and TaskScheduler {Scheduler.GetType().Name}.");
}
请教大佬如何解决这个日志报错
@91270 原作者您好,
修改完appsettings.json Nlog.Config的配置,有跳出Swagger文件的畫面,
但依然沒辦法正常運行(嘗試發出Web API請求就會報錯),想請你幫忙看看,謝謝。
截圖在這兒: https://imgur.com/a/MAO4yzr
能写一些说明吗,谢谢
全局日志里面有记录Cookie, 但这个项目的运行逻辑,会清理过期session数据,所以无法追踪历史数据。
亲爱的博主,你这个项目无法运行啊,报错的bug都是乱码,咋回事呀。急急急
这个是只做了api权限,没有做前端界面权限吗
public void Remove<V>(string key) { RedisServer.Cache.Del(key.Remove(0, 6)); }
为什么需要Remove(0,6)? 是不是写错了
demo.meiam.top 用户名密码错误了 登陆不了
出现跨域问题怎么解决?This
配置的sqlite数据库
然后一直提示:
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: Sys_TasksQz'.
这个数据库表是怎么建立 的呀?什么时间建立 ?从哪里建立 ,我看说明文档没写。。
如题
Q1.swagger参数字段描述调不出来
Q2.swagger那边参数都是显示No parameters
我在Startup中添加了
services.AddScoped<IMapper, ServiceMapper>();后导致项目无法启动是什么原因
字典定义中,预置了"SYSTEM_MENU_SYSTEM",那后续该如何使用?
大致看了一下,好像只有"菜单管理"功能可以根据对应系统进行区分设置。
其他涉及到权限管控的地方,似乎并没有做区分。
我尝试在预设的"微信小程序"系统下添加了菜单,但是在权限定义以及其他权限管理的地方并不能看到相应菜单信息。
另外,该Admin设计中,新增页面的浏览权限,必须要认为在"权限定义"中维护才行吗?这样似乎有些繁琐。
predicate = predicate.AndIF(!userSession.Administrator, m => m.Administrator == false);、
是不是有代码没签进去
2>------ 已启动生成: 项目: Meiam.System.Hostd, 配置: Debug Any CPU ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(1662,5): error MSB4062: 未能从程序集 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll 加载任务“NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask”。程序集“NuGet.Build.Tasks, Version=5.8.1.7021, Culture=neutral, PublicKeyToken=31bf3856ad364e35”中的类型“NuGet.Build.Tasks.RestoreTask”的方法“get_BuildEngine”没有实现。 请确认 声明正确,该程序集及其所有依赖项都可用,并且该任务包含实现 Microsoft.Build.Framework.ITask 的公共类。
代码很工整,没有冗余,架构思路也容易理解,很适合我这样的小白新手。期待以后保持更新,没有联系方式,特意开个issue鼓励一下。
当控制器名称过长时,NLog会无法将日志插入数据库,建议调整Sys_Logs
中的Logger
字段长度
web api 和 前端都已经发布到IIS里面,可是两个站点都打不开,直接报404错误
web api 发布到本机IIS下的9014端口,
http://127.0.0.1:9014/
然后访问显示 404,
我看swagger的配置都是单独给接口token的,要怎么配置全局的呢?
头像上传的本地路径是
"AvatarUpload": {
"AvatarDirectory": "D://wwwroot/avatars",
"AvatarUrl": "/"
},
本地能保存成功,但是系统加载不出来
RT
前置环境:本地配置,直接下载安装导入mysql数据库并修改appsettings.json相关参数配置如demo改为false。
运行9999登录后各菜单及功能均可用。
1、依照company新增一个菜单功能。操作如下
(1)mysql数据库新增加一个表定义gateway--- 参照base_company 正常,
(2)参照company在Meiam.System.Interfaces项目下各自相同的目录内分别新增IBaseGatewayService.cs,BaseGatewayService.cs、Base_Gateway.cs、GatewayDto.cs,
(3)在DbContext.cs增加一行public DbSet<Base_Gateway> BaseGatewayDb => new DbSet<Base_Gateway>(Db);
(4)在Meiam.System.Hostd增加Controllers\Basic\GatewayController.cs
以上编译正常无告警
2、Meiam.System.Web项目内
(1)src\views\basic下仿照company\index.js新增加一个gateway\index.js。替换company相同参数,列名按实际gateway表字段定义修改。
(2)src\api\basic下新增gateway.js,内容复制自company.js并替换内部company为gateway。
npm run dev 正常无告警,
3、登录系统
(1)在菜单管理中仿照“公司定义”新增“网关定义”菜单
(2) 权限定义增加“网关定义”共4项PRIV_GATEWAY_VIEW、PRIV_GATEWAY_CREATE、PRIV_GATEWAY_UPDATE、PRIV_GATEWAY_DELETE
(3)在”角色权限“选择系统管理员角度对新增加的”网关定义“项内4项”增加“、”删除”、”修”改、”浏览”选中并保存
4、重新启动Hostd项目,结束重新运行npm run dev
新增加的”网关定义“菜单已可见,但点击无反应,其它菜单功能正常。
点击 ”网关定义“从WEBAPI端看似乎web端没有发请求到webAPI端(Hostd),不知哪里出了问题?
如题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.