update
This commit is contained in:
@@ -172,6 +172,9 @@
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
let tabid = -1;
|
||||
$.get("/login/check.do", function (data) {
|
||||
let json = JSON.parse(data);
|
||||
@@ -239,7 +242,7 @@
|
||||
, content: "确认删除 " + name
|
||||
, btn: ['确认', '取消']
|
||||
, yes: function (index) {
|
||||
$.post('/tools/password/type/set/remove.do', { id: id }, function (data) {
|
||||
$.post('/anim/type/del.do', { id: id }, function (data) {
|
||||
let json = JSON.parse(data);
|
||||
layer.msg(json.msg);
|
||||
})
|
||||
@@ -251,13 +254,7 @@
|
||||
})
|
||||
|
||||
});
|
||||
table.on('rowDouble(listTools)', function (data) {
|
||||
$.get('/tools/password/get/password.do?id=' + data.data.id, function (udata) {
|
||||
let json = JSON.parse(udata);
|
||||
data.data.password = json.data;
|
||||
data.update(data.data)
|
||||
})
|
||||
})
|
||||
|
||||
table.on('tool(listTools)', function (obj) {
|
||||
if (obj.event === 'edit') {
|
||||
$("#type").find("option:contains('" + obj.data.categories + "')").attr("selected", null);
|
||||
@@ -276,6 +273,11 @@
|
||||
, content: "删除操作无法回滚,是否确认删除:" + obj.data.title
|
||||
, btn: ['确认', '取消']
|
||||
, yes: function (index) {
|
||||
$.post('/anim/rss/del.do', { id: obj.data.id }, function (data) {
|
||||
let json = JSON.parse(data);
|
||||
layer.msg(json.msg)
|
||||
layer.close(index)
|
||||
})
|
||||
|
||||
},
|
||||
btn2: function (index) {
|
||||
@@ -324,16 +326,14 @@
|
||||
where: {
|
||||
key: $('#title').val(),
|
||||
type: form.val("formTest").type,
|
||||
team:form.val("formTest").team
|
||||
team: form.val("formTest").team
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
$.ajax({ cache: false })
|
||||
$('#header').load("/html/header.html");
|
||||
$('#footer').load("/html/footer.html");
|
||||
$('#side').load("/html/body/nas/side.html");
|
||||
|
||||
//let js="" ; $('#team option').each(function() { let value=$(this).val(); let text=$(this).text(); js+='{"'+value+'":"'+text+'"},'})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user