融合代码 提交本地
This commit is contained in:
@@ -32,7 +32,7 @@ public class ServiceDictInfo extends BaseEntity<ServiceDictInfo>{
|
|||||||
private SysUser serviceDictEditor; //editor_id 修改人员 int Y 取自sys_user.id
|
private SysUser serviceDictEditor; //editor_id 修改人员 int Y 取自sys_user.id
|
||||||
private Date editTime; //edit_time 修改时间 date Y
|
private Date editTime; //edit_time 修改时间 date Y
|
||||||
private Integer levelNo; //层级
|
private Integer levelNo; //层级
|
||||||
private List<ServiceDictInfo> ChildrenList = new ArrayList<ServiceDictInfo>();//子列表
|
private List<ServiceDictInfo> childrenList = new ArrayList<ServiceDictInfo>();//子列表
|
||||||
|
|
||||||
private Date beginDate; // 开始日期
|
private Date beginDate; // 开始日期
|
||||||
private Date endDate; // 结束日期
|
private Date endDate; // 结束日期
|
||||||
@@ -123,11 +123,11 @@ public class ServiceDictInfo extends BaseEntity<ServiceDictInfo>{
|
|||||||
public void setEditTime(Date editTime) {
|
public void setEditTime(Date editTime) {
|
||||||
this.editTime = editTime;
|
this.editTime = editTime;
|
||||||
}
|
}
|
||||||
public List<ServiceDictInfo> getChildrenList() {
|
public List<ServiceDictInfo> getChildrenList() {
|
||||||
return ChildrenList;
|
return childrenList;
|
||||||
}
|
}
|
||||||
public void setChildrenList(List<ServiceDictInfo> childrenList) {
|
public void setChildrenList(List<ServiceDictInfo> childrenList) {
|
||||||
ChildrenList = childrenList;
|
this.childrenList = childrenList;
|
||||||
}
|
}
|
||||||
public Date getBeginDate() {
|
public Date getBeginDate() {
|
||||||
return beginDate;
|
return beginDate;
|
||||||
|
|||||||
@@ -77,23 +77,53 @@ public class ConfigDictUtils {
|
|||||||
public static String getItemTypeByNo(String dictKey, List intArr){
|
public static String getItemTypeByNo(String dictKey, List intArr){
|
||||||
String result = "";
|
String result = "";
|
||||||
String value = DictUtils.getDictLabel(dictKey,intArr.get(0).toString());
|
String value = DictUtils.getDictLabel(dictKey,intArr.get(0).toString());
|
||||||
if(value.trim().equals("分类")){
|
if(value.trim().equals("classification")){
|
||||||
result = "分类";
|
result = "classification_manage";
|
||||||
}
|
}
|
||||||
if(value.trim().equals("性质")){
|
if(value.trim().equals("attribute")){
|
||||||
result = "性质";
|
result = "attribute_manage";
|
||||||
}
|
}
|
||||||
if(value.trim().equals("标签")){
|
if(value.trim().equals("label")){
|
||||||
result = "标签";
|
result = "label_manage";
|
||||||
}
|
}
|
||||||
if(value.trim().equals("地域")){
|
if(value.trim().equals("area")){
|
||||||
result = "地域";
|
result = "area_manage";
|
||||||
}
|
}
|
||||||
if(value.trim().equals("运营商")){
|
if(value.trim().equals("isp")){
|
||||||
result = "运营商";
|
result = "isp_manage";
|
||||||
}
|
}
|
||||||
if(value.trim().equals("特征作用域")){
|
if(value.trim().equals("scope")){
|
||||||
result = "特征作用域";
|
result = "feature_scope_manage";
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据数据类型编码取出权限标识码
|
||||||
|
* @param dictKey
|
||||||
|
* @param intArr
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static String getPermissionByNo(String dictKey, List intArr){
|
||||||
|
String result = "";
|
||||||
|
String value = DictUtils.getDictLabel(dictKey,intArr.get(0).toString());
|
||||||
|
if(value.trim().equals("classification")){
|
||||||
|
result = "classification";
|
||||||
|
}
|
||||||
|
if(value.trim().equals("attribute")){
|
||||||
|
result = "attribute";
|
||||||
|
}
|
||||||
|
if(value.trim().equals("label")){
|
||||||
|
result = "label";
|
||||||
|
}
|
||||||
|
if(value.trim().equals("area")){
|
||||||
|
result = "area";
|
||||||
|
}
|
||||||
|
if(value.trim().equals("isp")){
|
||||||
|
result = "isp";
|
||||||
|
}
|
||||||
|
if(value.trim().equals("scope")){
|
||||||
|
result = "scope";
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import java.util.Map;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.shiro.authz.annotation.Logical;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.apache.zookeeper.ZooDefs.Ids;
|
import org.apache.zookeeper.ZooDefs.Ids;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
@@ -67,11 +68,10 @@ public class ServiceDictInfoController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("sys:dict:view")
|
@RequiresPermissions(value={"basics:classification:view","basics:attribute:view","basics:label:view"},logical=Logical.OR)
|
||||||
@RequestMapping(value = {"list", ""})
|
@RequestMapping(value = {"list", ""})
|
||||||
public String list(String itType, ServiceDictInfo serviceDictInfo,HttpServletRequest request, HttpServletResponse response, Model model,Integer selectedType,boolean isFilterAction) {
|
public String list(String itType, ServiceDictInfo serviceDictInfo,HttpServletRequest request, HttpServletResponse response, Model model) {
|
||||||
//处理数据
|
//处理数据
|
||||||
serviceDictInfo.setIsFilterAction(isFilterAction);
|
|
||||||
String[] strArr = itType.split("-");
|
String[] strArr = itType.split("-");
|
||||||
Integer[] intArr = new Integer[strArr.length];
|
Integer[] intArr = new Integer[strArr.length];
|
||||||
for(int i=0;i<strArr.length;i++){
|
for(int i=0;i<strArr.length;i++){
|
||||||
@@ -104,7 +104,7 @@ public class ServiceDictInfoController extends BaseController {
|
|||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
|
|
||||||
// 删除顶层数据、取出id 优化处理
|
// 删除顶层数据、取出id
|
||||||
List<Integer> intList = Lists.newArrayList();
|
List<Integer> intList = Lists.newArrayList();
|
||||||
|
|
||||||
for(ServiceDictInfo tempSe : page.getList()) {
|
for(ServiceDictInfo tempSe : page.getList()) {
|
||||||
@@ -140,6 +140,7 @@ public class ServiceDictInfoController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@RequiresPermissions(value={"basics:classification:edit","basics:attribute:edit","basics:label:edit"},logical=Logical.OR)
|
||||||
@RequestMapping(value={"form"})
|
@RequestMapping(value={"form"})
|
||||||
public String form(ServiceDictInfo serviceDictInfo, Model model,String doAction,String itType, String mulitId) {
|
public String form(ServiceDictInfo serviceDictInfo, Model model,String doAction,String itType, String mulitId) {
|
||||||
if(doAction!=null&&doAction.equals("0")){
|
if(doAction!=null&&doAction.equals("0")){
|
||||||
@@ -156,7 +157,7 @@ public class ServiceDictInfoController extends BaseController {
|
|||||||
if (serviceDictInfo.getParent() == null || serviceDictInfo.getParent().getServiceDictId() == null||serviceDictInfo.getParent().getServiceDictId() == 0) {
|
if (serviceDictInfo.getParent() == null || serviceDictInfo.getParent().getServiceDictId() == null||serviceDictInfo.getParent().getServiceDictId() == 0) {
|
||||||
ServiceDictInfo parent = new ServiceDictInfo();
|
ServiceDictInfo parent = new ServiceDictInfo();
|
||||||
parent.setServiceDictId(0);
|
parent.setServiceDictId(0);
|
||||||
parent.setItemValue("根节点");
|
parent.setItemValue("root_node");
|
||||||
serviceDictInfo.setParent(parent);
|
serviceDictInfo.setParent(parent);
|
||||||
}
|
}
|
||||||
String[] strArr = itType.split("-");
|
String[] strArr = itType.split("-");
|
||||||
@@ -176,16 +177,16 @@ public class ServiceDictInfoController extends BaseController {
|
|||||||
* @param redirectAttributes
|
* @param redirectAttributes
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("sys:dict:edit")
|
@RequiresPermissions(value={"basics:classification:edit","basics:attribute:edit","basics:label:edit"},logical=Logical.OR)
|
||||||
@RequestMapping(value = "saveOrUpdate")
|
@RequestMapping(value = "saveOrUpdate")
|
||||||
public String saveOrUpdate(ServiceDictInfo serviceDictInfo,Model model, RedirectAttributes redirectAttributes,String itType) {
|
public String saveOrUpdate(ServiceDictInfo serviceDictInfo,Model model, RedirectAttributes redirectAttributes,String itType) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
serviceDictInfoService.saveOrUpdate(serviceDictInfo);
|
serviceDictInfoService.saveOrUpdate(serviceDictInfo);
|
||||||
addMessage(redirectAttributes, "保存成功");
|
addMessage(redirectAttributes, "save_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
addMessage(redirectAttributes, "保存失败!");
|
addMessage(redirectAttributes, "save_failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
return "redirect:" + adminPath + "/basics/serviceDictInfo/list?itType="+itType;
|
return "redirect:" + adminPath + "/basics/serviceDictInfo/list?itType="+itType;
|
||||||
@@ -200,14 +201,15 @@ public class ServiceDictInfoController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@RequiresPermissions(value={"basics:classification:edit","basics:attribute:edit","basics:label:edit"},logical=Logical.OR)
|
||||||
@RequestMapping(value={"delete"})
|
@RequestMapping(value={"delete"})
|
||||||
public String delete(ServiceDictInfo serviceDictInfo, RedirectAttributes redirectAttributes, String itType, String mulitId) {
|
public String delete(ServiceDictInfo serviceDictInfo, RedirectAttributes redirectAttributes, String itType, String mulitId) {
|
||||||
try {
|
try {
|
||||||
serviceDictInfoService.deleteDict(mulitId);
|
serviceDictInfoService.deleteDict(mulitId);
|
||||||
addMessage(redirectAttributes, "删除成功");
|
addMessage(redirectAttributes, "delete_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
addMessage(redirectAttributes, "删除失败!");
|
addMessage(redirectAttributes, "delete_failed");
|
||||||
}
|
}
|
||||||
return "redirect:" + adminPath + "/basics/serviceDictInfo/list?itType="+itType;
|
return "redirect:" + adminPath + "/basics/serviceDictInfo/list?itType="+itType;
|
||||||
}
|
}
|
||||||
@@ -228,7 +230,7 @@ public class ServiceDictInfoController extends BaseController {
|
|||||||
Map<String, Object> map2 = Maps.newHashMap();
|
Map<String, Object> map2 = Maps.newHashMap();
|
||||||
map2.put("id", 0);
|
map2.put("id", 0);
|
||||||
map2.put("pId", 0);
|
map2.put("pId", 0);
|
||||||
map2.put("name","根节点");
|
map2.put("name","root_node");
|
||||||
//map2.put("placeholder","0");
|
//map2.put("placeholder","0");
|
||||||
mapList.add(map2);
|
mapList.add(map2);
|
||||||
//找出该类型所有的非叶子配置
|
//找出该类型所有的非叶子配置
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import java.util.Map;
|
|||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.shiro.authz.annotation.Logical;
|
||||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
@@ -66,11 +67,10 @@ public class SysDictInfoController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("sys:dict:view")
|
@RequiresPermissions(value={"basics:area:view","basics:isp:view","basics:scope:view"},logical=Logical.OR)
|
||||||
@RequestMapping(value = {"list", ""})
|
@RequestMapping(value = {"list", ""})
|
||||||
public String list(String itType, SysDictInfo sysDictInfo,HttpServletRequest request, HttpServletResponse response, Model model, Integer selectedType,boolean isFilterAction) {
|
public String list(String itType, SysDictInfo sysDictInfo,HttpServletRequest request, HttpServletResponse response, Model model) {
|
||||||
//处理数据
|
//处理数据
|
||||||
sysDictInfo.setIsFilterAction(isFilterAction);
|
|
||||||
String[] strArr = itType.split("-");
|
String[] strArr = itType.split("-");
|
||||||
Integer[] intArr = new Integer[strArr.length];
|
Integer[] intArr = new Integer[strArr.length];
|
||||||
for(int i=0;i<strArr.length;i++){
|
for(int i=0;i<strArr.length;i++){
|
||||||
@@ -91,12 +91,7 @@ public class SysDictInfoController extends BaseController {
|
|||||||
}
|
}
|
||||||
model.addAttribute("searchType", searchType);
|
model.addAttribute("searchType", searchType);
|
||||||
model.addAttribute("searchContent", searchContent);
|
model.addAttribute("searchContent", searchContent);
|
||||||
if(sysDictInfo.getItemType()!=null){
|
|
||||||
model.addAttribute("selectedType", sysDictInfo.getItemType());
|
|
||||||
}else{
|
|
||||||
model.addAttribute("selectedType", selectedType);
|
|
||||||
sysDictInfo.setItemType(selectedType);
|
|
||||||
}
|
|
||||||
Page<SysDictInfo> pageCondition = new Page<SysDictInfo>(request, response);
|
Page<SysDictInfo> pageCondition = new Page<SysDictInfo>(request, response);
|
||||||
|
|
||||||
//查询符合条件总数
|
//查询符合条件总数
|
||||||
@@ -111,7 +106,7 @@ public class SysDictInfoController extends BaseController {
|
|||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
|
|
||||||
//处理数据,取出主键优化处理
|
//处理数据,取出主键
|
||||||
List<Integer> intList = Lists.newArrayList();
|
List<Integer> intList = Lists.newArrayList();
|
||||||
for(SysDictInfo se:page.getList()){
|
for(SysDictInfo se:page.getList()){
|
||||||
if(se!=null){
|
if(se!=null){
|
||||||
@@ -143,6 +138,7 @@ public class SysDictInfoController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@RequiresPermissions(value={"basics:area:edit","basics:isp:edit","basics:scope:edit"},logical=Logical.OR)
|
||||||
@RequestMapping(value={"form"})
|
@RequestMapping(value={"form"})
|
||||||
public String form(SysDictInfo sysDictInfo, Model model, String doAction, String itType, String mulitId) {
|
public String form(SysDictInfo sysDictInfo, Model model, String doAction, String itType, String mulitId) {
|
||||||
if(doAction!=null&&doAction.equals("0")){
|
if(doAction!=null&&doAction.equals("0")){
|
||||||
@@ -160,7 +156,7 @@ public class SysDictInfoController extends BaseController {
|
|||||||
if (sysDictInfo.getParent() == null || sysDictInfo.getParent().getSysDictId() == null||sysDictInfo.getParent().getSysDictId() == 0) {
|
if (sysDictInfo.getParent() == null || sysDictInfo.getParent().getSysDictId() == null||sysDictInfo.getParent().getSysDictId() == 0) {
|
||||||
SysDictInfo parent = new SysDictInfo();
|
SysDictInfo parent = new SysDictInfo();
|
||||||
parent.setSysDictId(0);
|
parent.setSysDictId(0);
|
||||||
parent.setItemValue("根节点");
|
parent.setItemValue("root_node");
|
||||||
sysDictInfo.setParent(parent);
|
sysDictInfo.setParent(parent);
|
||||||
}
|
}
|
||||||
String[] strArr = itType.split("-");
|
String[] strArr = itType.split("-");
|
||||||
@@ -183,7 +179,7 @@ public class SysDictInfoController extends BaseController {
|
|||||||
* @param redirectAttributes
|
* @param redirectAttributes
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("sys:dict:edit")
|
@RequiresPermissions(value={"basics:area:edit","basics:isp:edit","basics:scope:edit"},logical=Logical.OR)
|
||||||
@RequestMapping(value = "saveOrUpdate")
|
@RequestMapping(value = "saveOrUpdate")
|
||||||
public String saveOrUpdate(SysDictInfo sysDictInfo,Model model, RedirectAttributes redirectAttributes, String itType) {
|
public String saveOrUpdate(SysDictInfo sysDictInfo,Model model, RedirectAttributes redirectAttributes, String itType) {
|
||||||
|
|
||||||
@@ -204,6 +200,7 @@ public class SysDictInfoController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@RequiresPermissions(value={"basics:area:edit","basics:isp:edit","basics:scope:edit"},logical=Logical.OR)
|
||||||
@RequestMapping(value={"delete"})
|
@RequestMapping(value={"delete"})
|
||||||
public String delete(SysDictInfo sysDictInfo, RedirectAttributes redirectAttributes, String itType, String mulitId) {
|
public String delete(SysDictInfo sysDictInfo, RedirectAttributes redirectAttributes, String itType, String mulitId) {
|
||||||
try {
|
try {
|
||||||
@@ -232,7 +229,7 @@ public class SysDictInfoController extends BaseController {
|
|||||||
Map<String, Object> map2 = Maps.newHashMap();
|
Map<String, Object> map2 = Maps.newHashMap();
|
||||||
map2.put("id", 0);
|
map2.put("id", 0);
|
||||||
map2.put("pId", 0);
|
map2.put("pId", 0);
|
||||||
map2.put("name","根节点");
|
map2.put("name","root_node");
|
||||||
//map2.put("placeholder","0");
|
//map2.put("placeholder","0");
|
||||||
mapList.add(map2);
|
mapList.add(map2);
|
||||||
//找出该类型所有的非叶子配置
|
//找出该类型所有的非叶子配置
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("sys:dict:view")
|
@RequiresPermissions("specific:service:view")
|
||||||
@RequestMapping(value = "list")
|
@RequestMapping(value = "list")
|
||||||
public String list(SpecificServiceCfg specificServiceCfg, HttpServletRequest request, HttpServletResponse response,
|
public String list(SpecificServiceCfg specificServiceCfg, HttpServletRequest request, HttpServletResponse response,
|
||||||
Model model) {
|
Model model) {
|
||||||
@@ -83,7 +83,7 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
page.getList().get(i).setShowSequence("" + (i + 1 + ((page.getPageNo() - 1) * page.getPageSize())));
|
page.getList().get(i).setShowSequence("" + (i + 1 + ((page.getPageNo() - 1) * page.getPageSize())));
|
||||||
}
|
}
|
||||||
model.addAttribute("page", page);
|
model.addAttribute("page", page);
|
||||||
// 删除顶层数据、取出id 优化处理
|
// 删除顶层数据、取出id
|
||||||
List<Integer> intList = Lists.newArrayList();
|
List<Integer> intList = Lists.newArrayList();
|
||||||
for (SpecificServiceCfg tempSS : page.getList()) {
|
for (SpecificServiceCfg tempSS : page.getList()) {
|
||||||
if (tempSS != null) {
|
if (tempSS != null) {
|
||||||
@@ -118,6 +118,7 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
* @param mulitId
|
* @param mulitId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@RequiresPermissions("specific:service:edit")
|
||||||
@RequestMapping(value = { "form" })
|
@RequestMapping(value = { "form" })
|
||||||
public String form(SpecificServiceCfg specificServiceCfg, Model model, String doAction, String mulitId) {
|
public String form(SpecificServiceCfg specificServiceCfg, Model model, String doAction, String mulitId) {
|
||||||
|
|
||||||
@@ -150,7 +151,7 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
* @param redirectAttributes
|
* @param redirectAttributes
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("sys:dict:edit")
|
@RequiresPermissions("specific:service:edit")
|
||||||
@RequestMapping(value="saveOrUpdate")
|
@RequestMapping(value="saveOrUpdate")
|
||||||
public String saveOrUpdate(SpecificServiceCfg specificServiceCfg, Model model,
|
public String saveOrUpdate(SpecificServiceCfg specificServiceCfg, Model model,
|
||||||
RedirectAttributes redirectAttributes,Integer oldId) {
|
RedirectAttributes redirectAttributes,Integer oldId) {
|
||||||
@@ -171,6 +172,7 @@ public class SpecificServiceCfgController extends BaseController {
|
|||||||
* @param mulitId
|
* @param mulitId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@RequiresPermissions("specific:service:edit")
|
||||||
@RequestMapping(value="delete")
|
@RequestMapping(value="delete")
|
||||||
public String delete(SpecificServiceCfg specificServiceCfg, RedirectAttributes redirectAttributes, String mulitId){
|
public String delete(SpecificServiceCfg specificServiceCfg, RedirectAttributes redirectAttributes, String mulitId){
|
||||||
try{
|
try{
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class SpecificServiceHostCfgController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("sys:dict:view")
|
@RequiresPermissions("specific:serviceIp:view")
|
||||||
@RequestMapping(value = "list")
|
@RequestMapping(value = "list")
|
||||||
public String list(SpecificServiceHostCfg specificServiceHostCfg, HttpServletRequest request, HttpServletResponse response,
|
public String list(SpecificServiceHostCfg specificServiceHostCfg, HttpServletRequest request, HttpServletResponse response,
|
||||||
Model model) {
|
Model model) {
|
||||||
@@ -67,7 +67,7 @@ public class SpecificServiceHostCfgController extends BaseController {
|
|||||||
* @param model
|
* @param model
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("sys:dict:view")
|
@RequiresPermissions("specific:serviceIp:edit")
|
||||||
@RequestMapping(value = "form")
|
@RequestMapping(value = "form")
|
||||||
public String form(SpecificServiceHostCfg specificServiceHostCfg, HttpServletRequest request, HttpServletResponse response, Model model) {
|
public String form(SpecificServiceHostCfg specificServiceHostCfg, HttpServletRequest request, HttpServletResponse response, Model model) {
|
||||||
//查询协议id供下拉选择
|
//查询协议id供下拉选择
|
||||||
@@ -84,6 +84,7 @@ public class SpecificServiceHostCfgController extends BaseController {
|
|||||||
* @param mulitId
|
* @param mulitId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@RequiresPermissions("specific:serviceIp:edit")
|
||||||
@RequestMapping(value = "saveOrUpdate")
|
@RequestMapping(value = "saveOrUpdate")
|
||||||
public String saveOrUpdate(SpecificServiceHostCfg specificServiceHostCfg,Model model,RedirectAttributes redirectAttributes){
|
public String saveOrUpdate(SpecificServiceHostCfg specificServiceHostCfg,Model model,RedirectAttributes redirectAttributes){
|
||||||
try {
|
try {
|
||||||
@@ -102,6 +103,7 @@ public class SpecificServiceHostCfgController extends BaseController {
|
|||||||
* @param mulitId
|
* @param mulitId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@RequiresPermissions("specific:serviceIp:edit")
|
||||||
@RequestMapping(value="delete")
|
@RequestMapping(value="delete")
|
||||||
public String delete(SpecificServiceHostCfg specificServiceHostCfg, RedirectAttributes redirectAttributes, String mulitId){
|
public String delete(SpecificServiceHostCfg specificServiceHostCfg, RedirectAttributes redirectAttributes, String mulitId){
|
||||||
try{
|
try{
|
||||||
|
|||||||
@@ -29,6 +29,11 @@
|
|||||||
<result property="loginId" column="login_id"/>
|
<result property="loginId" column="login_id"/>
|
||||||
<result property="name" column="name"/>
|
<result property="name" column="name"/>
|
||||||
</association>
|
</association>
|
||||||
|
<!-- 子集合 -->
|
||||||
|
<collection property="childrenList" javaType="com.nis.domain.basics.ServiceDictInfo">
|
||||||
|
<id column="service_dict_id" property="serviceDictId" jdbcType="INTEGER" />
|
||||||
|
<result column="item_type" property="itemType" jdbcType="INTEGER" />
|
||||||
|
</collection>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<resultMap id="dictResultSimpleMap" type="com.nis.domain.basics.ServiceDictInfo" >
|
<resultMap id="dictResultSimpleMap" type="com.nis.domain.basics.ServiceDictInfo" >
|
||||||
<id column="service_dict_id" property="serviceDictId" jdbcType="INTEGER" />
|
<id column="service_dict_id" property="serviceDictId" jdbcType="INTEGER" />
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ domain_control=domain control
|
|||||||
dns_control=dns control
|
dns_control=dns control
|
||||||
basic_configuration=basic configuration
|
basic_configuration=basic configuration
|
||||||
letter_from=letter from
|
letter_from=letter from
|
||||||
classification=classification
|
|
||||||
classification_manage=classification manage
|
classification_manage=classification manage
|
||||||
attribute_manage=attribute manage
|
attribute_manage=attribute manage
|
||||||
area_manage=area manage
|
area_manage=area manage
|
||||||
@@ -96,6 +95,47 @@ sysService_manage=system service manage
|
|||||||
service_manage=service type manage
|
service_manage=service type manage
|
||||||
system_service_manage=system service type manage
|
system_service_manage=system service type manage
|
||||||
specific_service_cfg=specific service cfg
|
specific_service_cfg=specific service cfg
|
||||||
|
features_area=features area
|
||||||
|
attribute_manage=attribute manage
|
||||||
|
isp_manage=isp manage
|
||||||
|
feature_scope_manage=feature scope manage
|
||||||
|
plaintext_manage=plaintext manage
|
||||||
|
ip_multiple_control=ip multiple control
|
||||||
|
ip_port_control=ip port control
|
||||||
|
website_multiple_control=website multiple control
|
||||||
|
mail_multiple_control=mail multiple control
|
||||||
|
request_header_control=request header control
|
||||||
|
plaintext_monitor=plaintext monitor
|
||||||
|
ip_address_monitor=ip address monitor
|
||||||
|
ip_port_monitor=ip port monitor
|
||||||
|
domain_monitor=domain monitor
|
||||||
|
dns_monitor=dns monitor
|
||||||
|
dns_response_monitor=dns response monitor
|
||||||
|
website_monite=website monite
|
||||||
|
host_monitor=host monitor
|
||||||
|
url_monitor=url monitor
|
||||||
|
website_keyword_monitor=website keyword monitor
|
||||||
|
mail_monitor=mail monitor
|
||||||
|
recipient_monitor=recipient monitor
|
||||||
|
sender_monitor=sender monitor
|
||||||
|
subject_monitor=subject monitor
|
||||||
|
mail_keyword_monitor=mail keyword monitor
|
||||||
|
mail_attachment_name_monitor=mail attachment name monitor
|
||||||
|
specific_service_cfg=specific service cfg
|
||||||
|
mail_attachment_content_monitor=mail attachment content monitor
|
||||||
|
file_transfer_monitor=file transfer monitor
|
||||||
|
ftp_address_monitor=ftp address monitor
|
||||||
|
encryption_monitor=encryption monitor
|
||||||
|
tunnel_protocol_monitor=tunnel protocol monitor
|
||||||
|
pptp_ip_monitor=pptp ip monitor
|
||||||
|
l2tp_ip_monitor=l2tp ip monitor
|
||||||
|
ssh_monitor=ssh monitor
|
||||||
|
ssl_monitor=ssl monitor
|
||||||
|
ssl_feature_monitor=ssl feature monitor
|
||||||
|
ssl_sni_monitor=ssl sni monitor
|
||||||
|
ssl_address_monitor=ssl address monitor
|
||||||
|
specific_service_host_cfg=specific service host cfg
|
||||||
|
|
||||||
#============menu end======================
|
#============menu end======================
|
||||||
|
|
||||||
#============yewu begin======================
|
#============yewu begin======================
|
||||||
@@ -105,13 +145,19 @@ item_code=itemcode
|
|||||||
item_value=itemvalue
|
item_value=itemvalue
|
||||||
desc=description
|
desc=description
|
||||||
parent_id=parentid
|
parent_id=parentid
|
||||||
is_leaf=whether subnode
|
is_leaf=whether leaf node
|
||||||
is_valid=whether valid
|
is_valid=whether valid
|
||||||
create_time=createtime
|
create_time=createtime
|
||||||
edit_time=edittime
|
edit_time=edittime
|
||||||
superior_config=superior configuration
|
superior_config=superior configuration
|
||||||
config_content=configuration content
|
config_content=configuration content
|
||||||
|
root_node=root node
|
||||||
|
leafChange=this configuration includes subnode,cannot be leaf node
|
||||||
|
typeChild=this data type will be not same with subnode
|
||||||
|
typeSame=please select the consistent upper and lower data types
|
||||||
|
isLevelNoSure=more than the maximum level
|
||||||
|
is_repeat=field content is repeat
|
||||||
|
submitting=submitting
|
||||||
#============yewu end======================
|
#============yewu end======================
|
||||||
|
|
||||||
#============laihan begin======================
|
#============laihan begin======================
|
||||||
@@ -179,6 +225,20 @@ maxlength_128=The maxlength is 128\uff01
|
|||||||
maxlength_256=The maxlength is 256\uff01
|
maxlength_256=The maxlength is 256\uff01
|
||||||
maxlength_512=The maxlength is 512\uff01
|
maxlength_512=The maxlength is 512\uff01
|
||||||
maxlength_4000=The maxlength is 4000\uff01
|
maxlength_4000=The maxlength is 4000\uff01
|
||||||
|
ok=ok
|
||||||
|
clear=clear
|
||||||
|
close=close
|
||||||
|
reselect=please re-select
|
||||||
|
no_root=Root node can not be selected
|
||||||
|
no_parent=Parent node can not be selected
|
||||||
|
no_public_model=The public model can not be selected
|
||||||
|
no_outside_column=You can not select the other column models except the current column
|
||||||
|
send_org=please select the sending organization
|
||||||
|
department=department
|
||||||
|
sendind_org=sending organization
|
||||||
|
no_node=Node can not be selected
|
||||||
|
select_icon=select icon
|
||||||
|
nothing=nothing
|
||||||
#==========message end=====================
|
#==========message end=====================
|
||||||
|
|
||||||
#==========yewuliexingguanli begin=====================
|
#==========yewuliexingguanli begin=====================
|
||||||
@@ -227,8 +287,12 @@ key_word=key word
|
|||||||
block_type=block type
|
block_type=block type
|
||||||
letter=letter
|
letter=letter
|
||||||
whether_area_block=whether area block
|
whether_area_block=whether area block
|
||||||
|
classification=classification
|
||||||
label=label
|
label=label
|
||||||
attribute=attribute
|
attribute=attribute
|
||||||
|
area=area
|
||||||
|
isp=isp
|
||||||
|
scope=scope
|
||||||
valid_identifier=valid identifier
|
valid_identifier=valid identifier
|
||||||
is_audit=whether audit
|
is_audit=whether audit
|
||||||
creator=creator
|
creator=creator
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ domain_control=domain control
|
|||||||
dns_control=dns control
|
dns_control=dns control
|
||||||
basic_configuration=basic configuration
|
basic_configuration=basic configuration
|
||||||
letter_from=letter from
|
letter_from=letter from
|
||||||
classification=classification
|
|
||||||
classification_manage=classification manage
|
classification_manage=classification manage
|
||||||
attribute_manage=attribute manage
|
attribute_manage=attribute manage
|
||||||
area_manage=area manage
|
area_manage=area manage
|
||||||
@@ -96,6 +95,47 @@ sysService_manage=system service manage
|
|||||||
service_manage=service type manage
|
service_manage=service type manage
|
||||||
system_service_manage=system service type manage
|
system_service_manage=system service type manage
|
||||||
specific_service_cfg=specific service cfg
|
specific_service_cfg=specific service cfg
|
||||||
|
features_area=features area
|
||||||
|
attribute_manage=attribute manage
|
||||||
|
isp_manage=isp manage
|
||||||
|
feature_scope_manage=feature scope manage
|
||||||
|
plaintext_manage=plaintext manage
|
||||||
|
ip_multiple_control=ip multiple control
|
||||||
|
ip_port_control=ip port control
|
||||||
|
website_multiple_control=website multiple control
|
||||||
|
mail_multiple_control=mail multiple control
|
||||||
|
request_header_control=request header control
|
||||||
|
plaintext_monitor=plaintext monitor
|
||||||
|
ip_address_monitor=ip address monitor
|
||||||
|
ip_port_monitor=ip port monitor
|
||||||
|
domain_monitor=domain monitor
|
||||||
|
dns_monitor=dns monitor
|
||||||
|
dns_response_monitor=dns response monitor
|
||||||
|
website_monite=website monite
|
||||||
|
host_monitor=host monitor
|
||||||
|
url_monitor=url monitor
|
||||||
|
website_keyword_monitor=website keyword monitor
|
||||||
|
mail_monitor=mail monitor
|
||||||
|
recipient_monitor=recipient monitor
|
||||||
|
sender_monitor=sender monitor
|
||||||
|
subject_monitor=subject monitor
|
||||||
|
mail_keyword_monitor=mail keyword monitor
|
||||||
|
mail_attachment_name_monitor=mail attachment name monitor
|
||||||
|
specific_service_cfg=specific service cfg
|
||||||
|
mail_attachment_content_monitor=mail attachment content monitor
|
||||||
|
file_transfer_monitor=file transfer monitor
|
||||||
|
ftp_address_monitor=ftp address monitor
|
||||||
|
encryption_monitor=encryption monitor
|
||||||
|
tunnel_protocol_monitor=tunnel protocol monitor
|
||||||
|
pptp_ip_monitor=pptp ip monitor
|
||||||
|
l2tp_ip_monitor=l2tp ip monitor
|
||||||
|
ssh_monitor=ssh monitor
|
||||||
|
ssl_monitor=ssl monitor
|
||||||
|
ssl_feature_monitor=ssl feature monitor
|
||||||
|
ssl_sni_monitor=ssl sni monitor
|
||||||
|
ssl_address_monitor=ssl address monitor
|
||||||
|
specific_service_host_cfg=specific service host cfg
|
||||||
|
|
||||||
#============menu end======================
|
#============menu end======================
|
||||||
|
|
||||||
#============yewu begin======================
|
#============yewu begin======================
|
||||||
@@ -105,13 +145,19 @@ item_code=itemcode
|
|||||||
item_value=itemvalue
|
item_value=itemvalue
|
||||||
desc=description
|
desc=description
|
||||||
parent_id=parentid
|
parent_id=parentid
|
||||||
is_leaf=whether subnode
|
is_leaf=whether leaf node
|
||||||
is_valid=whether valid
|
is_valid=whether valid
|
||||||
create_time=createtime
|
create_time=createtime
|
||||||
edit_time=edittime
|
edit_time=edittime
|
||||||
superior_config=superior configuration
|
superior_config=superior configuration
|
||||||
config_content=configuration content
|
config_content=configuration content
|
||||||
|
root_node=root node
|
||||||
|
leafChange=this configuration includes subnode,cannot be leaf node
|
||||||
|
typeChild=this data type will be not same with subnode
|
||||||
|
typeSame=please select the consistent upper and lower data types
|
||||||
|
isLevelNoSure=more than the maximum level
|
||||||
|
is_repeat=field content is repeat
|
||||||
|
submitting=submitting
|
||||||
#============yewu end======================
|
#============yewu end======================
|
||||||
|
|
||||||
#============laihan begin======================
|
#============laihan begin======================
|
||||||
@@ -227,8 +273,12 @@ key_word=key word
|
|||||||
block_type=block type
|
block_type=block type
|
||||||
letter=letter
|
letter=letter
|
||||||
whether_area_block=whether area block
|
whether_area_block=whether area block
|
||||||
|
classification=classification
|
||||||
label=label
|
label=label
|
||||||
attribute=attribute
|
attribute=attribute
|
||||||
|
area=area
|
||||||
|
isp=isp
|
||||||
|
scope=scope
|
||||||
valid_identifier=valid identifier
|
valid_identifier=valid identifier
|
||||||
is_audit=whether audit
|
is_audit=whether audit
|
||||||
creator=creator
|
creator=creator
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ domain_control=\u57df\u540d\u7ba1\u63a7
|
|||||||
dns_control=DNS\u7ba1\u63a7
|
dns_control=DNS\u7ba1\u63a7
|
||||||
basic_configuration=\u57fa\u672c\u914d\u7f6e
|
basic_configuration=\u57fa\u672c\u914d\u7f6e
|
||||||
letter_from=\u6765\u51fd\u5355\u4f4d
|
letter_from=\u6765\u51fd\u5355\u4f4d
|
||||||
classification=\u5206\u7c7b\u6027\u8d28
|
|
||||||
classification_manage=\u5206\u7c7b\u7ba1\u7406
|
classification_manage=\u5206\u7c7b\u7ba1\u7406
|
||||||
attribute_manage=\u6027\u8d28\u7ba1\u7406
|
attribute_manage=\u6027\u8d28\u7ba1\u7406
|
||||||
area_manage=\u5730\u57df\u7ba1\u7406
|
area_manage=\u5730\u57df\u7ba1\u7406
|
||||||
@@ -96,6 +95,37 @@ sysService_manage=\u7cfb\u7edf\u4e1a\u52a1\u7ba1\u7406
|
|||||||
service_manage=\u4e1a\u52a1\u7c7b\u578b\u7ba1\u7406
|
service_manage=\u4e1a\u52a1\u7c7b\u578b\u7ba1\u7406
|
||||||
system_service_manage=\u7cfb\u7edf\u4e1a\u52a1\u7c7b\u578b\u7ba1\u7406
|
system_service_manage=\u7cfb\u7edf\u4e1a\u52a1\u7c7b\u578b\u7ba1\u7406
|
||||||
specific_service_cfg=\u7279\u5b9a\u670d\u52a1\u7ba1\u7406
|
specific_service_cfg=\u7279\u5b9a\u670d\u52a1\u7ba1\u7406
|
||||||
|
request_header_control=\u8bf7\u6c42\u5934\u57df\u7ba1\u63a7
|
||||||
|
plaintext_monitor=\u660e\u6587\u5185\u5bb9\u76d1\u6d4b
|
||||||
|
ip_address_monitor=IP\u5730\u5740\u76d1\u6d4b
|
||||||
|
ip_port_monitor=IP+\u7aef\u53e3\u76d1\u6d4b
|
||||||
|
domain_monitor=\u57df\u540d\u76d1\u6d4b
|
||||||
|
dns_monitor=DNS\u76d1\u6d4b
|
||||||
|
dns_response_monitor=DNS\u5e94\u7b54\u76d1\u6d4b
|
||||||
|
website_monite=\u7f51\u7ad9\u76d1\u6d4b
|
||||||
|
host_monitor=HOST\u76d1\u6d4b
|
||||||
|
url_monitor=URL\u76d1\u6d4b
|
||||||
|
website_keyword_monitor=\u7f51\u9875\u5185\u5bb9\u5173\u952e\u5b57\u76d1\u6d4b
|
||||||
|
mail_monitor=\u90ae\u4ef6\u76d1\u6d4b
|
||||||
|
recipient_monitor=\u6536\u4ef6\u4eba\u76d1\u6d4b
|
||||||
|
sender_monitor=\u53d1\u4ef6\u4eba\u76d1\u6d4b
|
||||||
|
subject_monitor=\u4e3b\u9898\u76d1\u6d4b
|
||||||
|
mail_keyword_monitor=\u90ae\u4ef6\u5185\u5bb9\u5173\u952e\u5b57\u76d1\u6d4b
|
||||||
|
mail_attachment_name_monitor=\u90ae\u4ef6\u9644\u4ef6\u540d\u5173\u952e\u5b57\u76d1\u6d4b
|
||||||
|
mail_attachment_content_monitor=\u90ae\u4ef6\u9644\u4ef6\u5185\u5bb9\u5173\u952e\u5b57\u76d1\u6d4b
|
||||||
|
file_transfer_monitor=\u6587\u4ef6\u4f20\u8f93\u76d1\u6d4b
|
||||||
|
ftp_address_monitor=FTP\u5730\u5740\u76d1\u6d4b
|
||||||
|
encryption_monitor=\u52a0\u5bc6\u5185\u5bb9\u76d1\u6d4b
|
||||||
|
tunnel_protocol_monitor=\u96a7\u9053\u534f\u8bae\u76d1\u6d4b
|
||||||
|
pptp_ip_monitor=PPTP\u534f\u8bae\u76d1\u6d4b
|
||||||
|
l2tp_ip_monitor=L2TP\u534f\u8bae\u76d1\u6d4b
|
||||||
|
ssh_monitor=SSH\u76d1\u6d4b
|
||||||
|
ssl_monitor=SSL\u76d1\u6d4b
|
||||||
|
ssl_feature_monitor=SSL\u8bc1\u4e66\u7279\u5f81\u76d1\u6d4b
|
||||||
|
ssl_sni_monitor=SSL\uff08SNI\uff09\u76d1\u6d4b
|
||||||
|
ssl_address_monitor=SSL\u5730\u5740\u76d1\u6d4b
|
||||||
|
specific_service_host_cfg=\u7279\u5b9a\u670d\u52a1\u670d\u52a1\u5668IP\u7ba1\u7406
|
||||||
|
|
||||||
#==========menu end=====================
|
#==========menu end=====================
|
||||||
|
|
||||||
#==========yewu zidian begin=====================
|
#==========yewu zidian begin=====================
|
||||||
@@ -111,7 +141,13 @@ create_time=\u521b\u5efa\u65f6\u95f4
|
|||||||
edit_time=\u4fee\u6539\u65f6\u95f4
|
edit_time=\u4fee\u6539\u65f6\u95f4
|
||||||
superior_config=\u4e0a\u7ea7\u914d\u7f6e
|
superior_config=\u4e0a\u7ea7\u914d\u7f6e
|
||||||
config_content=\u914d\u7f6e\u5185\u5bb9
|
config_content=\u914d\u7f6e\u5185\u5bb9
|
||||||
|
root_node=\u6839\u8282\u70b9
|
||||||
|
leafChange=\u8be5\u914d\u7f6e\u5305\u542b\u4e0b\u7ea7\u914d\u7f6e\uff0c\u4e0d\u5f97\u6539\u4e3a\u53f6\u5b50\u8282\u70b9
|
||||||
|
typeChild=\u8be5\u914d\u7f6e\u5305\u542b\u4e0b\u7ea7\u914d\u7f6e\uff0c\u6570\u636e\u7c7b\u578b\u66f4\u6539\u540e\u4e0e\u5b50\u7c7b\u4e0d\u4e00\u81f4
|
||||||
|
typeSame=\u8bf7\u9009\u62e9\u4e00\u81f4\u7684\u4e0a\u4e0b\u7ea7\u914d\u7f6e\u6570\u636e\u7c7b\u578b
|
||||||
|
isLevelNoSure=\u9009\u62e9\u6b64\u914d\u7f6e\u4e0a\u4e0b\u5c42\u7ea7\u6570\u5c06\u8d85\u8fc7\u6700\u5927\u5c42\u7ea7
|
||||||
|
is_repeat=\u8be5\u914d\u7f6e\u5185\u5bb9\u5df2\u5b58\u5728\uff0c\u8bf7\u586b\u5199\u5176\u5b83\u5185\u5bb9
|
||||||
|
submitting=submitting
|
||||||
#==========yewu zidian end=====================
|
#==========yewu zidian end=====================
|
||||||
|
|
||||||
#==========laihan begin=====================
|
#==========laihan begin=====================
|
||||||
@@ -178,6 +214,20 @@ maxlength_128=\u8bf7\u8f93\u5165\u4e00\u4e2a\u957f\u5ea6\u6700\u591a\u662f 128\u
|
|||||||
maxlength_256=\u8bf7\u8f93\u5165\u4e00\u4e2a\u957f\u5ea6\u6700\u591a\u662f256\u7684\u5b57\u7b26\u4e32\uff01
|
maxlength_256=\u8bf7\u8f93\u5165\u4e00\u4e2a\u957f\u5ea6\u6700\u591a\u662f256\u7684\u5b57\u7b26\u4e32\uff01
|
||||||
maxlength_512=\u8bf7\u8f93\u5165\u4e00\u4e2a\u957f\u5ea6\u6700\u591a\u662f512\u7684\u5b57\u7b26\u4e32\uff01
|
maxlength_512=\u8bf7\u8f93\u5165\u4e00\u4e2a\u957f\u5ea6\u6700\u591a\u662f512\u7684\u5b57\u7b26\u4e32\uff01
|
||||||
maxlength_4000=\u8bf7\u8f93\u5165\u4e00\u4e2a\u957f\u5ea6\u6700\u591a\u662f4000\u7684\u5b57\u7b26\u4e32\uff01
|
maxlength_4000=\u8bf7\u8f93\u5165\u4e00\u4e2a\u957f\u5ea6\u6700\u591a\u662f4000\u7684\u5b57\u7b26\u4e32\uff01
|
||||||
|
ok=\u786e\u5b9a
|
||||||
|
clear=\u6e05\u9664
|
||||||
|
close=\u5173\u95ed
|
||||||
|
reselect=\u8bf7\u91cd\u65b0\u9009\u62e9
|
||||||
|
no_root=\u4e0d\u80fd\u9009\u62e9\u6839\u8282\u70b9
|
||||||
|
no_parent=\u4e0d\u80fd\u9009\u62e9\u7236\u8282\u70b9
|
||||||
|
no_public_model=\u4e0d\u80fd\u9009\u62e9\u516c\u5171\u6a21\u578b
|
||||||
|
no_outside_column=\u4e0d\u80fd\u9009\u62e9\u5f53\u524d\u680f\u76ee\u4ee5\u5916\u7684\u680f\u76ee\u6a21\u578b
|
||||||
|
send_org=\u8bf7\u9009\u62e9\u4e0b\u53d1\u5355\u4f4d
|
||||||
|
department=\u90e8\u95e8
|
||||||
|
sendind_org=\u4e0b\u53d1\u5355\u4f4d
|
||||||
|
no_node=\u4e0d\u80fd\u9009\u62e9\u8282\u70b9
|
||||||
|
select_icon=\u9009\u62e9\u56fe\u6807
|
||||||
|
nothing=\u65e0
|
||||||
#==========message end=====================
|
#==========message end=====================
|
||||||
|
|
||||||
#==========yewuliexingguanli begin=====================
|
#==========yewuliexingguanli begin=====================
|
||||||
@@ -226,8 +276,12 @@ key_word=\u5173\u952e\u5b57
|
|||||||
block_type=\u7ba1\u63a7\u7c7b\u578b
|
block_type=\u7ba1\u63a7\u7c7b\u578b
|
||||||
letter=\u6765\u51fd
|
letter=\u6765\u51fd
|
||||||
whether_area_block=\u662f\u5426\u533a\u57df\u7ba1\u63a7
|
whether_area_block=\u662f\u5426\u533a\u57df\u7ba1\u63a7
|
||||||
|
classification=\u5206\u7c7b
|
||||||
label=\u6807\u7b7e
|
label=\u6807\u7b7e
|
||||||
attribute=\u6027\u8d28
|
attribute=\u6027\u8d28
|
||||||
|
area=\u5730\u57df
|
||||||
|
isp=\u8fd0\u8425\u5546
|
||||||
|
scope=\u7279\u5f81\u4f5c\u7528\u57df
|
||||||
valid_identifier=\u6709\u6548\u6807\u8bc6
|
valid_identifier=\u6709\u6548\u6807\u8bc6
|
||||||
is_audit=\u662f\u5426\u5ba1\u6838
|
is_audit=\u662f\u5426\u5ba1\u6838
|
||||||
creator=\u521b\u5efa\u4eba\u5458
|
creator=\u521b\u5efa\u4eba\u5458
|
||||||
|
|||||||
@@ -331,13 +331,23 @@
|
|||||||
<!-- 根据数据类型编码取出数据类型 -->
|
<!-- 根据数据类型编码取出数据类型 -->
|
||||||
|
|
||||||
<function>
|
<function>
|
||||||
<description>计算序号</description>
|
<description>取出数据类型</description>
|
||||||
<name>getItemTypeByNo</name>
|
<name>getItemTypeByNo</name>
|
||||||
<function-class>com.nis.util.ConfigDictUtils</function-class>
|
<function-class>com.nis.util.ConfigDictUtils</function-class>
|
||||||
<function-signature>java.lang.String getItemTypeByNo(java.lang.String,java.util.List)</function-signature>
|
<function-signature>java.lang.String getItemTypeByNo(java.lang.String,java.util.List)</function-signature>
|
||||||
<example>${fns:getItemTypeByNo(str1,list)}</example>
|
<example>${fns:getItemTypeByNo(str1,list)}</example>
|
||||||
</function>
|
</function>
|
||||||
|
|
||||||
|
<!-- 根据数据类型编码取出权限编码 -->
|
||||||
|
|
||||||
|
<function>
|
||||||
|
<description>取出权限编码</description>
|
||||||
|
<name>getPermissionByNo</name>
|
||||||
|
<function-class>com.nis.util.ConfigDictUtils</function-class>
|
||||||
|
<function-signature>java.lang.String getPermissionByNo(java.lang.String,java.util.List)</function-signature>
|
||||||
|
<example>${fns:getPermissionByNo(str1,list)}</example>
|
||||||
|
</function>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</taglib>
|
</taglib>
|
||||||
|
|||||||
@@ -126,35 +126,35 @@
|
|||||||
typeChild:true
|
typeChild:true
|
||||||
},
|
},
|
||||||
'isLeaf':{
|
'isLeaf':{
|
||||||
leafChange:true,
|
leafChange:true
|
||||||
leafHasTree:true
|
//leafHasTree:true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
messages: {
|
messages: {
|
||||||
'parent.itemValue':{
|
'parent.itemValue':{
|
||||||
isLevelNoSure:"选择此配置上下层级数将超过最大层级"
|
isLevelNoSure:'<spring:message code="isLevelNoSure"/>'
|
||||||
},
|
},
|
||||||
'itemCode':{
|
'itemCode':{
|
||||||
//isLevelNoSure:"选择此配置上下层级数将超过四级",
|
//isLevelNoSure:"选择此配置上下层级数将超过四级",
|
||||||
required:'请填写配置编码',
|
required:'<spring:message code="required"/>',
|
||||||
remote:'该配置编码已存在'
|
remote:'<spring:message code="is_repeat"/>'
|
||||||
},
|
},
|
||||||
'itemValue':{
|
'itemValue':{
|
||||||
required:'编码对应值必须填写'
|
required:'<spring:message code="required"/>'
|
||||||
},
|
},
|
||||||
'itemType':{
|
'itemType':{
|
||||||
typeSame:'请选择一致的上下级配置数据类型',
|
typeSame:'<spring:message code="typeSame"/>',
|
||||||
typeChild:'该配置包含下级配置,数据类型更改后与子类不一致'
|
typeChild:'<spring:message code="typeChild"/>'
|
||||||
},
|
},
|
||||||
'isLeaf':{
|
'isLeaf':{
|
||||||
leafChange:'该配置包含下级配置,不得改为叶子节点',
|
leafChange:'<spring:message code="leafChange"/>'
|
||||||
leafHasTree:'该配置上级为根节点,不得设为叶子节点'
|
//leafHasTree:'该配置上级为根节点,不得设为叶子节点'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
submitHandler: function(form){
|
submitHandler: function(form){
|
||||||
loading('正在提交,请稍等...');
|
loading('<spring:message code="submitting"/>');
|
||||||
form.submit();
|
form.submit();
|
||||||
},
|
},
|
||||||
errorContainer: "#messageBox",
|
errorContainer: "#messageBox",
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
<div class="portlet box blue">
|
<div class="portlet box blue">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<i class="fa fa-gift"></i><shiro:hasPermission name="sys:menu:edit">${not empty serviceDictInfo.serviceDictId?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:menu:edit"><spring:message code="show"/></shiro:lacksPermission></div>
|
<i class="fa fa-gift"></i><c:if test="${not empty serviceDictInfo.serviceDictId}"><spring:message code='edit'/></c:if><c:if test="${empty serviceDictInfo.serviceDictId}"><spring:message code='add'/></c:if></div>
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<!-- <a href="javascript:;" class="collapse"> </a>
|
<!-- <a href="javascript:;" class="collapse"> </a>
|
||||||
<a href="#portlet-config" data-toggle="modal" class="config"> </a>
|
<a href="#portlet-config" data-toggle="modal" class="config"> </a>
|
||||||
@@ -212,7 +212,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><spring:message code="superior_config"/>:</label>
|
<label class="col-md-3 control-label"><spring:message code="superior_config"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<sys:treeselect id="serviceDictInfo" name="parent.serviceDictId" value="${serviceDictInfo.parent.serviceDictId}" labelName="parent.itemValue" labelValue="${serviceDictInfo.parent.itemValue eq '根节点'?'根节点':fns:getServiceDictInfoById(serviceDictInfo.parent.serviceDictId).itemValue}"
|
<c:set var="fatherName"><spring:message code="root_node"/></c:set>
|
||||||
|
<sys:treeselect id="serviceDictInfo" name="parent.serviceDictId" value="${serviceDictInfo.parent.serviceDictId}" labelName="parent.itemValue" labelValue="${serviceDictInfo.parent.itemValue eq 'root_node'?fatherName:fns:getServiceDictInfoById(serviceDictInfo.parent.serviceDictId).itemValue}"
|
||||||
title="菜单" url="/basics/serviceDictInfo/treeData?itType=${itType}" extId="${serviceDictInfo.serviceDictId}" cssClass="required form-control"/>
|
title="菜单" url="/basics/serviceDictInfo/treeData?itType=${itType}" extId="${serviceDictInfo.serviceDictId}" cssClass="required form-control"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -223,9 +224,7 @@
|
|||||||
<c:forEach items="${fns:getDictList('SERVICE_DICT_ITM_TYPE')}" var="dict">
|
<c:forEach items="${fns:getDictList('SERVICE_DICT_ITM_TYPE')}" var="dict">
|
||||||
<c:forEach items="${intArr}" var="itTemp">
|
<c:forEach items="${intArr}" var="itTemp">
|
||||||
<c:if test="${dict.itemCode eq itTemp}">
|
<c:if test="${dict.itemCode eq itTemp}">
|
||||||
<option value="${dict.itemCode}"
|
<option value="${dict.itemCode}" <c:if test="${serviceDictInfo.itemType eq dict.itemCode}">selected="selected"</c:if>><spring:message code="${dict.itemValue}"/></option>
|
||||||
<c:if test="${serviceDictInfo.itemType eq dict.itemCode}">selected="selected"</c:if>
|
|
||||||
>${dict.itemValue}</option>
|
|
||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
@@ -233,7 +232,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font>配置编码:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="item_code"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<form:input path="itemCode" htmlEscape="false" maxlength="50" class="form-control"/>
|
<form:input path="itemCode" htmlEscape="false" maxlength="50" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -247,9 +246,10 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<%-- <form:radiobuttons path="isLeaf" items="${fns:getDictOption('SYS_YES_NO')}" /> --%>
|
|
||||||
<form:select path="isLeaf" class="form-control">
|
<form:select path="isLeaf" class="form-control">
|
||||||
<form:options items="${fns:getDictList('SYS_YES_NO')}" itemLabel="itemValue" itemValue="itemCode" htmlEscape="false"/>
|
<c:forEach items="${fns:getDictList('INT_YES_NO')}" var="dict">
|
||||||
|
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option>
|
||||||
|
</c:forEach>
|
||||||
</form:select>
|
</form:select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -41,7 +41,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="superior_config"/>:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="superior_config"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<input value="${serviceDictInfo.parent.serviceDictId == 0?'根节点':fns:getServiceDictInfoById(serviceDictInfo.parent.serviceDictId).itemValue}" maxlength="50" class="form-control" readonly="readonly"/>
|
<c:set var="fatherName"><spring:message code="root_node"/></c:set>
|
||||||
|
<input value="${serviceDictInfo.parent.serviceDictId == 0?fatherName:fns:getServiceDictInfoById(serviceDictInfo.parent.serviceDictId).itemValue}" maxlength="50" class="form-control" readonly="readonly"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%-- <div class="form-group">
|
<%-- <div class="form-group">
|
||||||
@@ -53,7 +54,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label radio-lable"><font color="red">*</font> <spring:message code="item_type"/>:</label>
|
<label class="col-md-3 control-label radio-lable"><font color="red">*</font> <spring:message code="item_type"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<input value="${fns:getDictLabel('SERVICE_DICT_ITM_TYPE',serviceDictInfo.itemType,'0')}" maxlength="50" class="form-control" readonly="readonly"/>
|
<input value=<spring:message code="${fns:getDictLabel('SERVICE_DICT_ITM_TYPE',serviceDictInfo.itemType,'0')}"/> maxlength="50" class="form-control" readonly="readonly"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -71,7 +72,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<input value="${fns:getDictLabel('SYS_YES_NO',serviceDictInfo.isLeaf,'0')}" maxlength="50" class="form-control" readonly="readonly"/>
|
<input value=<spring:message code="${fns:getDictLabel('INT_YES_NO',serviceDictInfo.isLeaf,'0')}"/> maxlength="50" class="form-control" readonly="readonly"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%-- <div class="form-group">
|
<%-- <div class="form-group">
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>配置信息</title>
|
<title>配置信息</title>
|
||||||
<link href="${ctxStatic}/global/plugins/treeTable/themes/vsStyle/treeTable.min.css" rel="stylesheet" type="text/css" />
|
<link href="${ctxStatic}/global/plugins/treeTable/themes/vsStyle/treeTable.min.css" rel="stylesheet" type="text/css" />
|
||||||
<%-- <link href="${ctxStatic}/pages/css/dictInfo.css" rel="stylesheet" type="text/css" /> --%>
|
|
||||||
<script src="${ctxStatic}/global/plugins/treeTable/jquery.treeTable.min.js" type="text/javascript"></script>
|
<script src="${ctxStatic}/global/plugins/treeTable/jquery.treeTable.min.js" type="text/javascript"></script>
|
||||||
<script src="${ctxStatic}/pages/scripts/dict.js" type="text/javascript"></script>
|
<script src="${ctxStatic}/pages/scripts/dict.js" type="text/javascript"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@@ -15,20 +14,12 @@
|
|||||||
处理全选、全取消
|
处理全选、全取消
|
||||||
**/
|
**/
|
||||||
function selectAll(){
|
function selectAll(){
|
||||||
//alert($("#selAll").prop("checked"));
|
|
||||||
if($("#selAll").prop("checked")){
|
if($("#selAll").prop("checked")){
|
||||||
//$("#treeTable").find(":checkbox[name='check']").attr("checked","checked");
|
|
||||||
//$("#treeTable").find(":checkbox[name='check']").each(function(){
|
|
||||||
$("input[name='check']:checkbox").each(function(){
|
$("input[name='check']:checkbox").each(function(){
|
||||||
$(this).prop("checked",true);
|
$(this).prop("checked",true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//$("#treeTable").find(":checkbox[name='check']").attr("checked",false);
|
|
||||||
//$("#treeTable").find(":checkbox[name='check']").each(function(){
|
|
||||||
$("input[name='check']:checkbox").each(function(){
|
$("input[name='check']:checkbox").each(function(){
|
||||||
//$(this).attr("checked",false);
|
|
||||||
$(this).removeProp("checked");
|
$(this).removeProp("checked");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -45,9 +36,9 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(mulitId!=""){
|
if(mulitId!=""){
|
||||||
confirmx('您确认要执行该操作?', url+"&mulitId="+mulitId);
|
confirmx("<spring:message code='confirm_message'/>", url+"&mulitId="+mulitId);
|
||||||
}else{
|
}else{
|
||||||
alert("至少选择一条数据记录");
|
alert("<spring:message code='one_more'/>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//查询
|
//查询
|
||||||
@@ -84,7 +75,7 @@
|
|||||||
|
|
||||||
$("#seltype").change(function(){
|
$("#seltype").change(function(){
|
||||||
$("#intype").val("");
|
$("#intype").val("");
|
||||||
$("#intype").attr("placeholder","请输入"+$(this).find("option:selected").text());
|
$("#intype").attr("placeholder","<spring:message code='input'/>"+$(this).find("option:selected").text());
|
||||||
$("#intype").attr("name",$(this).find("option:selected").val());
|
$("#intype").attr("name",$(this).find("option:selected").val());
|
||||||
});
|
});
|
||||||
$("#treeTable").treeTable({expandLevel : 3}).show();
|
$("#treeTable").treeTable({expandLevel : 3}).show();
|
||||||
@@ -99,16 +90,20 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<c:set var="permission_type">${fns:getPermissionByNo('SERVICE_DICT_ITM_TYPE',intArr)}</c:set>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
|
<shiro:hasPermission name="basics:${permission_type}:edit">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
onClick="javascript:window.location='${ctx}/basics/serviceDictInfo/form?itType=${itType}'">
|
onClick="javascript:window.location='${ctx}/basics/serviceDictInfo/form?itType=${itType}'">
|
||||||
<i class="fa fa-plus"></i>
|
<i class="fa fa-plus"></i>
|
||||||
<spring:message code="add"></spring:message>配置</button>
|
<spring:message code="add"></spring:message><spring:message code="configuration"></spring:message>
|
||||||
|
</button>
|
||||||
|
</shiro:hasPermission>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
${fns:getItemTypeByNo("SERVICE_DICT_ITM_TYPE",intArr)}
|
<spring:message code="${fns:getItemTypeByNo('SERVICE_DICT_ITM_TYPE',intArr)}"/>
|
||||||
<small><spring:message code="date_list"/></small>
|
<small><spring:message code="date_list"/></small>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
@@ -154,7 +149,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input id="intype" class="form-control input-medium" placeholder="请输入配置编码" type="text">
|
<input id="intype" class="form-control input-medium" placeholder="<spring:message code='item_code'></spring:message>" type="text">
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -168,12 +163,17 @@
|
|||||||
|
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
|
||||||
|
<shiro:hasPermission name="basics:${permission_type}:edit">
|
||||||
<button type="button" class="btn btn-default" onclick="cmd('${ctx}/basics/serviceDictInfo/form?itType=${itType}')">
|
<button type="button" class="btn btn-default" onclick="cmd('${ctx}/basics/serviceDictInfo/form?itType=${itType}')">
|
||||||
<i class="fa fa-edit"></i> 编辑</button>
|
<i class="fa fa-edit"></i> <spring:message code="edit" /></button>
|
||||||
<button type="button" class="btn btn-default" onclick="cmd('${ctx}/basics/serviceDictInfo/delete?itType=${itType}')">
|
<button type="button" class="btn btn-default" onclick="cmd('${ctx}/basics/serviceDictInfo/delete?itType=${itType}')">
|
||||||
<i class="fa fa-trash"></i> 删除</button>
|
<i class="fa fa-trash"></i><spring:message code="delete" /></button>
|
||||||
|
</shiro:hasPermission>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<a class="btn btn-icon-only btn-default setfields tooltips"
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||||
data-container="body" data-placement="top" data-original-title="自定义列字段" href="javascript:;">
|
data-container="body" data-placement="top" data-original-title="<spring:message code="custom_columns" />" href="javascript:;">
|
||||||
<i class="icon-wrench"></i>
|
<i class="icon-wrench"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -280,8 +280,8 @@
|
|||||||
<td nowrap><i class="icon-icon-tablet"></i><a href="${ctx}/basics/serviceDictInfo/form?serviceDictId=${serviceDictInfo.serviceDictId}&doAction=0">${serviceDictInfo.itemCode}</a></td>
|
<td nowrap><i class="icon-icon-tablet"></i><a href="${ctx}/basics/serviceDictInfo/form?serviceDictId=${serviceDictInfo.serviceDictId}&doAction=0">${serviceDictInfo.itemCode}</a></td>
|
||||||
<td>${serviceDictInfo.itemValue}</td>
|
<td>${serviceDictInfo.itemValue}</td>
|
||||||
<td title="${serviceDictInfo.itemDesc}">${fns:abbr(serviceDictInfo.itemDesc,15)}</td>
|
<td title="${serviceDictInfo.itemDesc}">${fns:abbr(serviceDictInfo.itemDesc,15)}</td>
|
||||||
<td>${fns:getDictLabel("SERVICE_DICT_ITM_TYPE",serviceDictInfo.itemType,"0")}</td>
|
<td><spring:message code='${fns:getDictLabel("SERVICE_DICT_ITM_TYPE",serviceDictInfo.itemType,"0")}'/></td>
|
||||||
<td>${fns:getDictLabel("SYS_YES_NO",serviceDictInfo.isLeaf,"0")}</td>
|
<td><spring:message code='${fns:getDictLabel("INT_YES_NO",serviceDictInfo.isLeaf,"0")}'/></td>
|
||||||
<td><c:if test="${serviceDictInfo.serviceDictCreator != null}">
|
<td><c:if test="${serviceDictInfo.serviceDictCreator != null}">
|
||||||
${fns:getUserById(serviceDictInfo.serviceDictCreator.id).name}
|
${fns:getUserById(serviceDictInfo.serviceDictCreator.id).name}
|
||||||
</c:if></td>
|
</c:if></td>
|
||||||
|
|||||||
@@ -118,34 +118,34 @@
|
|||||||
typeChild:true
|
typeChild:true
|
||||||
},
|
},
|
||||||
'isLeaf':{
|
'isLeaf':{
|
||||||
leafChange:true,
|
leafChange:true
|
||||||
leafHasTree:true
|
//leafHasTree:true
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
messages: {
|
messages: {
|
||||||
'parent.itemValue':{
|
'parent.itemValue':{
|
||||||
isLevelNoSure:"选择此配置上下层级数将超过最大层级"
|
isLevelNoSure:'<spring:message code="isLevelNoSure"/>'
|
||||||
},
|
},
|
||||||
'itemCode':{
|
'itemCode':{
|
||||||
required:'请填写配置编码',
|
required:'<spring:message code="required"/>',
|
||||||
remote:'该配置编码已存在'
|
remote:'<spring:message code="is_repeat"/>'
|
||||||
},
|
},
|
||||||
'itemValue':{
|
'itemValue':{
|
||||||
required:'编码对应值必须填写'
|
required:'<spring:message code="required"/>'
|
||||||
},
|
},
|
||||||
'itemType':{
|
'itemType':{
|
||||||
typeSame:'请选择一致的上下级配置数据类型',
|
typeSame:'<spring:message code="typeSame"/>',
|
||||||
typeChild:'该配置包含下级配置,数据类型更改后与子类不一致'
|
typeChild:'<spring:message code="typeChild"/>'
|
||||||
},
|
},
|
||||||
'isLeaf':{
|
'isLeaf':{
|
||||||
leafChange:'该配置包含下级配置,不得改为叶子节点',
|
leafChange:'<spring:message code="leafChange"/>'
|
||||||
leafHasTree:'该配置上级为根节点,不得设为叶子节点'
|
//leafHasTree:'该配置上级为根节点,不得设为叶子节点'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
submitHandler: function(form){
|
submitHandler: function(form){
|
||||||
loading('正在提交,请稍等...');
|
loading('<spring:message code="submitting"/>');
|
||||||
form.submit();
|
form.submit();
|
||||||
},
|
},
|
||||||
errorContainer: "#messageBox",
|
errorContainer: "#messageBox",
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
<div class="portlet box blue">
|
<div class="portlet box blue">
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<i class="fa fa-gift"></i><shiro:hasPermission name="sys:menu:edit">${not empty sysDictInfo.sysDictId?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:menu:edit"><spring:message code="show"/></shiro:lacksPermission></div>
|
<i class="fa fa-gift"></i><c:if test="${not empty sysDictInfo.sysDictId}"><spring:message code='edit'/></c:if><c:if test="${empty sysDictInfo.sysDictId}"><spring:message code='add'/></c:if></div>
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<!-- <a href="javascript:;" class="collapse"> </a>
|
<!-- <a href="javascript:;" class="collapse"> </a>
|
||||||
<a href="#portlet-config" data-toggle="modal" class="config"> </a>
|
<a href="#portlet-config" data-toggle="modal" class="config"> </a>
|
||||||
@@ -204,7 +204,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><spring:message code="superior_config"/>:</label>
|
<label class="col-md-3 control-label"><spring:message code="superior_config"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<sys:treeselect id="sysDictInfo" name="parent.sysDictId" value="${sysDictInfo.parent.sysDictId}" labelName="parent.itemValue" labelValue="${sysDictInfo.parent.itemValue eq '根节点'?'根节点':fns:getSysDictInfoById(sysDictInfo.parent.sysDictId).itemValue}"
|
<c:set var="fatherName"><spring:message code="root_node"/></c:set>
|
||||||
|
<sys:treeselect id="sysDictInfo" name="parent.sysDictId" value="${sysDictInfo.parent.sysDictId}" labelName="parent.itemValue" labelValue="${sysDictInfo.parent.itemValue eq 'root_node'?fatherName:fns:getSysDictInfoById(sysDictInfo.parent.sysDictId).itemValue}"
|
||||||
title="菜单" url="/basics/sysDictInfo/treeData?itType=${itType}" extId="${sysDictInfo.sysDictId}" cssClass="required form-control"/>
|
title="菜单" url="/basics/sysDictInfo/treeData?itType=${itType}" extId="${sysDictInfo.sysDictId}" cssClass="required form-control"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -216,9 +217,7 @@
|
|||||||
<c:forEach items="${fns:getDictList('SYS_DICT_ITM_TYPE')}" var="dict">
|
<c:forEach items="${fns:getDictList('SYS_DICT_ITM_TYPE')}" var="dict">
|
||||||
<c:forEach items="${intArr}" var="itTemp">
|
<c:forEach items="${intArr}" var="itTemp">
|
||||||
<c:if test="${dict.itemCode eq itTemp}">
|
<c:if test="${dict.itemCode eq itTemp}">
|
||||||
<option value="${dict.itemCode}"
|
<option value="${dict.itemCode}" <c:if test="${sysDictInfo.itemType eq dict.itemCode}">selected="selected"</c:if>><spring:message code="${dict.itemValue}"/></option>
|
||||||
<c:if test="${sysDictInfo.itemType eq dict.itemCode}">selected="selected"</c:if>
|
|
||||||
>${dict.itemValue}</option>
|
|
||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
@@ -226,7 +225,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font>配置编码:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="itemCode"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<form:input path="itemCode" htmlEscape="false" maxlength="50" class="form-control"/>
|
<form:input path="itemCode" htmlEscape="false" maxlength="50" class="form-control"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -238,14 +237,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<c:if test="${specType != null and specType==3 }">
|
<c:if test="${specType != null and specType==3 }">
|
||||||
<form:hidden path="isLeaf" value="0"/>
|
<form:hidden path="isLeaf" value="1"/>
|
||||||
</c:if>
|
</c:if>
|
||||||
<c:if test="${specType != null and specType!=3 }">
|
<c:if test="${specType != null and specType!=3 }">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<form:select path="isLeaf" class="form-control">
|
<form:select path="isLeaf" class="form-control">
|
||||||
<form:options items="${fns:getDictList('SYS_YES_NO')}" itemLabel="itemValue" itemValue="itemCode" htmlEscape="false"/>
|
<c:forEach items="${fns:getDictList('INT_YES_NO')}" var="dict">
|
||||||
|
<form:option value="${dict.itemCode}"><spring:message code="${dict.itemValue}"/></form:option>
|
||||||
|
</c:forEach>
|
||||||
</form:select>
|
</form:select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -42,7 +42,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="superior_config"/>:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="superior_config"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<input value="${sysDictInfo.parent.sysDictId == 0?'根节点':fns:getSysDictInfoById(sysDictInfo.parent.sysDictId).itemValue}" maxlength="50" class="form-control" readonly="readonly"/>
|
<c:set var="fatherName"><spring:message code="root_node"/></c:set>
|
||||||
|
<input value="${sysDictInfo.parent.sysDictId == 0?fatherName:fns:getSysDictInfoById(sysDictInfo.parent.sysDictId).itemValue}" maxlength="50" class="form-control" readonly="readonly"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
@@ -55,7 +56,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label radio-lable"><font color="red">*</font> <spring:message code="item_type"/>:</label>
|
<label class="col-md-3 control-label radio-lable"><font color="red">*</font> <spring:message code="item_type"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<input value="${fns:getDictLabel('SYS_DICT_ITM_TYPE',sysDictInfo.itemType,'0')}" maxlength="50" class="form-control" readonly="readonly"/>
|
<input value=<spring:message code="${fns:getDictLabel('SYS_DICT_ITM_TYPE',sysDictInfo.itemType,'0')}"/> maxlength="50" class="form-control" readonly="readonly"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -74,7 +75,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<input value="${fns:getDictLabel('SYS_YES_NO',sysDictInfo.isLeaf,'0')}" maxlength="50" class="form-control" readonly="readonly"/>
|
<input value=<spring:message code="${fns:getDictLabel('INT_YES_NO',sysDictInfo.isLeaf,'0')}"/> maxlength="50" class="form-control" readonly="readonly"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|||||||
@@ -16,20 +16,12 @@
|
|||||||
处理全选、全取消
|
处理全选、全取消
|
||||||
**/
|
**/
|
||||||
function selectAll(){
|
function selectAll(){
|
||||||
//alert($("#selAll").prop("checked"));
|
|
||||||
if($("#selAll").prop("checked")){
|
if($("#selAll").prop("checked")){
|
||||||
//$("#treeTable").find(":checkbox[name='check']").attr("checked","checked");
|
|
||||||
//$("#treeTable").find(":checkbox[name='check']").each(function(){
|
|
||||||
$("input[name='check']:checkbox").each(function(){
|
$("input[name='check']:checkbox").each(function(){
|
||||||
$(this).prop("checked",true);
|
$(this).prop("checked",true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
//$("#treeTable").find(":checkbox[name='check']").attr("checked",false);
|
|
||||||
//$("#treeTable").find(":checkbox[name='check']").each(function(){
|
|
||||||
$("input[name='check']:checkbox").each(function(){
|
$("input[name='check']:checkbox").each(function(){
|
||||||
//$(this).attr("checked",false);
|
|
||||||
$(this).removeProp("checked");
|
$(this).removeProp("checked");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -49,9 +41,9 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(mulitId!=""){
|
if(mulitId!=""){
|
||||||
confirmx('您确认要执行该操作?', url+"&mulitId="+mulitId);
|
confirmx("<spring:message code='confirm_message'/>", url+"&mulitId="+mulitId);
|
||||||
}else{
|
}else{
|
||||||
alert("至少选择一条数据记录");
|
alert("<spring:message code='one_more'/>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,7 +80,7 @@
|
|||||||
|
|
||||||
$("#seltype").change(function(){
|
$("#seltype").change(function(){
|
||||||
$("#intype").val("");
|
$("#intype").val("");
|
||||||
$("#intype").attr("placeholder","请输入"+$(this).find("option:selected").text());
|
$("#intype").attr("placeholder","<spring:message code='input'/>"+$(this).find("option:selected").text());
|
||||||
$("#intype").attr("name",$(this).find("option:selected").val());
|
$("#intype").attr("name",$(this).find("option:selected").val());
|
||||||
});
|
});
|
||||||
$("#treeTable").treeTable({expandLevel : 3}).show();
|
$("#treeTable").treeTable({expandLevel : 3}).show();
|
||||||
@@ -102,16 +94,19 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<c:set var="permission_type">${fns:getPermissionByNo('SYS_DICT_ITM_TYPE',intArr)}</c:set>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
|
<shiro:hasPermission name="basics:${permission_type}:edit">
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
onClick="javascript:window.location='${ctx}/basics/sysDictInfo/form?itType=${itType}'">
|
onClick="javascript:window.location='${ctx}/basics/sysDictInfo/form?itType=${itType}'">
|
||||||
<i class="fa fa-plus"></i>
|
<i class="fa fa-plus"></i>
|
||||||
<spring:message code="add"></spring:message>配置</button>
|
<spring:message code="add"></spring:message><spring:message code="configuration" /></button>
|
||||||
|
</shiro:hasPermission>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
${fns:getItemTypeByNo("SYS_DICT_ITM_TYPE",intArr)}
|
<spring:message code="${fns:getItemTypeByNo('SYS_DICT_ITM_TYPE',intArr)}"/>
|
||||||
<small><spring:message code="date_list"/></small>
|
<small><spring:message code="date_list"/></small>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
@@ -157,7 +152,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input id="intype" class="form-control input-medium" placeholder="请输入配置编码" type="text">
|
<input id="intype" class="form-control input-medium" placeholder="<spring:message code='item_code'></spring:message>" type="text">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -169,15 +164,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
|
<shiro:hasPermission name="basics:${permission_type}:edit">
|
||||||
<button type="button" class="btn btn-default" onclick="cmd('${ctx}/basics/sysDictInfo/form?itType=${itType}')">
|
<button type="button" class="btn btn-default" onclick="cmd('${ctx}/basics/sysDictInfo/form?itType=${itType}')">
|
||||||
<i class="fa fa-edit"></i> 编辑</button>
|
<i class="fa fa-edit"></i> <spring:message code="edit"/> </button>
|
||||||
<button type="button" class="btn btn-default" onclick="cmd('${ctx}/basics/sysDictInfo/delete?itType=${itType}')">
|
<button type="button" class="btn btn-default" onclick="cmd('${ctx}/basics/sysDictInfo/delete?itType=${itType}')">
|
||||||
<i class="fa fa-trash"></i> 删除</button>
|
<i class="fa fa-trash"></i> <spring:message code="delete"/> </button>
|
||||||
<a class="btn btn-icon-only btn-default setfields tooltips"
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
||||||
data-container="body" data-placement="top" data-original-title="自定义列字段" href="javascript:;">
|
data-container="body" data-placement="top" data-original-title="<spring:message code="custom_columns" />" href="javascript:;">
|
||||||
<i class="icon-wrench"></i>
|
<i class="icon-wrench"></i>
|
||||||
</a>
|
</a>
|
||||||
|
</shiro:hasPermission>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /搜索内容与操作按钮栏-->
|
<!-- /搜索内容与操作按钮栏-->
|
||||||
@@ -282,9 +278,9 @@
|
|||||||
<td nowrap><i class="icon-icon-tablet"></i><a href="${ctx}/basics/sysDictInfo/form?sysDictId=${sysDictInfo.sysDictId}&doAction=0">${sysDictInfo.itemCode}</a></td>
|
<td nowrap><i class="icon-icon-tablet"></i><a href="${ctx}/basics/sysDictInfo/form?sysDictId=${sysDictInfo.sysDictId}&doAction=0">${sysDictInfo.itemCode}</a></td>
|
||||||
<td>${sysDictInfo.itemValue}</td>
|
<td>${sysDictInfo.itemValue}</td>
|
||||||
<td title="${sysDictInfo.itemDesc}">${fns:abbr(sysDictInfo.itemDesc,15)}</td>
|
<td title="${sysDictInfo.itemDesc}">${fns:abbr(sysDictInfo.itemDesc,15)}</td>
|
||||||
<td>${fns:getDictLabel("SYS_DICT_ITM_TYPE",sysDictInfo.itemType,"0")}</td>
|
<td><spring:message code='${fns:getDictLabel("SYS_DICT_ITM_TYPE",sysDictInfo.itemType,"0")}'/></td>
|
||||||
<c:if test="${specType != null and specType!=3 }">
|
<c:if test="${specType != null and specType!=3 }">
|
||||||
<td>${fns:getDictLabel("SYS_YES_NO",sysDictInfo.isLeaf,"0")}</td>
|
<td><spring:message code='${fns:getDictLabel("INT_YES_NO",sysDictInfo.isLeaf,"0")}'/></td>
|
||||||
</c:if>
|
</c:if>
|
||||||
<td><c:if test="${sysDictInfo.sysDictCreator != null}">
|
<td><c:if test="${sysDictInfo.sysDictCreator != null}">
|
||||||
${fns:getUserById(sysDictInfo.sysDictCreator.id).name}
|
${fns:getUserById(sysDictInfo.sysDictCreator.id).name}
|
||||||
|
|||||||
@@ -170,7 +170,7 @@
|
|||||||
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
<label class="col-md-3 control-label"><font color="red">*</font><spring:message code="is_leaf"/>:</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<form:select path="isLeaf" class="form-control">
|
<form:select path="isLeaf" class="form-control">
|
||||||
<form:options items="${fns:getDictList('SYS_YES_NO')}" itemLabel="itemValue" itemValue="itemCode" htmlEscape="false"/>
|
<form:options items="${fns:getDictList('INT_YES_NO')}" itemLabel="<spring:message code="itemValue"/>" itemValue="itemCode" htmlEscape="false"/>
|
||||||
</form:select>
|
</form:select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user