hqchart 1.1.14064 → 1.1.14072

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3980,7 +3980,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
3980
3980
 
3981
3981
  //改参数div
3982
3982
  this.ModifyIndexDialog=new ModifyIndexDialog(divElement);
3983
- this.ChangeIndexDialog=new ChangeIndexDialog(divElement);
3984
3983
 
3985
3984
  //额外的画布
3986
3985
  this.MapExtraCanvasElement=new Map(); //key=画布名字, value={ Element:, Canvas:}
@@ -4216,7 +4215,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4216
4215
 
4217
4216
  //创建改参数div
4218
4217
  chart.ModifyIndexDialog=this.ModifyIndexDialog;
4219
- chart.ChangeIndexDialog=this.ChangeIndexDialog;
4220
4218
 
4221
4219
  var pixelRatio=GetDevicePixelRatio();
4222
4220
 
@@ -4669,7 +4667,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4669
4667
 
4670
4668
  //创建改参数div
4671
4669
  chart.ModifyIndexDialog=this.ModifyIndexDialog;
4672
- chart.ChangeIndexDialog=this.ChangeIndexDialog;
4673
4670
 
4674
4671
  //右键菜单
4675
4672
  if (IFrameSplitOperator.IsBool(option.IsShowRightMenu)) chart.IsShowRightMenu=option.IsShowRightMenu;
@@ -4772,7 +4769,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4772
4769
  if (option.NetworkFilter) chart.NetworkFilter=option.NetworkFilter;
4773
4770
 
4774
4771
  chart.ModifyIndexDialog=this.ModifyIndexDialog;
4775
- chart.ChangeIndexDialog=this.ChangeIndexDialog;
4776
4772
 
4777
4773
  var pixelRatio=GetDevicePixelRatio();
4778
4774
 
@@ -5354,7 +5350,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
5354
5350
 
5355
5351
  //创建改参数div
5356
5352
  chart.ModifyIndexDialog=this.ModifyIndexDialog;
5357
- chart.ChangeIndexDialog=this.ChangeIndexDialog;
5358
5353
 
5359
5354
  if (option.ScriptError) chart.ScriptErrorCallback=option.ScriptError;
5360
5355
 
@@ -5651,9 +5646,10 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
5651
5646
  chart.InitalFloatTooltip(option.FloatTooltip);
5652
5647
 
5653
5648
  if (option.SelectRectDialog && option.SelectRectDialog.Enable)
5654
- {
5655
5649
  chart.InitalSelectRectDialog(option.SelectRectDialog);
5656
- }
5650
+
5651
+ if (option.SearchIndexDialog && option.SearchIndexDialog.Enable)
5652
+ chart.InitalSearchIndexDialog(option.SearchIndexDialog);
5657
5653
 
5658
5654
  //注册事件
5659
5655
  if (option.EventCallback)
@@ -6368,6 +6364,12 @@ JSChart.GetScrollPosition=function()
6368
6364
  return GetScrollPosition();
6369
6365
  }
6370
6366
 
6367
+ //品种小数位数
6368
+ JSChart.GetfloatPrecision=function(symbol)
6369
+ {
6370
+ return GetfloatPrecision(symbol);
6371
+ }
6372
+
6371
6373
 
6372
6374
 
6373
6375
 
@@ -6971,6 +6973,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
6971
6973
  this.DialogTooltip; //tooltip信息
6972
6974
  this.DialogSelectRect; //区间统计
6973
6975
  this.FloatTooltip; //浮动tooltip信息
6976
+ this.DialogSearchIndex; //指标搜索
6974
6977
 
6975
6978
 
6976
6979
  this.ClearStockCache=function()
@@ -7031,6 +7034,34 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7031
7034
  this.DialogSelectRect.Create();
7032
7035
  }
7033
7036
 
7037
+ this.InitalSearchIndexDialog=function(option)
7038
+ {
7039
+ if (this.DialogSearchIndex) return;
7040
+
7041
+ this.DialogSearchIndex=new JSDialogSearchIndex();
7042
+ this.DialogSearchIndex.Inital(this, option);
7043
+ this.DialogSearchIndex.Create();
7044
+ }
7045
+
7046
+ this.ShowChangeIndexDialog=function(data)
7047
+ {
7048
+ if (!data) return;
7049
+ if (!this.DialogSearchIndex) return;
7050
+
7051
+ data.Title=`切换指标 [窗口${data.WindowIndex+1}]`;
7052
+ this.DialogSearchIndex.SetOpData(data);
7053
+ this.DialogSearchIndex.Show();
7054
+ }
7055
+
7056
+ this.ShowAddOverlayIndexDialog=function(data)
7057
+ {
7058
+ if (!data) return;
7059
+ if (!this.DialogSearchIndex) return;
7060
+
7061
+ data.Title=`添加叠加指标 [窗口${data.WindowIndex+1}]`;
7062
+ this.DialogSearchIndex.SetOpData(data);
7063
+ this.DialogSearchIndex.Show();
7064
+ }
7034
7065
 
7035
7066
 
7036
7067
  this.DrawSelectRectDialog=function()
@@ -7129,6 +7160,14 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7129
7160
  this.FloatTooltip=null;
7130
7161
  }
7131
7162
 
7163
+ this.DestroySearchIndexDialog=function()
7164
+ {
7165
+ if (!this.DialogSearchIndex) return;
7166
+
7167
+ this.DialogSearchIndex.Destroy();
7168
+ this.DialogSearchIndex=null;
7169
+ }
7170
+
7132
7171
 
7133
7172
 
7134
7173
  //obj={ Element:, Canvas: }
@@ -7182,6 +7221,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7182
7221
  this.StopAutoUpdate();
7183
7222
  this.DestroyTooltipDialog();
7184
7223
  this.DestroyFloatTooltip();
7224
+ this.DestroySearchIndexDialog();
7185
7225
  }
7186
7226
 
7187
7227
  this.ChartDestory=this.ChartDestroy; //老版本写错了,需要兼容下
@@ -12164,6 +12204,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
12164
12204
  if (this.DialogTooltip) this.DialogTooltip.ReloadResource(option);
12165
12205
  if (this.FloatTooltip) this.FloatTooltip.ReloadResource(option);
12166
12206
  if (this.DialogSelectRect) this.DialogSelectRect.ReloadResource(option);
12207
+ if (this.DialogSearchIndex) this.DialogSearchIndex.ReloadResource(option);
12167
12208
  }
12168
12209
 
12169
12210
  this.ReloadBorder=function(option) //根据页面缩放调整对应边框的尺长
@@ -17797,7 +17838,6 @@ function MinuteFrame()
17797
17838
  this.OverlayIndex=g_JSChartResource.MinuteToolbar.OverlayIndex; //是否显示叠加指标
17798
17839
 
17799
17840
  this.ModifyIndexEvent; //改参数 点击事件
17800
- this.ChangeIndexEvent; //换指标 点击事件
17801
17841
  this.ToolbarRect=null; //保存工具条的位置
17802
17842
  this.IsShowPositionTitle=false; //是否显示持仓标题
17803
17843
 
@@ -20227,7 +20267,6 @@ function KLineFrame()
20227
20267
  this.SelBorderColor=g_JSChartResource.SelFrameBorderColor;
20228
20268
 
20229
20269
  this.ModifyIndexEvent; //改参数 点击事件
20230
- this.ChangeIndexEvent; //换指标 点击事件
20231
20270
  this.ToolbarRect=null; //保存工具条的位置
20232
20271
  this.ReDrawToolbar=false;
20233
20272
 
@@ -73188,6 +73227,19 @@ function JSChartResource()
73188
73227
  }
73189
73228
  };
73190
73229
 
73230
+ //指标搜索
73231
+ this.DialogSearchIndex=
73232
+ {
73233
+ BGColor:'rgb(250,250,250)', //背景色
73234
+ BorderColor:'rgb(20,20,20)', //边框颜色
73235
+ TitleColor:'rgb(250,250,250)', //标题颜色
73236
+ TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
73237
+
73238
+ IndexNameColor:"rgb(0,0,0)", //数值名称
73239
+ GroupNameColor:"rgb(0,0,0)",
73240
+ InputTextColor:"rgb(0,0,0)"
73241
+ };
73242
+
73191
73243
  //弹幕
73192
73244
  this.Barrage= {
73193
73245
  Font:16*GetDevicePixelRatio() +'px 微软雅黑', //字体
@@ -74253,6 +74305,20 @@ function JSChartResource()
74253
74305
  }
74254
74306
  }
74255
74307
 
74308
+ if (style.DialogSearchIndex)
74309
+ {
74310
+ var item=style.DialogSearchIndex;
74311
+
74312
+ if (item.BGColor) this.DialogSearchIndex.BGColor=item.BGColor;
74313
+ if (item.BorderColor) this.DialogSearchIndex.BorderColor=item.BorderColor;
74314
+ if (item.TitleColor) this.DialogSearchIndex.TitleColor=item.TitleColor;
74315
+ if (item.TitleBGColor) this.DialogSearchIndex.TitleBGColor=item.TitleBGColor;
74316
+
74317
+ if (item.IndexNameColor) this.DialogSearchIndex.IndexNameColor=item.IndexNameColor;
74318
+ if (item.GroupNameColor) this.DialogSearchIndex.GroupNameColor=item.GroupNameColor;
74319
+ if (item.InputTextColor) this.DialogSearchIndex.InputTextColor=item.InputTextColor;
74320
+ }
74321
+
74256
74322
  if (style.MinuteInfo)
74257
74323
  {
74258
74324
  var item=style.MinuteInfo;
@@ -77337,7 +77403,6 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
77337
77403
  frame.GlobalOption=this.GlobalOption;
77338
77404
 
77339
77405
  if (this.ModifyIndexDialog) frame.ModifyIndexEvent=this.ModifyIndexDialog.DoModal; //绑定菜单事件
77340
- if (this.ChangeIndexDialog) frame.ChangeIndexEvent=this.ChangeIndexDialog.DoModal;
77341
77406
 
77342
77407
  frame.HorizontalMax=20;
77343
77408
  frame.HorizontalMin=10;
@@ -77422,7 +77487,6 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
77422
77487
  frame.GlobalOption=this.GlobalOption;
77423
77488
 
77424
77489
  if (this.ModifyIndexDialog) frame.ModifyIndexEvent=this.ModifyIndexDialog.DoModal; //绑定菜单事件
77425
- if (this.ChangeIndexDialog) frame.ChangeIndexEvent=this.ChangeIndexDialog.DoModal;
77426
77490
 
77427
77491
  frame.HorizontalMax=20;
77428
77492
  frame.HorizontalMin=10;
@@ -83420,9 +83484,13 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
83420
83484
  else if (button.ID==JSCHART_BUTTON_ID.CHANGE_INDEX)
83421
83485
  {
83422
83486
  var frame=button.Frame;
83487
+ var sendData={ e:e, WindowIndex:frame.Identify, OpType:1 };
83488
+ this.ShowChangeIndexDialog(sendData);
83489
+ /*
83423
83490
  e.data={ Chart:this, Identify:frame.Identify, IsOverlay:false };
83424
83491
  if (frame.ChangeIndexEvent)
83425
83492
  frame.ChangeIndexEvent(e);
83493
+ */
83426
83494
  }
83427
83495
  else if (button.ID==JSCHART_BUTTON_ID.MODIFY_INDEX_PARAM)
83428
83496
  {
@@ -83434,9 +83502,13 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
83434
83502
  else if (button.ID==JSCHART_BUTTON_ID.OVERLAY_INDEX)
83435
83503
  {
83436
83504
  var frame=button.Frame;
83505
+ var sendData={ e:e, WindowIndex:frame.Identify, OpType:2 };
83506
+ this.ShowAddOverlayIndexDialog(sendData);
83507
+ /*
83437
83508
  e.data={ Chart:this, Identify:frame.Identify, IsOverlay:true };
83438
83509
  if (frame.ChangeIndexEvent)
83439
83510
  frame.ChangeIndexEvent(e);
83511
+ */
83440
83512
  }
83441
83513
  else if (button.ID==JSCHART_BUTTON_ID.MAX_MIN_WINDOW)
83442
83514
  {
@@ -84249,9 +84321,8 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
84249
84321
  else if (button.ID==JSCHART_BUTTON_ID.CHANGE_INDEX)
84250
84322
  {
84251
84323
  var frame=button.Frame;
84252
- e.data={ Chart:this, Identify:frame.Identify, IsOverlay:false };
84253
- if (frame.ChangeIndexEvent)
84254
- frame.ChangeIndexEvent(e);
84324
+ var sendData={ e:e, WindowIndex:frame.Identify, OpType:1 };
84325
+ this.ShowChangeIndexDialog(sendData);
84255
84326
  }
84256
84327
  else if (button.ID==JSCHART_BUTTON_ID.MODIFY_INDEX_PARAM)
84257
84328
  {
@@ -84263,9 +84334,8 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
84263
84334
  else if (button.ID==JSCHART_BUTTON_ID.OVERLAY_INDEX)
84264
84335
  {
84265
84336
  var frame=button.Frame;
84266
- e.data={ Chart:this, Identify:frame.Identify, IsOverlay:true };
84267
- if (frame.ChangeIndexEvent)
84268
- frame.ChangeIndexEvent(e);
84337
+ var sendData={ e:e, WindowIndex:frame.Identify, OpType:2 };
84338
+ this.ShowAddOverlayIndexDialog(sendData);
84269
84339
  }
84270
84340
  else if (button.ID==JSCHART_BUTTON_ID.MAX_MIN_WINDOW)
84271
84341
  {
@@ -86027,7 +86097,6 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
86027
86097
  if (i>=2)
86028
86098
  {
86029
86099
  if (this.ModifyIndexDialog) frame.ModifyIndexEvent=this.ModifyIndexDialog.DoModal; //绑定菜单事件
86030
- if (this.ChangeIndexDialog) frame.ChangeIndexEvent=this.ChangeIndexDialog.DoModal;
86031
86100
  }
86032
86101
 
86033
86102
  var DEFAULT_HORIZONTAL=[9,8,7,6,5,4,3,2,1];
@@ -86119,7 +86188,6 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
86119
86188
  if (id>=2)
86120
86189
  {
86121
86190
  if (this.ModifyIndexDialog) frame.ModifyIndexEvent=this.ModifyIndexDialog.DoModal; //绑定菜单事件
86122
- if (this.ChangeIndexDialog) frame.ChangeIndexEvent=this.ChangeIndexDialog.DoModal;
86123
86191
  }
86124
86192
 
86125
86193
  var DEFAULT_HORIZONTAL=[9,8,7,6,5,4,3,2,1];
@@ -91694,7 +91762,6 @@ function KLineChartHScreenContainer(uielement)
91694
91762
  frame.RightSpaceCount=this.RightSpaceCount; //右边
91695
91763
 
91696
91764
  if (this.ModifyIndexDialog) frame.ModifyIndexEvent=this.ModifyIndexDialog.DoModal; //绑定菜单事件
91697
- if (this.ChangeIndexDialog) frame.ChangeIndexEvent=this.ChangeIndexDialog.DoModal;
91698
91765
 
91699
91766
  frame.HorizontalMax=20;
91700
91767
  frame.HorizontalMin=10;
@@ -94524,266 +94591,6 @@ function ModifyIndexDialog(divElement)
94524
94591
  }
94525
94592
  }
94526
94593
 
94527
- //换指标
94528
- function ChangeIndexDialog(divElement)
94529
- {
94530
- this.newMethod=IDivDialog; //派生
94531
- this.newMethod(divElement);
94532
- delete this.newMethod;
94533
-
94534
- this.DivElement=divElement; //父节点
94535
- //this.IndexTreeApiUrl="../commonindextree.json"; //数据下载地址
94536
- //this.OverlayIndexTreeApiUrl="../commonindextree.json"; //叠加指标列表数据下载地址
94537
- this.IsOverlayIndex=false;
94538
-
94539
- this.Create=function()
94540
- {
94541
- var div=document.createElement('div');
94542
- div.className='jchart-changeindex-box';
94543
- div.id=this.ID=Guid();
94544
- div.innerHTML=
94545
- '<div class="target-panel">\n' +
94546
- ' <div class="target-header">\n' +
94547
- ' <span>换指标</span>\n' +
94548
- ' <strong class="close-tar icon iconfont icon-close"></strong>\n' +
94549
- ' </div>\n' +
94550
- ' <div class="target-content">\n' +
94551
- ' <div class="target-left">\n' +
94552
- ' <input type="text">\n' +
94553
- ' <ul></ul>\n' +
94554
- ' </div>\n' +
94555
- ' <div class="target-right">\n' +
94556
- ' <ul></ul>\n' +
94557
- ' </div>\n' +
94558
- ' </div>\n' +
94559
- ' </div>';
94560
-
94561
- this.DivElement.appendChild(div);
94562
- }
94563
-
94564
- //指标菜单内容
94565
- this.GetMenuData=function()
94566
- {
94567
- var data={
94568
- "name":"页面通用版指标树",
94569
- "list":
94570
- [
94571
- {
94572
- "node":"超买超卖型",
94573
- "list":
94574
- [
94575
- {"name":"ADTM 动态买卖气指标", "id":"ADTM"},
94576
- {"name":"BIAS 乖离率", "id":"BIAS"},
94577
- {"name":"BIAS36 三六乖离", "id":"BIAS36"},
94578
- {"name":"BIAS_QL 乖离率-传统版", "id":"BIAS_QL"},
94579
- {"name":"CCI 商品路径指标", "id":"CCI"},
94580
- {"name":"FSL 分水岭", "id":"FSL"},
94581
- {"name":"KDJ 随机指标", "id":"KDJ"},
94582
- {"name":"MTM 动量线", "id":"MTM"},
94583
- {"name":"OSC 变动速率线", "id":"OSC"},
94584
- {"name":"RSI 相对强弱指标", "id":"RSI"},
94585
- {"name":"ROC 变动率指标", "id":"ROC"},
94586
- {"name":"WR 威廉指标", "id":"WR"}
94587
- ]
94588
- },
94589
- {
94590
- "node":"趋势型",
94591
- "list":
94592
- [
94593
- {"name":"CHO 济坚指数", "id":"CHO"},
94594
- {"name":"DMA 平均差", "id":"DMA"},
94595
- {"name":"DMI 趋向指标", "id":"DMI"},
94596
- {"name":"EMV 简易波动指标", "id":"EMV"},
94597
- {"name":"MACD 平滑异同平均", "id":"MACD"},
94598
- {"name":"TRIX 三重指数平均线", "id":"TRIX"},
94599
- {"name":"UOS 终极指标", "id":"UOS"},
94600
- {"name":"TRIX 三重指数平均线", "id":"TRIX"}
94601
- ]
94602
- },
94603
- {
94604
- "node":"成交量型",
94605
- "list":
94606
- [
94607
- {"name":"HSL 换手率", "id":"HSL"},
94608
- {"name":"OBV 累积能量线", "id":"OBV"},
94609
- {"name":"NVI 负成交量", "id":"NVI"},
94610
- {"name":"PVI 正成交量", "id":"PVI"},
94611
- {"name":"VOL 成交量", "id":"VOL"}
94612
- ]
94613
- },
94614
- {
94615
- "node":"均线型",
94616
- "list":
94617
- [
94618
- {"name":"MA 均线", "id":"均线"},
94619
- {"name":"BBI 多空线", "id":"BBI"}
94620
- ]
94621
- },
94622
- {
94623
- "node":"路径型",
94624
- "list":
94625
- [
94626
- {"name":"BOLL 布林线", "id":"BOLL"},
94627
- {"name":"BOLL副图 布林线", "id":"BOLL副图"},
94628
- {"name":"MIKE 麦克支撑压力", "id":"MIKE"},
94629
- {"name":"ENE 轨道线", "id":"ENE"}
94630
- ]
94631
- },
94632
- {
94633
- "node":"能量型",
94634
- "list":
94635
- [
94636
- {"name":"BRAR 情绪指标", "id":"BRAR"},
94637
- {"name":"CYR 市场强弱", "id":"CYR"},
94638
- {"name":"MASS 梅斯线", "id":"MASS"},
94639
- {"name":"PSY 心理线", "id":"PSY"},
94640
- {"name":"CR 带状能量线", "id":"CR"},
94641
- {"name":"VR 成交量变异率", "id":"VR"},
94642
- {"name":"WAD 威廉多空力度线", "id":"WAD"}
94643
- ]
94644
- }
94645
-
94646
- ]
94647
- };
94648
-
94649
- return data;
94650
- }
94651
-
94652
- //下载数据 如果上次下载过可以 可以不用下载
94653
- this.ReqeustData=function()
94654
- {
94655
- if($("#" + this.ID + " .target-left ul li").length>0){
94656
- return false;
94657
- }
94658
-
94659
- var res=this.GetMenuData();
94660
- var item = res.list;
94661
- changeIndexLeftList(item); //处理左侧list列表
94662
- changeIndexRightList(item); //处理右侧内容列表
94663
-
94664
- /*
94665
- var url = this.IndexTreeApiUrl;
94666
- if (this.IsOverlayIndex==true) url=this.OverlayIndexTreeApiUrl;
94667
- JSNetwork.HttpRequest({
94668
- url: url,
94669
- type: 'get',
94670
- success: function (res) {
94671
- var item = res.list;
94672
- changeIndexLeftList(item); //处理左侧list列表
94673
- changeIndexRightList(item); //处理右侧内容列表
94674
- }
94675
- });
94676
- */
94677
-
94678
- //处理左侧list列表
94679
- function changeIndexLeftList(item) {
94680
- $(".target-left ul").html('');
94681
- $.each(item,function(i,result){
94682
- var htmlList;
94683
- htmlList = '<li>' + result.node + '</li>';
94684
- $(".target-left ul").append(htmlList);
94685
- });
94686
- //默认选中第一项
94687
- $(".target-left ul li:first-child").addClass("active-list");
94688
- }
94689
- //处理右侧内容列表
94690
- function changeIndexRightList(listNum) {
94691
- var contentHtml;
94692
- var conData = [];
94693
- $.each(listNum,function(index,result){
94694
- conData.push(result.list);
94695
- })
94696
- //页面初始化时显示第一个列表分类下的内容
94697
- $.each(conData[0],function (i, res) {
94698
- contentHtml = '<li id='+res.id+'>'+ res.name +'</li>';
94699
- $(".target-right ul").append(contentHtml);
94700
- })
94701
- //切换list
94702
- $(".target-left ul").delegate("li","click",function () {
94703
- $(this).addClass("active-list").siblings().removeClass("active-list");
94704
- var item = $(this).index();
94705
- $(".target-right ul").html("");
94706
- $.each(conData[item],function (i, res) {
94707
- contentHtml = '<li id='+res.id+'>'+ res.name +'</li>';
94708
- $(".target-right ul").append(contentHtml);
94709
- })
94710
- })
94711
- }
94712
- }
94713
-
94714
- this.BindClose=function(chart)
94715
- {
94716
- //关闭按钮
94717
- $("#"+this.ID+" .close-tar").click(
94718
- {
94719
- Chart:chart,
94720
- },
94721
- function(event)
94722
- {
94723
- var chart=event.data.Chart;
94724
- chart.ChangeIndexDialog.Hide();
94725
- }
94726
- );
94727
- }
94728
-
94729
- //搜索事件
94730
- this.BindSearch=function(chart)
94731
- {
94732
- $(".target-left input").on('input',
94733
- {
94734
- Chart:chart
94735
- },
94736
- function(event)
94737
- {
94738
- let scriptData = new JSIndexScript();
94739
- let result=scriptData.Search(event.target.value);
94740
-
94741
- $(".target-right ul").html("");
94742
- for(var i in result)
94743
- {
94744
- var name=result[i];
94745
- var contentHtml = '<li id='+name+'>'+ name +'</li>';
94746
- $(".target-right ul").append(contentHtml);
94747
- }
94748
-
94749
- }
94750
- );
94751
- }
94752
-
94753
- this.DoModal=function(event)
94754
- {
94755
- var chart=event.data.Chart;
94756
- var identify=event.data.Identify;
94757
- var dialog=chart.ChangeIndexDialog;
94758
- var isOverlay=event.data.IsOverlay; //是否叠加
94759
-
94760
- if(!dialog) return;
94761
-
94762
- if (dialog.ID==null) dialog.Create(); //第1次 需要创建div
94763
- dialog.IsOverlayIndex=isOverlay;
94764
- dialog.ReqeustData(); //下载数据
94765
-
94766
- //切换窗口指标类型 每次委托事件执行之前,先用undelegate()解除之前的所有绑定
94767
- changeIndeWindow();
94768
- function changeIndeWindow()
94769
- {
94770
- $(".target-right ul").undelegate().delegate("li","click",function () {
94771
- var idv = $(this).attr("id");
94772
- if (isOverlay)
94773
- chart.AddOverlayIndex({WindowIndex:identify,IndexName:idv});
94774
- else
94775
- chart.ChangeIndex(identify,idv);
94776
- $(this).addClass("active-list").siblings().removeClass("active-list");
94777
- });
94778
- }
94779
-
94780
- dialog.BindSearch(chart);
94781
- //关闭弹窗
94782
- dialog.BindClose(chart);
94783
- dialog.Show();
94784
- }
94785
- }
94786
-
94787
94594
  //等待动画窗口
94788
94595
  function WaitDialog(divElement)
94789
94596
  {
@@ -125358,6 +125165,17 @@ function GetBlackStyle()
125358
125165
  PositionColor:"rgb(255,0,255)" //持仓
125359
125166
  },
125360
125167
 
125168
+ DialogSearchIndex:
125169
+ {
125170
+ BGColor:'rgb(20,20,20)', //背景色
125171
+ BorderColor:'rgb(170,170,170)', //边框颜色
125172
+ TitleColor:'rgb(230,230,230)', //标题颜色
125173
+
125174
+ IndexNameColor:"rgb(210,210,210)",
125175
+ GroupNameColor:"rgb(210,210,210)",
125176
+ InputTextColor:"rgb(210,210,210)",
125177
+ },
125178
+
125361
125179
  DialogPopKeyboard:
125362
125180
  {
125363
125181
  BGColor:'rgb(20,20,20)', //背景色
@@ -139339,7 +139157,7 @@ function ScrollBarBGChart()
139339
139157
 
139340
139158
 
139341
139159
 
139342
- var HQCHART_VERSION="1.1.14063";
139160
+ var HQCHART_VERSION="1.1.14071";
139343
139161
 
139344
139162
  function PrintHQChartVersion()
139345
139163
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.14063";
8
+ var HQCHART_VERSION="1.1.14071";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {