|
@@ -206,10 +206,72 @@ public class AbstractAdmDictBaseServiceImpl<T> implements IAdmDictBaseService<T>
|
|
}else{
|
|
}else{
|
|
admVO.setPath(AdmDictConstant.INFOS_EX+admVO.getCode());
|
|
admVO.setPath(AdmDictConstant.INFOS_EX+admVO.getCode());
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //信息点是否可见
|
|
|
|
+ if(admVO.getVisible() == null){
|
|
|
|
+ if("localName".equals(admVO.getCode()) || "localId".equals(admVO.getCode())){
|
|
|
|
+ admVO.setVisible(true);
|
|
|
|
+ }else{
|
|
|
|
+ admVO.setVisible(false);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //信息点是否可编辑
|
|
|
|
+ if(admVO.getEditable() == null){
|
|
|
|
+ List<String> unEditableList = checkoutDefInfoUnEditable();
|
|
|
|
+ if(unEditableList.contains(admVO.getCode())){
|
|
|
|
+ admVO.setEditable(false);
|
|
|
|
+ }else {
|
|
|
|
+ admVO.setEditable(true);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ //是否禁止操作
|
|
|
|
+ if(admVO.getUnDisabled() == null){
|
|
|
|
+ List<String> unDisableList = checkoutDefInfoUnDisable();
|
|
|
|
+ if(unDisableList.contains(admVO.getCode())){
|
|
|
|
+ admVO.setEditable(false);
|
|
|
|
+ }else {
|
|
|
|
+ admVO.setEditable(true);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * 校验信息点是否可编辑
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public List<String> checkoutDefInfoUnEditable(){
|
|
|
|
+ List<String> list = new ArrayList<>();
|
|
|
|
+ list.add("id");
|
|
|
|
+ list.add("name");
|
|
|
|
+ list.add("qRCodePic");
|
|
|
|
+ list.add("defaultQRCode");
|
|
|
|
+ list.add("bimId");
|
|
|
|
+ list.add("bimFamilyName");
|
|
|
|
+ list.add("bimFamilySymbol");
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 校验信息点是否禁止使用
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public List<String> checkoutDefInfoUnDisable(){
|
|
|
|
+ List<String> list = new ArrayList<>();
|
|
|
|
+ list.add("id");
|
|
|
|
+ list.add("name");
|
|
|
|
+ list.add("localId");
|
|
|
|
+ list.add("localName");
|
|
|
|
+ list.add("qRCodePic");
|
|
|
|
+ list.add("defaultQRCode");
|
|
|
|
+ list.add("bimId");
|
|
|
|
+ list.add("bimFamilyName");
|
|
|
|
+ list.add("bimFamilySymbol");
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
* 字典数据格式与ADM兼容
|
|
* 字典数据格式与ADM兼容
|
|
* @param array
|
|
* @param array
|
|
*/
|
|
*/
|