This commit is contained in:
罗松柏 2022-05-12 16:27:44 +08:00
parent 6b45355d01
commit 6825157edf
9 changed files with 86 additions and 14 deletions

View File

@ -19,6 +19,19 @@
</div> </div>
</div> </div>
<div class="layui-form-item">
<div class="layui-inline">
<label class="layui-form-label">分析标签</label>
<div class="layui-input-inline">
<select name="label_id" lay-filter="aihao">
<option value=""></option>
<option value="hero_id">hero_id</option>
</select>
</div>
</div>
</div>
<div class="layui-form-item"> <div class="layui-form-item">
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label">状态</label> <label class="layui-form-label">状态</label>
@ -38,7 +51,7 @@
</div> </div>
<div class="eventattradminedit-but-box"> <div class="eventattradminedit-but-box" style="margin-top: -30px;">
<div class="personalsettingsedit-qx">取 消</div> <div class="personalsettingsedit-qx">取 消</div>
<div class="personalsettingsedit-qd">确 定</div> <div class="personalsettingsedit-qd">确 定</div>
</div> </div>

View File

@ -24,7 +24,7 @@
<div class="setgrouping-content-title">{{item.title}}</div> <div class="setgrouping-content-title">{{item.title}}</div>
<div class="setgrouping-content-list-box"> <div class="setgrouping-content-list-box">
{{# layui.each(item.category, function(indexs, items){ }} {{# layui.each(item.category, function(indexs, items){ }}
<div class="setgrouping-content-list" data-index="{{index}}" data-indexs="{{indexs}}" data-id="{{items.event_desc}}" data-name="{{items.event_name}}"> <div class="setgrouping-content-list" data-index="{{index}}" data-indexs="{{indexs}}" data-id="{{items.event_desc}}" data-name="{{items.event_name}}" data-label="{{items.event_label}}">
<div>{{items.event_desc}}</div> <div>{{items.event_desc}}</div>
<!-- {{# if(items.isshoucang != 1){ }} --> <!-- {{# if(items.isshoucang != 1){ }} -->
<img src="./static/img/xing1.png" class="setgrouping-content-list-img"> <img src="./static/img/xing1.png" class="setgrouping-content-list-img">

48
web/src/x.min.js vendored
View File

@ -128,7 +128,7 @@ var X = window.X || {
"operatorarr": [ "operatorarr": [
{title: '无',id:""}, {title: '无',id:""},
{title: '+',id:'+'}, {title: '+',id:'+'},
{title: '-',id:'-'}, {title: '-',id:'-'},
{title: '*',id:'*'}, {title: '*',id:'*'},
{title: '/',id:'/'}, {title: '/',id:'/'},
] ]
@ -8388,7 +8388,8 @@ var X = window.X || {
"quotaname":"次数", "quotaname":"次数",
"relation":"and", //筛选关系 "relation":"and", //筛选关系
"type":"normal", "type":"normal",
"renameindicator":'' //重命名指标 "renameindicator":'', //重命名指标
"label_id":""
} }
] ]
data['events'] = arr; data['events'] = arr;
@ -8434,8 +8435,10 @@ var X = window.X || {
X.querycriteriapop(eventdata,'setgrouping',offset.left,offset.top+obj.height(),function(val){ X.querycriteriapop(eventdata,'setgrouping',offset.left,offset.top+obj.height(),function(val){
obj.html(val.id); obj.html(val.id);
console.log(val);
dataevent['eventName'] = val.name; dataevent['eventName'] = val.name;
dataevent['eventDesc'] = val.id; dataevent['eventDesc'] = val.id;
dataevent['label_id'] = val.label_id
// X.api("data_auth/load_filter_props","post",{event_name:val.name},function(val){ // X.api("data_auth/load_filter_props","post",{event_name:val.name},function(val){
// groupitemeventsdata= val; // groupitemeventsdata= val;
// }) // })
@ -9293,12 +9296,13 @@ var X = window.X || {
}) })
}); });
}, },
eventmanagementlist : function(){ eventmanagementlist : function(){
X.laytabledata("#eventmanagement-table","data_mana/event_list",[[ X.laytabledata("#eventmanagement-table","data_mana/event_list",[[
{field:'name', title: '事件名', sort: true} {field:'name', title: '事件名', sort: true}
,{field:'show_name', title: '显示名'} ,{field:'show_name', title: '显示名'}
,{field:'label_id', title: '分析标签'}
,{field:'desc', title: '备注'} ,{field:'desc', title: '备注'}
,{field:'is_show', title: '显示状态', minWidth: 100,templet:function(d){ ,{field:'is_show', title: '显示状态', minWidth: 100,templet:function(d){
if(d.is_show){ if(d.is_show){
@ -11718,6 +11722,19 @@ var X = window.X || {
}); });
}
};
})();
// srczip/logic/nodedetails.js
(function(){
X.pageLogic['nodedetails'] = {
init : function(parms){
var me = this;
var me = this;
this.parms = parms;
this.callback = parms.callback;
} }
}; };
})(); })();
@ -11915,7 +11932,8 @@ var X = window.X || {
layui.form.val('personalsettingseditexample', { layui.form.val('personalsettingseditexample', {
"show_name": data.show_name // "name": "value" "show_name": data.show_name // "name": "value"
,"desc": data.desc ,"desc": data.desc
,"is_show":(data.is_show)? 1 : 0 ,"is_show":(data.is_show)? 1 : 0,
"label_id": data.label_id
}); });
}else { }else {
@ -13713,7 +13731,15 @@ var X = window.X || {
//计算按钮 //计算按钮
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){ $(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
calculationdata(); // calculationdata();
X.open({
type: 1,
title: false,
closeBtn: 0,
shadeClose: true,
skin: 'yourclass',
url: 'nodedetails'
})
}); });
@ -13829,6 +13855,15 @@ var X = window.X || {
myChart.on('click', function (params) { myChart.on('click', function (params) {
console.log(params); console.log(params);
}); });
// 跳转节点详情弹窗
myChart.on('click', function (params) {
// console.log(params);
});
}; };
// 返回 // 返回
@ -14451,7 +14486,8 @@ var X = window.X || {
'name':$(this).attr('data-name'), 'name':$(this).attr('data-name'),
'id':$(this).attr('data-id'), 'id':$(this).attr('data-id'),
'event_attr':data[index]['category'][indexs].event_attr, 'event_attr':data[index]['category'][indexs].event_attr,
'event_filter':data[index]['category'][indexs].event_filter 'event_filter':data[index]['category'][indexs].event_filter,
'label_id': $(this).attr("data-label")
} }
me.callback && me.callback(valdata); me.callback && me.callback(valdata);

View File

@ -127,7 +127,7 @@ var X = window.X || {
"operatorarr": [ "operatorarr": [
{title: '无',id:""}, {title: '无',id:""},
{title: '+',id:'+'}, {title: '+',id:'+'},
{title: '-',id:'-'}, {title: '-',id:'-'},
{title: '*',id:'*'}, {title: '*',id:'*'},
{title: '/',id:'/'}, {title: '/',id:'/'},
] ]

View File

@ -110,7 +110,8 @@
"quotaname":"次数", "quotaname":"次数",
"relation":"and", //筛选关系 "relation":"and", //筛选关系
"type":"normal", "type":"normal",
"renameindicator":'' //重命名指标 "renameindicator":'', //重命名指标
"label_id":""
} }
] ]
data['events'] = arr; data['events'] = arr;
@ -156,8 +157,10 @@
X.querycriteriapop(eventdata,'setgrouping',offset.left,offset.top+obj.height(),function(val){ X.querycriteriapop(eventdata,'setgrouping',offset.left,offset.top+obj.height(),function(val){
obj.html(val.id); obj.html(val.id);
console.log(val);
dataevent['eventName'] = val.name; dataevent['eventName'] = val.name;
dataevent['eventDesc'] = val.id; dataevent['eventDesc'] = val.id;
dataevent['label_id'] = val.label_id
// X.api("data_auth/load_filter_props","post",{event_name:val.name},function(val){ // X.api("data_auth/load_filter_props","post",{event_name:val.name},function(val){
// groupitemeventsdata= val; // groupitemeventsdata= val;
// }) // })

View File

@ -21,12 +21,13 @@
}) })
}); });
}, },
eventmanagementlist : function(){ eventmanagementlist : function(){
X.laytabledata("#eventmanagement-table","data_mana/event_list",[[ X.laytabledata("#eventmanagement-table","data_mana/event_list",[[
{field:'name', title: '事件名', sort: true} {field:'name', title: '事件名', sort: true}
,{field:'show_name', title: '显示名'} ,{field:'show_name', title: '显示名'}
,{field:'label_id', title: '分析标签'}
,{field:'desc', title: '备注'} ,{field:'desc', title: '备注'}
,{field:'is_show', title: '显示状态', minWidth: 100,templet:function(d){ ,{field:'is_show', title: '显示状态', minWidth: 100,templet:function(d){
if(d.is_show){ if(d.is_show){

View File

@ -10,7 +10,8 @@
layui.form.val('personalsettingseditexample', { layui.form.val('personalsettingseditexample', {
"show_name": data.show_name // "name": "value" "show_name": data.show_name // "name": "value"
,"desc": data.desc ,"desc": data.desc
,"is_show":(data.is_show)? 1 : 0 ,"is_show":(data.is_show)? 1 : 0,
"label_id": data.label_id
}); });
}else { }else {

View File

@ -400,7 +400,15 @@
//计算按钮 //计算按钮
$(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){ $(document).off('click','.analysis-calculation').on('click','.analysis-calculation',function(){
calculationdata(); // calculationdata();
X.open({
type: 1,
title: false,
closeBtn: 0,
shadeClose: true,
skin: 'yourclass',
url: 'nodedetails'
})
}); });
@ -516,6 +524,15 @@
myChart.on('click', function (params) { myChart.on('click', function (params) {
console.log(params); console.log(params);
}); });
// 跳转节点详情弹窗
myChart.on('click', function (params) {
// console.log(params);
});
}; };
// 返回 // 返回

View File

@ -51,7 +51,8 @@
'name':$(this).attr('data-name'), 'name':$(this).attr('data-name'),
'id':$(this).attr('data-id'), 'id':$(this).attr('data-id'),
'event_attr':data[index]['category'][indexs].event_attr, 'event_attr':data[index]['category'][indexs].event_attr,
'event_filter':data[index]['category'][indexs].event_filter 'event_filter':data[index]['category'][indexs].event_filter,
'label_id': $(this).attr("data-label")
} }
me.callback && me.callback(valdata); me.callback && me.callback(valdata);