Commit d89c9e34 authored by 曲欣亮's avatar 曲欣亮

未实现的菜单功能增加提示信息

parent dc0ca864
...@@ -50,11 +50,8 @@ public class ImportJson { ...@@ -50,11 +50,8 @@ public class ImportJson {
parameters.put("sContentText", sContentText); parameters.put("sContentText", sContentText);
String sig = SigUtil.sig(parameters, secret); String sig = SigUtil.sig(parameters, secret);
parameters.put("sig", sig); parameters.put("sig", sig);
// String result = HttpUtil.post("http://localhost:8090/lang/api/update", parameters); String result = HttpUtil.post("http://localhost:8090/lang/api/update", parameters);
// System.out.println(result); System.out.println(result);
System.out.println();
} }
} }
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
$(".ctxmenu").css("top", e.clientY + 2); $(".ctxmenu").css("top", e.clientY + 2);
$(".ctxmenu").css("left", e.clientX + 2); $(".ctxmenu").css("left", e.clientX + 2);
if(this.data) { if(this.data) {
this.menus = [{name: "新增节点", fn: "append"}, {name: "删除节点", fn: "delete"}, {name: "修改编号", fn: "delete"}, {name: "编辑节点", fn: "update"}, {name: "编辑代码", fn: "updateCode"}] this.menus = [{name: "新增节点", fn: "append"}, {name: "删除节点", fn: "delete"}, {name: "修改编号", fn: "rename"}, {name: "人工编辑", fn: "editor"}]
} else { } else {
this.menus = [{name: "新增节点", fn: "append"}] this.menus = [{name: "新增节点", fn: "append"}]
} }
...@@ -37,15 +37,13 @@ ...@@ -37,15 +37,13 @@
$.ajax({url: "api/delete", traditional: true, data: {sLink: scope.data.sLink}, success: function(json) {if(json.code == 200) {scope.$root.loadTree()}}}); $.ajax({url: "api/delete", traditional: true, data: {sLink: scope.data.sLink}, success: function(json) {if(json.code == 200) {scope.$root.loadTree()}}});
} }
}, 0); }, 0);
} else if(menu.fn == "update") { } else if(menu.fn == "editor") {
} else if(menu.fn == "updateCode") {
scope.$root.switchMainComponent("jsonComponent"); scope.$root.switchMainComponent("jsonComponent");
setTimeout(function() { setTimeout(function() {
scope.$root.getComponentByRefs(["mainComponent"]).loadData(); scope.$root.getComponentByRefs(["mainComponent"]).loadData();
}, 0); }, 0);
} else if(menu.fn == "rename") { } else {
alert("敬请期待。。。");
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment