Commit 7da36b04 by guanzhenshan

解决新账号无法获取菜单的问题

parent a1a67c5a
...@@ -7,29 +7,29 @@ namespace Bailun.DC.DailyPayAndIncoming ...@@ -7,29 +7,29 @@ namespace Bailun.DC.DailyPayAndIncoming
{ {
class Program class Program
{ {
static async Task Main(string[] args) //static async Task Main(string[] args)
{
Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Services>();
});
await builder.RunConsoleAsync();
}
//static void Main(string[] args)
//{ //{
// var _services = new Services(); // Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// var start = DateTime.Parse("2020-02-19");
// while (start < DateTime.Now)
// { // {
// Console.WriteLine(start); // services.AddHostedService<Services>();
// _services.Init(start, start.AddDays(1)); // });
// _services.SaveMoneyFlowCount(start, start.AddDays(1));
// start = start.AddDays(1); // await builder.RunConsoleAsync();
// }
//} //}
static void Main(string[] args)
{
var _services = new Services();
var start = DateTime.Parse("2020-02-19");
while (start < DateTime.Now)
{
Console.WriteLine(start);
_services.Init(start, start.AddDays(1));
_services.SaveMoneyFlowCount(start, start.AddDays(1));
start = start.AddDays(1);
}
}
} }
} }
...@@ -22,7 +22,7 @@ namespace Bailun.DC.HappenAmount ...@@ -22,7 +22,7 @@ namespace Bailun.DC.HappenAmount
//static void Main(string[] args) //static void Main(string[] args)
//{ //{
// var start = DateTime.Parse("2020-02-14"); // var start = DateTime.Parse("2020-02-15");
// while (start.AddDays(1) < DateTime.Now) // while (start.AddDays(1) < DateTime.Now)
// { // {
// new Services().Init(start, start.AddDays(1)); // new Services().Init(start, start.AddDays(1));
...@@ -30,7 +30,7 @@ namespace Bailun.DC.HappenAmount ...@@ -30,7 +30,7 @@ namespace Bailun.DC.HappenAmount
// start = start.AddDays(1); // start = start.AddDays(1);
// } // }
// //new Bailun.DC.Services.FinanceReportServices().UpdateLogisticsWaitPay(start, 0, "admin", null); // new Bailun.DC.Services.FinanceReportServices().UpdateLogisticsWaitPay(start, 0, "admin", null);
//} //}
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="row" style="min-height:600px;"> <div class="row" style="min-height:600px;">
<div class="col-sm-4"> <div class="col-sm-3">
<div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;"> <div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;">
<div style="margin-left:10px;padding-top:15px;padding-bottom:20px;"> <div style="margin-left:10px;padding-top:15px;padding-bottom:20px;">
<h3>角色<span style="font-size:13px;color:#aaa;">(请选择角色)</span></h3> <h3>角色<span style="font-size:13px;color:#aaa;">(请选择角色)</span></h3>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-sm-4" style="padding-left:0px;"> <div class="col-sm-3" style="padding-left:0px;">
<div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;"> <div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;">
<div style="margin-left:10px;padding-top:15px;padding-bottom:20px;"> <div style="margin-left:10px;padding-top:15px;padding-bottom:20px;">
<h3 style="margin-top:20px;">归属角色的用户</h3> <h3 style="margin-top:20px;">归属角色的用户</h3>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-sm-4" style="padding-left:0px;"> <div class="col-sm-3" style="padding-left:0px;">
<div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;"> <div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;">
<div style="margin-left:10px;padding-top:15px;padding-bottom:20px;"> <div style="margin-left:10px;padding-top:15px;padding-bottom:20px;">
<h3 style="margin-top:20px;">已授权菜单<span style="font-size:13px;color:#aaa;">(已勾选的)</span></h3> <h3 style="margin-top:20px;">已授权菜单<span style="font-size:13px;color:#aaa;">(已勾选的)</span></h3>
...@@ -56,7 +56,26 @@ ...@@ -56,7 +56,26 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="col-sm-3" style="padding-left:0px;">
<div style="background:#fff;-moz-box-shadow:3px 3px 8px #bbb; -webkit-box-shadow:3px 3px 3px #bbb; box-shadow:3px 3px 8px #bbb;">
<div style="margin-left:10px;padding-top:15px;padding-bottom:20px;">
<h3 style="margin-top:20px;">已授权导出权限<span style="font-size:13px;color:#aaa;">(已勾选的)</span></h3>
<div id="menu_contain">
<input id="chk_export_all" name="chk_export_all" type="checkbox" onclick="Chk_Export_All()" /><label for="chk_export_all" onclick="Chk_Export_All()">全选</label>
<div id="ztree_export" class="ztree" style="max-height: 800px;overflow: auto;">
<div style="border-bottom:solid 1px #eee;height:30px;line-height:30px;">
<input type="checkbox" />
<label>订单明细</label>
</div>
<div style="border-bottom:solid 1px #eee;height:30px;line-height:30px;">
<input type="checkbox" />
<label>订单明细</label>
</div>
</div>
</div>
</div>
</div>
</div> </div>
</div> </div>
<div class="row" style="margin-bottom:20px;"> <div class="row" style="margin-bottom:20px;">
......
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden"> <body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<script type="text/javascript"> <script type="text/javascript">
//login_localhost(); login_localhost();
login(); //login();
window.location = "@Url.Content("~/Home/Main")"; window.location = "@Url.Content("~/Home/Main")";
</script> </script>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment