1
This commit is contained in:
parent
3c7266c5f9
commit
aac2327dff
126
index.html
126
index.html
@ -80,8 +80,8 @@
|
|||||||
<div class="layui-form-item" pane="">
|
<div class="layui-form-item" pane="">
|
||||||
<label class="layui-form-label">是否唯一</label>
|
<label class="layui-form-label">是否唯一</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<input type="radio" name="only" value="true" title="是" checked="">
|
<input type="radio" name="only" value="true" title="是">
|
||||||
<input type="radio" name="only" value="false" title="否">
|
<input type="radio" name="only" value="false" title="否" checked="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="button" class="layui-btn layui-btn-sm baseevent"><i class="layui-icon layui-icon-add-1"></i> 基础属性</button>
|
<button type="button" class="layui-btn layui-btn-sm baseevent"><i class="layui-icon layui-icon-add-1"></i> 默认属性</button>
|
||||||
|
|
||||||
<button type="button" class="layui-btn layui-btn-sm layui-btn-normal eventattr-add" style="float: right;"><i class="layui-icon layui-icon-add-1"></i> 添加</button>
|
<button type="button" class="layui-btn layui-btn-sm layui-btn-normal eventattr-add" style="float: right;"><i class="layui-icon layui-icon-add-1"></i> 添加</button>
|
||||||
|
|
||||||
@ -344,49 +344,50 @@
|
|||||||
var default_field;
|
var default_field;
|
||||||
$(document).on('click','.baseevent',function(){
|
$(document).on('click','.baseevent',function(){
|
||||||
$(".baseevent-pop").show();
|
$(".baseevent-pop").show();
|
||||||
$.ajax({
|
});
|
||||||
url: 'http://10.0.0.77:7997/v1/check/default_field',
|
$.ajax({
|
||||||
type:'get',
|
url: 'http://10.0.0.77:7997/v1/check/default_field',
|
||||||
dataType: 'json',
|
type:'get',
|
||||||
async:true,
|
dataType: 'json',
|
||||||
contentType:'application/json',
|
async:true,
|
||||||
beforeSend: function () {
|
contentType:'application/json',
|
||||||
// loading 显示
|
beforeSend: function () {
|
||||||
},
|
// loading 显示
|
||||||
success:function(d){
|
},
|
||||||
default_field = d.data;
|
success:function(d){
|
||||||
var listarr = [];
|
default_field = d.data;
|
||||||
if(JSON.stringify(baseeventdata) != "{}"){
|
var listarr = [];
|
||||||
for(let i in default_field){
|
if(JSON.stringify(baseeventdata) != "{}"){
|
||||||
var arr= {
|
for(let i in default_field){
|
||||||
'title': i,
|
var arr= {
|
||||||
'on': 0
|
'title': i,
|
||||||
|
'on': 0
|
||||||
|
}
|
||||||
|
for(let j in baseeventdata){
|
||||||
|
if(i == j){
|
||||||
|
arr['on'] = 1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
for(let j in baseeventdata){
|
}
|
||||||
if(i == j){
|
listarr.push(arr);
|
||||||
arr['on'] = 1;
|
}
|
||||||
break;
|
}else {
|
||||||
}
|
for(let i in default_field){
|
||||||
}
|
var arr = {
|
||||||
listarr.push(arr);
|
'title': i,
|
||||||
}
|
'on':1
|
||||||
}else {
|
}
|
||||||
for(let i in default_field){
|
listarr.push(arr);
|
||||||
var arr = {
|
}
|
||||||
'title': i,
|
}
|
||||||
'on':1
|
console.log(listarr);
|
||||||
}
|
baseeventdata = default_field;
|
||||||
listarr.push(arr);
|
laytpldata("#baseevent-checkbox-box-dot",listarr,".baseevent-checkbox-box");
|
||||||
}
|
layui.form.render();
|
||||||
}
|
},
|
||||||
console.log(listarr);
|
error:function(error){
|
||||||
laytpldata("#baseevent-checkbox-box-dot",listarr,".baseevent-checkbox-box");
|
layer.msg('条件错误');
|
||||||
layui.form.render();
|
}
|
||||||
},
|
|
||||||
error:function(error){
|
|
||||||
layer.msg('条件错误');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('click','.baseevent-but-qb',function(){
|
$(document).on('click','.baseevent-but-qb',function(){
|
||||||
@ -456,23 +457,26 @@
|
|||||||
$(document).on('click','.save-list-but',function(){
|
$(document).on('click','.save-list-but',function(){
|
||||||
$('.save-pop').show();
|
$('.save-pop').show();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'http://10.0.0.77:7997/v1/check/template',
|
url: 'http://10.0.0.77:7997/v1/check/template',
|
||||||
type:'get',
|
type:'get',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
async:true,
|
async:true,
|
||||||
contentType:'application/json',
|
contentType:'application/json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
// loading 显示
|
// loading 显示
|
||||||
},
|
},
|
||||||
success:function(d){
|
success:function(d){
|
||||||
savelist = d.data;
|
savelist = d.data;
|
||||||
laytpldata("#save-list-content-box-dot",d.data,".save-list-content-box");
|
laytpldata("#save-list-content-box-dot",d.data,".save-list-content-box");
|
||||||
},
|
|
||||||
error:function(error){
|
},
|
||||||
layer.msg('条件错误');
|
error:function(error){
|
||||||
}
|
layer.msg('条件错误');
|
||||||
});
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on('click','.but-qd',function(){
|
$(document).on('click','.but-qd',function(){
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user