From 38671a68400df6e9c2aa4e13af1ca4bda84bbe66 Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Fri, 28 May 2021 10:42:55 +0800 Subject: [PATCH] 111 --- web/pages/analysis.html | 3 +++ web/src/x.min.js | 9 ++++++++ web/srczip/logic/analysis.js | 9 ++++++++ web/static/img/iconfont/demo_index.html | 29 +++++++++++++++++++++--- web/static/img/iconfont/iconfont.css | 10 +++++--- web/static/img/iconfont/iconfont.js | 2 +- web/static/img/iconfont/iconfont.json | 7 ++++++ web/static/img/iconfont/iconfont.ttf | Bin 2312 -> 2708 bytes web/static/img/iconfont/iconfont.woff | Bin 1576 -> 1868 bytes web/static/img/iconfont/iconfont.woff2 | Bin 1132 -> 1396 bytes 10 files changed, 62 insertions(+), 7 deletions(-) diff --git a/web/pages/analysis.html b/web/pages/analysis.html index 126f8d3..112121e 100644 --- a/web/pages/analysis.html +++ b/web/pages/analysis.html @@ -21,6 +21,9 @@
+
+ +
diff --git a/web/src/x.min.js b/web/src/x.min.js index e35c1f3..c1d51ad 100644 --- a/web/src/x.min.js +++ b/web/src/x.min.js @@ -1335,6 +1335,15 @@ var X = window.X || { }) }) + // sql语句显示 + $(document).off('click','.sqlquery').on('click','.sqlquery',function(){ + // console.log(1111) + X.api('ck/event_model_sql','post',data,function(d){ + console.log(data); + console.log(d[0]['sql']); + }) + }) + // 切换为指标公式 $(document).on('click','.analysis-gongshi',function(){ var index = $(this).attr("data-index"); diff --git a/web/srczip/logic/analysis.js b/web/srczip/logic/analysis.js index 5723db7..d020cf0 100644 --- a/web/srczip/logic/analysis.js +++ b/web/srczip/logic/analysis.js @@ -151,6 +151,15 @@ }) }) + // sql语句显示 + $(document).off('click','.sqlquery').on('click','.sqlquery',function(){ + // console.log(1111) + X.api('ck/event_model_sql','post',data,function(d){ + console.log(data); + console.log(d[0]['sql']); + }) + }) + // 切换为指标公式 $(document).on('click','.analysis-gongshi',function(){ var index = $(this).attr("data-index"); diff --git a/web/static/img/iconfont/demo_index.html b/web/static/img/iconfont/demo_index.html index 11dac9a..d8a4914 100644 --- a/web/static/img/iconfont/demo_index.html +++ b/web/static/img/iconfont/demo_index.html @@ -54,6 +54,12 @@