|
|
|
@ -32,9 +32,10 @@ public class GroupServiceImpl extends Service implements GroupService {
|
|
|
|
|
Map<String, Object> apiDatas = new HashMap<>();
|
|
|
|
|
List<SearchConditionItem> selectItems = new ArrayList<>();
|
|
|
|
|
List<SearchConditionGroup> addGroups = new ArrayList<>();
|
|
|
|
|
SearchConditionItem companyNameItem = OrganizationFormItemUtil.inputItem(user, 2, 16, 1, 50, "总部名称", "companyname");
|
|
|
|
|
SearchConditionItem companyDescItem = OrganizationFormItemUtil.inputItem(user, 2, 16, 1, 50, "总部全称", "companydesc");
|
|
|
|
|
SearchConditionItem companyWebItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 1, 60, "公司网站", "companyweb");
|
|
|
|
|
SearchConditionItem companyNameItem = OrganizationFormItemUtil.inputItem(user, 2, 16, 3, 50, "总部名称", "companyname");
|
|
|
|
|
companyNameItem.setRules("required|string");
|
|
|
|
|
SearchConditionItem companyDescItem = OrganizationFormItemUtil.inputItem(user, 2, 16, 2, 50, "总部全称", "companydesc");
|
|
|
|
|
SearchConditionItem companyWebItem = OrganizationFormItemUtil.textareaItem(user, 2, 16, true, 2, 60, "公司网站", "companyweb");
|
|
|
|
|
|
|
|
|
|
// 赋值
|
|
|
|
|
String id = Util.null2String(params.get("id"));
|
|
|
|
@ -57,11 +58,10 @@ public class GroupServiceImpl extends Service implements GroupService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 设置编辑属性
|
|
|
|
|
if (!StringUtil.isEmpty(Util.null2String(params.get("viewattr")))) {
|
|
|
|
|
int viewAttr = Integer.parseInt(params.get("viewattr").toString());
|
|
|
|
|
companyNameItem.setViewAttr(viewAttr);
|
|
|
|
|
companyDescItem.setViewAttr(viewAttr);
|
|
|
|
|
companyWebItem.setViewAttr(viewAttr);
|
|
|
|
|
if ("1".equals(Util.null2String(params.get("viewattr")))) {
|
|
|
|
|
companyNameItem.setViewAttr(1);
|
|
|
|
|
companyDescItem.setViewAttr(1);
|
|
|
|
|
companyWebItem.setViewAttr(1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
selectItems.add(companyNameItem);
|
|
|
|
|