Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/dotnetcore/WTM into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
YourName authored and YourName committed Nov 9, 2020
2 parents 78e7bcc + a4d030a commit e6674fe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions demo/WalkingTec.Mvvm.Demo/ViewModels/CityVMs/CityVM.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
Expand All @@ -12,7 +12,7 @@ namespace WalkingTec.Mvvm.Demo.ViewModels.CityVMs
{
public partial class CityVM : BaseCRUDVM<City>
{
public List<ComboSelectListItem> AllParents { get; set; }
public List<TreeSelectListItem> AllParents { get; set; }

public CityVM()
{
Expand All @@ -21,7 +21,7 @@ public CityVM()

protected override void InitVM()
{
AllParents = DC.Set<City>().GetSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.Name);
AllParents = DC.Set<City>().GetTreeSelectListItems(LoginUserInfo?.DataPrivileges, null, y => y.Name);
}

public override void DoAdd()
Expand Down
4 changes: 2 additions & 2 deletions demo/WalkingTec.Mvvm.Demo/Views/City/Create.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<wt:form vm="@Model">
<wt:row items-per-row="ItemsPerRowEnum.Two">
<wt:combobox field="Entity.ParentId" items="AllParents"/>
<wt:colorpicker field="Entity.Name" predefined-colors=""/>
<wt:tree field="Entity.ParentId" items="AllParents"/>
<wt:textbox field="Entity.Name" />
</wt:row>
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
Expand Down
2 changes: 1 addition & 1 deletion demo/WalkingTec.Mvvm.VueDemo/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"Key": "default",
// "Value": "Server=47.93.23.242;Database=wtm_demoapi;port=3306;uid=lengyx;password=q299qSmwP9wYsw2deEp4%36UtDXKtvFJ"
"Value": "Server=(localdb)\\mssqllocaldb;Database=wtmdemo;Trusted_Connection=True;MultipleActiveResultSets=true"
"Value": "Server=(localdb)\\mssqllocaldb;Database=wtmdemo43;Trusted_Connection=True;MultipleActiveResultSets=true"
}
],
"DBType": "sqlserver", //使用的数据库,可选mysql,sqlserver,pgsql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public string UnsetPages()
public async Task<ActionResult> RefreshMenu()
{
Cache.Delete("FFMenus");
var userids = DC.Set<FrameworkUserBase>().Select(x => x.ID.ToString().ToLower()).ToArray();
await LoginUserInfo.RemoveUserCache(userids);
//var userids = DC.Set<FrameworkUserBase>().Select(x => x.ID.ToString().ToLower()).ToArray();
//await LoginUserInfo.RemoveUserCache(userids);
return Ok(Mvc.Admin.Program._localizer["OprationSuccess"]);
}
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public ActionResult UnsetPages()
public async Task<ActionResult> RefreshMenu()
{
Cache.Delete("FFMenus");
var userids = DC.Set<FrameworkUserBase>().Select(x => x.ID.ToString().ToLower()).ToArray();
await LoginUserInfo.RemoveUserCache(userids);
//var userids = DC.Set<FrameworkUserBase>().Select(x => x.ID.ToString().ToLower()).ToArray();
//await LoginUserInfo.RemoveUserCache(userids);
return FFResult().Alert(Program._localizer["OprationSuccess"]);
}
#endregion
Expand Down

0 comments on commit e6674fe

Please sign in to comment.