Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
member-api
Commits
d89c9e34
Commit
d89c9e34
authored
Aug 28, 2018
by
曲欣亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未实现的菜单功能增加提示信息
parent
dc0ca864
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
ImportJson.java
src/main/java/com/egolm/lang/ImportJson.java
+2
-5
ctxmenu.js
src/main/resources/static/assets/components/ctxmenu.js
+4
-6
No files found.
src/main/java/com/egolm/lang/ImportJson.java
View file @
d89c9e34
...
...
@@ -50,11 +50,8 @@ public class ImportJson {
parameters
.
put
(
"sContentText"
,
sContentText
);
String
sig
=
SigUtil
.
sig
(
parameters
,
secret
);
parameters
.
put
(
"sig"
,
sig
);
// String result = HttpUtil.post("http://localhost:8090/lang/api/update", parameters);
// System.out.println(result);
System
.
out
.
println
();
String
result
=
HttpUtil
.
post
(
"http://localhost:8090/lang/api/update"
,
parameters
);
System
.
out
.
println
(
result
);
}
}
...
...
src/main/resources/static/assets/components/ctxmenu.js
View file @
d89c9e34
...
...
@@ -18,7 +18,7 @@
$
(
".ctxmenu"
).
css
(
"top"
,
e
.
clientY
+
2
);
$
(
".ctxmenu"
).
css
(
"left"
,
e
.
clientX
+
2
);
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
{
this
.
menus
=
[{
name
:
"新增节点"
,
fn
:
"append"
}]
}
...
...
@@ -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
()}}});
}
},
0
);
}
else
if
(
menu
.
fn
==
"update"
)
{
}
else
if
(
menu
.
fn
==
"updateCode"
)
{
}
else
if
(
menu
.
fn
==
"editor"
)
{
scope
.
$root
.
switchMainComponent
(
"jsonComponent"
);
setTimeout
(
function
()
{
scope
.
$root
.
getComponentByRefs
([
"mainComponent"
]).
loadData
();
},
0
);
}
else
if
(
menu
.
fn
==
"rename"
)
{
}
else
{
alert
(
"敬请期待。。。"
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment