xfrontend/web/srczip/logic/retained.js

74 lines
2.6 KiB
JavaScript

(function(){
X.pageLogic['retained'] = {
init : function(){
// X.gourl("grouped","shushi");
X.template("grouped","shushi");
var data ={
"events": [
{
"event_name": "create_role",
"event_attr": "总次数",
"event_attr_id": "*",
"analysisname": "",
"analysis": "total_count",
"renameindicator": "",
"filters": [],
"condrelation": "and"
}
],
"eventView": {
"startTime": "2021-05-01 00:00:00",
"timeParticleSize": "P1D",
"endTime": "2021-05-19 23:59:59",
"graphShape": "L0",
"recentDay": "1-30",
"groupBy": [
{
"column_name": "#account_id",
"column_id": "#account_id",
"data_type": "string",
"table_type": "event",
"ftv": "",
"section": ""
},
{
"column_name": "#app_id",
"column_id": "#app_id",
"data_type": "string",
"table_type": "event",
"ftv": "",
"section": ""
}
],
"uiCommonConfig": {
"tableSorts": [],
"chartSort": "num-desc"
},
"filters": [],
"relation": 1,
"zone_time": "8"
},
}
X.grouped(data['eventView']['groupBy'],"#shushi")
$(document).off('click','.analysis-calculation').on("click",'.analysis-calculation',function(){
console.log(211);
})
$(document).off('click','.analysis-action-right').on('click','.analysis-action-right',function() {
console.log(111);
})
$(document).off('click','.analysis-footadd___2D4YB').on('click','.analysis-footadd___2D4YB',function() {
var data= [
{},{}
]
X.laytpldata("#analysis-con-left-screen-box-dot",data,"#shushi");
})
}
};
})();