1、修改了应用程序设计列表只能添加一个按钮列。
修改文件:\src\RoadFlow.WebApi\Areas\RoadFlowApi\Controllers\ProgramDesignController.cs
//判断列表只能有一个按钮列 if (programFieldModel.ShowType == 100 && programField.GetAll(programGuid).Exists(p => p.ShowType == 100 && p.Id != programFieldModel.Id)) { return RoadFlowCommon.Tools.GetReturnJsonString(false, localizer["OnlyOneButtonColumn"].Value); }
2、修改了表格控件如果设置的高度没有数据时也会保持高度。
修改文件:\src\roadflow-ui\src\roadui-components\table.vue
样式height改为max-height:
3、修改了表单设计组织架构控件选择范围可以多选。
修改文件:\src\roadflow-ui\src\roadui-pages\form\plugins\organize.vue
修改文件:\src\roadflow-ui\src\roadui-pages\form\form-design.js
var selectRangeArray = selectrange.split(','); for (var i = 0; i < selectRangeArray.length; i++) { switch (selectRangeArray[i]) { case '0'://发起者部门 root += ',{<InitiatorDeptId>}'; break; case '1'://处理者部门 root += ',{<UserDeptId>}'; break; case '2'://发起者单位 root += ',{<InitiatorUnitId>}'; break; case '3'://处理者单位 root += ',{<UserUnitId>}'; break; } }
4、增加了表单设计组织架构控件可设置标题显示类型。
修改文件:\src\roadflow-ui-lang\src\roadui-pages\form\plugins\organize.vue
<span style="margin-left:10px;">显示名称:<roadui-combox v-model="setJson.showFullName" :options="[{value:'0',title:'当前名称'},{value:'1',title:'完整名称'},{value:'2',title:'完整名称不含根'}]"></roadui-combox></span>
修改文件:\src\roadflow-ui\public\roadui-assets\ckeditor\plugins\rf_organize\plugin.js
修改文件:\src\roadflow-ui\src\roadui-pages\form\form-design.js
修改文件:\src\roadflow-ui\src\roadui-components\org.vue
//如果要显示完整标题 if (this.showfullname != '0') { if (this.roadui.length(val) > 0) { this.ajax.post('/Organize/GetText?showfullname=' + this.showfullname, this.qs.stringify({ value: val })).then((data) => { this.$refs.roadui_organizetree.setSelect({ value: val, title: data.length > 0 ? data[0].title : '' }); }).catch(() => { }); } } else { this.$refs.roadui_organizetree.setSelect({ value: val, title: node.title }); }
修改文件:\src\RoadFlow.WebApi\Areas\RoadFlowApi\Controllers\OrganizeController.cs
修改文件:\src\RoadFlow.Business\Organize.cs
/// <summary> /// 根据ID字符串得到名称 /// </summary> /// <param name="idString">逗号分开的人员ID,机构ID,工作组ID等</param> /// <param name="splitChar">多个名称之前的分隔字符</param> /// <param name="showFullName">标题显示名称类型 0:常规 1:显示包含根名称 2:显示不包含根名称</param> /// <returns></returns> public string GetNames(string idString, string splitChar = "、", int showFullName = 0) { if (idString.IsNullOrWhiteSpace()) { return ""; } User user = new User(); OrganizeUser organizeUser = new OrganizeUser(systemCode); StringBuilder stringBuilder = new StringBuilder(); WorkGroup workGroup = new WorkGroup(); foreach (string id in idString.Split(',')) { if (id.IsGuid(out Guid orgId)) { string name = showFullName == 0 ? GetName(orgId) : GetParentsName(orgId, showFullName == 1, true); stringBuilder.Append(name); stringBuilder.Append(splitChar); } else if (id.StartsWith(PREFIX_USER)) { Guid userId = id.RemoveUserPrefix().ToGuid(); string name = user.GetName(userId); if(showFullName > 0) { name = user.GetOrganizeMainShowHtml(userId, showFullName == 1) + " \\ " + name; } stringBuilder.Append(name); stringBuilder.Append(splitChar); } else if (id.StartsWith(PREFIX_RELATION)) { var organizeUserModel = organizeUser.Get(id.RemoveUserRelationPrefix().ToGuid()); if (null != organizeUserModel) { string name = user.GetName(organizeUserModel.UserId); if (showFullName > 0) { name = GetParentsName(organizeUserModel.OrganizeId, showFullName == 1, true) + " \\ " + name; } stringBuilder.Append(name); stringBuilder.Append(splitChar); } } else if (id.StartsWith(PREFIX_WORKGROUP)) { stringBuilder.Append(workGroup.GetName(id.RemoveWorkGroupPrefix().ToGuid())); stringBuilder.Append(splitChar); } } return stringBuilder.ToString().TrimEnd(splitChar.ToCharArray()); }
5、修改了菜单打开外部地址时再点菜单无法切换tab的问题。
修改文件:\src\roadflow-ui\src\roadui-components\tab.vue
if (setCurrent) { this.tabCurrent(this.tabs[i]); }
6、修改了当人员量大时更新权限缓存慢的问题。
修改文件:\src\RoadFlow.Business\MenuUser.cs
Organize organize = new Organize(); var menuUserGroups = menuUsers.GroupBy(p => p.Organizes); foreach (var menuUserGroup in menuUserGroups) { var users = organize.GetAllUsersId(menuUserGroup.Key); foreach (var menuUser in menuUserGroup) { menuUser.Users = users; } }
联系QQ:493501010电话:136 0832 5512(微信同号)邮箱:road@roadflow.net
Copyright 2014 - 2024 重庆天知软件技术有限公司 版权所有
|