1
This commit is contained in:
parent
aac2327dff
commit
f4c55ca255
72
index.html
72
index.html
@ -45,9 +45,12 @@
|
|||||||
.baseevent-but-qx { background: #FF5722; color: #fff; }
|
.baseevent-but-qx { background: #FF5722; color: #fff; }
|
||||||
.baseevent-but-ok { background: #3d90ff; color: #fff; }
|
.baseevent-but-ok { background: #3d90ff; color: #fff; }
|
||||||
.baseevent-but-qc { background: #FF5722; color: #fff; }
|
.baseevent-but-qc { background: #FF5722; color: #fff; }
|
||||||
|
.cankao {display: flex; justify-content: right; position: relative;top: 16px; right: 30px; }
|
||||||
|
.save-list { display: flex; justify-content: space-between; align-items: center; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<a href="http://10.0.0.5/leguwiki/?app=view&id=588&key=" target="_blank" class="cankao">基础埋点参考</a>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<form class="layui-form layui-form-pane" action="" lay-filter="example">
|
<form class="layui-form layui-form-pane" action="" lay-filter="example">
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
@ -234,7 +237,7 @@
|
|||||||
<script id="save-list-content-box-dot" type="text/html">
|
<script id="save-list-content-box-dot" type="text/html">
|
||||||
{{# layui.each(d, function(index, item){ }}
|
{{# layui.each(d, function(index, item){ }}
|
||||||
<div class="save-list" data-index="{{index}}">
|
<div class="save-list" data-index="{{index}}">
|
||||||
{{item.title}}
|
<span>{{item.title}}</span> <span class="save-list-del" data-title="{{item.title}}"><i class="layui-icon layui-icon-delete"></i></span>
|
||||||
</div>
|
</div>
|
||||||
{{# }); }}
|
{{# }); }}
|
||||||
</script>
|
</script>
|
||||||
@ -418,6 +421,33 @@
|
|||||||
layui.form.render();
|
layui.form.render();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('click','.save-list-del',function(e){
|
||||||
|
e.stopPropagation();
|
||||||
|
var title = $(this).attr("data-title");
|
||||||
|
var data = {
|
||||||
|
title: title
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
url: 'http://10.0.0.77:7997/v1/check/del_template',
|
||||||
|
type:'post',
|
||||||
|
dataType: 'json',
|
||||||
|
async:true,
|
||||||
|
data: JSON.stringify(data),
|
||||||
|
contentType:'application/json',
|
||||||
|
beforeSend: function () {
|
||||||
|
// loading 显示
|
||||||
|
},
|
||||||
|
success:function(d){
|
||||||
|
if(d.data){
|
||||||
|
layer.msg('删除成功');
|
||||||
|
posttemplate();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(error){
|
||||||
|
layer.msg('条件错误');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
$(document).on("click",'.save-list',function(){
|
$(document).on("click",'.save-list',function(){
|
||||||
var index = $(this).attr('data-index');
|
var index = $(this).attr('data-index');
|
||||||
@ -456,25 +486,29 @@
|
|||||||
var savelist;
|
var savelist;
|
||||||
$(document).on('click','.save-list-but',function(){
|
$(document).on('click','.save-list-but',function(){
|
||||||
$('.save-pop').show();
|
$('.save-pop').show();
|
||||||
$.ajax({
|
posttemplate();
|
||||||
url: 'http://10.0.0.77:7997/v1/check/template',
|
});
|
||||||
type:'get',
|
|
||||||
dataType: 'json',
|
|
||||||
async:true,
|
|
||||||
contentType:'application/json',
|
|
||||||
beforeSend: function () {
|
|
||||||
// loading 显示
|
|
||||||
},
|
|
||||||
success:function(d){
|
|
||||||
savelist = d.data;
|
|
||||||
laytpldata("#save-list-content-box-dot",d.data,".save-list-content-box");
|
|
||||||
|
|
||||||
},
|
function posttemplate(){
|
||||||
error:function(error){
|
$.ajax({
|
||||||
layer.msg('条件错误');
|
url: 'http://10.0.0.77:7997/v1/check/template',
|
||||||
}
|
type:'get',
|
||||||
});
|
dataType: 'json',
|
||||||
});
|
async:true,
|
||||||
|
contentType:'application/json',
|
||||||
|
beforeSend: function () {
|
||||||
|
// loading 显示
|
||||||
|
},
|
||||||
|
success:function(d){
|
||||||
|
savelist = d.data;
|
||||||
|
laytpldata("#save-list-content-box-dot",d.data,".save-list-content-box");
|
||||||
|
|
||||||
|
},
|
||||||
|
error:function(error){
|
||||||
|
layer.msg('条件错误');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user