Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
7b03ed2a
Commit
7b03ed2a
authored
Jun 05, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字典,菜单,通知增加删除的提示
parent
efebecd6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
src/main/webapp/static/modular/system/dict/dict.js
+6
-1
src/main/webapp/static/modular/system/menu/menu.js
+6
-1
src/main/webapp/static/modular/system/notice/notice.js
+6
-1
No files found.
src/main/webapp/static/modular/system/dict/dict.js
View file @
7b03ed2a
...
@@ -71,14 +71,19 @@ Dict.openDictDetail = function () {
...
@@ -71,14 +71,19 @@ Dict.openDictDetail = function () {
*/
*/
Dict
.
delete
=
function
()
{
Dict
.
delete
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
operation
=
function
(){
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/dict/delete"
,
function
(
data
)
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/dict/delete"
,
function
(
data
)
{
Feng
.
success
(
"删除成功!"
);
Feng
.
success
(
"删除成功!"
);
Dict
.
table
.
refresh
();
Dict
.
table
.
refresh
();
},
function
(
data
)
{
},
function
(
data
)
{
Feng
.
error
(
"删除失败!"
+
data
.
responseJSON
.
message
+
"!"
);
Feng
.
error
(
"删除失败!"
+
data
.
responseJSON
.
message
+
"!"
);
});
});
ajax
.
set
(
"dictId"
,
this
.
seItem
.
id
);
ajax
.
set
(
"dictId"
,
Dict
.
seItem
.
id
);
ajax
.
start
();
ajax
.
start
();
};
Feng
.
confirm
(
"是否刪除字典 "
+
Dict
.
seItem
.
name
+
"?"
,
operation
);
}
}
};
};
...
...
src/main/webapp/static/modular/system/menu/menu.js
View file @
7b03ed2a
...
@@ -78,14 +78,19 @@ Menu.openChangeMenu = function () {
...
@@ -78,14 +78,19 @@ Menu.openChangeMenu = function () {
*/
*/
Menu
.
delMenu
=
function
()
{
Menu
.
delMenu
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
operation
=
function
(){
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/menu/remove"
,
function
(
data
)
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/menu/remove"
,
function
(
data
)
{
Feng
.
success
(
"删除成功!"
);
Feng
.
success
(
"删除成功!"
);
Menu
.
table
.
refresh
();
Menu
.
table
.
refresh
();
},
function
(
data
)
{
},
function
(
data
)
{
Feng
.
error
(
"删除失败!"
+
data
.
responseJSON
.
message
+
"!"
);
Feng
.
error
(
"删除失败!"
+
data
.
responseJSON
.
message
+
"!"
);
});
});
ajax
.
set
(
"menuId"
,
this
.
seItem
.
id
);
ajax
.
set
(
"menuId"
,
Menu
.
seItem
.
id
);
ajax
.
start
();
ajax
.
start
();
};
Feng
.
confirm
(
"是否刪除该菜单?"
,
operation
);
}
}
};
};
...
...
src/main/webapp/static/modular/system/notice/notice.js
View file @
7b03ed2a
...
@@ -73,14 +73,19 @@ Notice.openNoticeDetail = function () {
...
@@ -73,14 +73,19 @@ Notice.openNoticeDetail = function () {
*/
*/
Notice
.
delete
=
function
()
{
Notice
.
delete
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
operation
=
function
(){
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/notice/delete"
,
function
(
data
)
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/notice/delete"
,
function
(
data
)
{
Feng
.
success
(
"删除成功!"
);
Feng
.
success
(
"删除成功!"
);
Notice
.
table
.
refresh
();
Notice
.
table
.
refresh
();
},
function
(
data
)
{
},
function
(
data
)
{
Feng
.
error
(
"删除失败!"
+
data
.
responseJSON
.
message
+
"!"
);
Feng
.
error
(
"删除失败!"
+
data
.
responseJSON
.
message
+
"!"
);
});
});
ajax
.
set
(
"noticeId"
,
this
.
seItem
.
id
);
ajax
.
set
(
"noticeId"
,
Notice
.
seItem
.
id
);
ajax
.
start
();
ajax
.
start
();
};
Feng
.
confirm
(
"是否删除通知 "
+
Notice
.
seItem
.
title
+
"?"
,
operation
);
}
}
};
};
...
...
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