Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b880100a
authored
2018-03-25 15:09:30 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
c2e02cec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletions
application/views/tool/web.php
application/views/tool/web.php
View file @
b880100
...
...
@@ -122,7 +122,31 @@
btn: ['确认','取消'],
title: '删除网查'
}, function(){
layer_load('应用工具', '
<?=
site_url
(
"tool/web"
)
?>
'
);
$.ajax({
type:'delete',
url:apiBaseUrl + id,
cache: false,
data:JSON.stringify(data),
dataType:'json',
contentType: "application/json; charset=UTF-8",
success:function(data){
if(data.msg){
layer.alert(data.msg);
} else if(data.code != 0){
layer.alert('请求失败');
} else {
layer.msg('删除成功');
setTimeout(function () {
layer_load('应用工具', '
<?=
site_url
(
"tool/web"
)
?>
'
);
},
500
);
}
},
error
:
function
(){
layer
.
alert
(
"请求失败"
)
}
})
});
}
</script>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment