hqchart 1.1.14108 → 1.1.14116
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.
- package/lib/umychart.NetworkFilterTest.vue.js +8 -5
- package/lib/umychart.vue.js +89 -46
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogTooltip.js +7 -3
- package/src/jscommon/umychart.NetworkFilterTest.js +120 -106
- package/src/jscommon/umychart.PopMinuteChart.js +278 -8
- package/src/jscommon/umychart.js +16 -4
- package/src/jscommon/umychart.report.js +86 -3
- package/src/jscommon/umychart.resource/css/tools.css +33 -1
- package/src/jscommon/umychart.style.js +1 -1
- package/src/jscommon/umychart.testdata.js +120 -106
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +104 -9
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.NetworkFilterTest.vue.js +120 -106
- package/src/jscommon/umychart.vue/umychart.vue.js +389 -20
package/src/jscommon/umychart.js
CHANGED
|
@@ -10022,7 +10022,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
10022
10022
|
if (srcParam)
|
|
10023
10023
|
{
|
|
10024
10024
|
this.DestroyPopMinuteChart();
|
|
10025
|
-
this.InitalPopMinuteChart( {
|
|
10025
|
+
this.InitalPopMinuteChart( { PopMinuteChart:{ Enable:true }} );
|
|
10026
10026
|
}
|
|
10027
10027
|
else
|
|
10028
10028
|
{
|
|
@@ -68749,6 +68749,9 @@ function JSChartResource()
|
|
|
68749
68749
|
{
|
|
68750
68750
|
BGColor:"rgba(250,250,250,0.95)",
|
|
68751
68751
|
BorderColor:"rgb(0,0,0)",
|
|
68752
|
+
|
|
68753
|
+
TitleColor:'rgb(250,250,250)', //标题颜色
|
|
68754
|
+
TitleBGColor:"rgb(200, 66, 69)", //标题背景颜色
|
|
68752
68755
|
}
|
|
68753
68756
|
|
|
68754
68757
|
this.SelectRectBGColor="rgba(1,130,212,0.06)"; //背景色
|
|
@@ -70250,6 +70253,8 @@ function JSChartResource()
|
|
|
70250
70253
|
var item=style.PopMinuteChart;
|
|
70251
70254
|
if (item.BGColor) this.PopMinuteChart.BGColor=item.BGColor;
|
|
70252
70255
|
if (item.BorderColor) this.PopMinuteChart.BorderColor=item.BorderColor;
|
|
70256
|
+
if (item.TitleColor) this.DialogSearchIndex.TitleColor=item.TitleColor;
|
|
70257
|
+
if (item.TitleBGColor) this.DialogSearchIndex.TitleBGColor=item.TitleBGColor;
|
|
70253
70258
|
}
|
|
70254
70259
|
|
|
70255
70260
|
if (style.DefaultTextColor) this.DefaultTextColor = style.DefaultTextColor;
|
|
@@ -73421,9 +73426,16 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
73421
73426
|
|
|
73422
73427
|
this.InitalPopMinuteChart=function(option)
|
|
73423
73428
|
{
|
|
73424
|
-
if (!option
|
|
73425
|
-
|
|
73426
|
-
if (
|
|
73429
|
+
if (!option) return false;
|
|
73430
|
+
|
|
73431
|
+
if (option.PopMinuteChart && option.PopMinuteChart.Enable) //新的配置格式
|
|
73432
|
+
{
|
|
73433
|
+
var item=option.PopMinuteChart;
|
|
73434
|
+
this.PopMinuteChart=new JSPopMinuteChart();
|
|
73435
|
+
this.PopMinuteChart.Inital(this, item);
|
|
73436
|
+
return true;
|
|
73437
|
+
}
|
|
73438
|
+
else if (option.KLine && option.KLine.KLineDoubleClick===true) //旧的格式 不要使用了
|
|
73427
73439
|
{
|
|
73428
73440
|
this.PopMinuteChart=new JSPopMinuteChart();
|
|
73429
73441
|
this.PopMinuteChart.Inital(this);
|
|
@@ -160,6 +160,11 @@ function JSReportChart(divElement)
|
|
|
160
160
|
this.CreateExtraCanvasElement(JSReportChart.TooltipCursorCanvasKey, { ZIndex:99 });
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
if (option.MinuteChartTooltip && option.MinuteChartTooltip.Enable)
|
|
164
|
+
{
|
|
165
|
+
chart.InitalMinuteChartTooltip(option.MinuteChartTooltip);
|
|
166
|
+
}
|
|
167
|
+
|
|
163
168
|
if (option.Symbol) chart.Symbol=option.Symbol;
|
|
164
169
|
if (option.Name) chart.Name=option.Name;
|
|
165
170
|
|
|
@@ -482,6 +487,9 @@ function JSReportChartContainer(uielement)
|
|
|
482
487
|
this.JSPopMenu; //内置菜单
|
|
483
488
|
this.IsShowRightMenu=true;
|
|
484
489
|
|
|
490
|
+
//
|
|
491
|
+
this.TooltipMinuteChart; //分时图
|
|
492
|
+
|
|
485
493
|
//MouseOnStatus:{ RowIndex:行, ColumnIndex:列}
|
|
486
494
|
this.LastMouseStatus={ MoveStatus:null, TooltipStatus:null, MouseOnStatus:null };
|
|
487
495
|
|
|
@@ -489,6 +497,8 @@ function JSReportChartContainer(uielement)
|
|
|
489
497
|
{
|
|
490
498
|
this.IsDestroy=true;
|
|
491
499
|
this.StopAutoUpdate();
|
|
500
|
+
|
|
501
|
+
this.DestroyMinuteChartTooltip();
|
|
492
502
|
}
|
|
493
503
|
|
|
494
504
|
this.StopAutoDragScrollTimer=function()
|
|
@@ -510,6 +520,48 @@ function JSReportChartContainer(uielement)
|
|
|
510
520
|
this.JSPopMenu.Inital();
|
|
511
521
|
}
|
|
512
522
|
|
|
523
|
+
this.InitalMinuteChartTooltip=function(option)
|
|
524
|
+
{
|
|
525
|
+
if (this.TooltipMinuteChart) return;
|
|
526
|
+
|
|
527
|
+
this.TooltipMinuteChart=new JSTooltipMinuteChart();
|
|
528
|
+
this.TooltipMinuteChart.Inital(this, option);
|
|
529
|
+
this.TooltipMinuteChart.Create();
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
this.DestroyMinuteChartTooltip=function()
|
|
533
|
+
{
|
|
534
|
+
if (!this.TooltipMinuteChart) return;
|
|
535
|
+
|
|
536
|
+
this.TooltipMinuteChart.Destroy();
|
|
537
|
+
this.TooltipMinuteChart=null;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
//data={ Symbol }
|
|
541
|
+
this.ShowMinuteChartTooltip=function(x,y, data)
|
|
542
|
+
{
|
|
543
|
+
if (!this.TooltipMinuteChart) return;
|
|
544
|
+
|
|
545
|
+
var rtClient=this.UIElement.getBoundingClientRect();
|
|
546
|
+
var rtScroll=GetScrollPosition();
|
|
547
|
+
|
|
548
|
+
var offsetLeft=rtClient.left+rtScroll.Left;
|
|
549
|
+
var offsetTop=rtClient.top+rtScroll.Top;
|
|
550
|
+
|
|
551
|
+
data.Offset={ Left:offsetLeft, Top:offsetTop };
|
|
552
|
+
|
|
553
|
+
this.TooltipMinuteChart.Show(data, x,y);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
this.HideMinuteChartTooltip=function()
|
|
557
|
+
{
|
|
558
|
+
if (!this.TooltipMinuteChart) return;
|
|
559
|
+
|
|
560
|
+
this.TooltipMinuteChart.Hide();
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
513
565
|
this.AutoScrollPage=function(step)
|
|
514
566
|
{
|
|
515
567
|
this.AutoDragScrollTimer=setTimeout(() =>
|
|
@@ -1945,6 +1997,9 @@ function JSReportChartContainer(uielement)
|
|
|
1945
1997
|
var bDrawTooltip=false;
|
|
1946
1998
|
if (this.LastMouseStatus.TooltipStatus) bDrawTooltip=true;
|
|
1947
1999
|
this.LastMouseStatus.TooltipStatus=null;
|
|
2000
|
+
|
|
2001
|
+
var bShowChartTooltip=false;
|
|
2002
|
+
var chartTooltipData=null;
|
|
1948
2003
|
|
|
1949
2004
|
if (this.DragRow) return;
|
|
1950
2005
|
if (this.DrawHeader) return;
|
|
@@ -2015,8 +2070,19 @@ function JSReportChartContainer(uielement)
|
|
|
2015
2070
|
var tooltipData=report.GetTooltipData(x,y); //单元格提示信息
|
|
2016
2071
|
if (tooltipData)
|
|
2017
2072
|
{
|
|
2018
|
-
|
|
2019
|
-
|
|
2073
|
+
if (tooltipData.Type==20)
|
|
2074
|
+
{
|
|
2075
|
+
if (tooltipData.Stock && tooltipData.Stock.Symbol)
|
|
2076
|
+
{
|
|
2077
|
+
bShowChartTooltip=true;
|
|
2078
|
+
chartTooltipData={ Symbol:tooltipData.Stock.OriginalSymbol, Rect:tooltipData.Rect };
|
|
2079
|
+
}
|
|
2080
|
+
}
|
|
2081
|
+
else
|
|
2082
|
+
{
|
|
2083
|
+
this.LastMouseStatus.TooltipStatus={ X:x, Y:y, Data:tooltipData, ClientX:e.clientX, ClientY:e.clientY };
|
|
2084
|
+
bDrawTooltip=true;
|
|
2085
|
+
}
|
|
2020
2086
|
}
|
|
2021
2087
|
}
|
|
2022
2088
|
|
|
@@ -2047,6 +2113,15 @@ function JSReportChartContainer(uielement)
|
|
|
2047
2113
|
|
|
2048
2114
|
if (bDraw || bDrawTab) this.Draw();
|
|
2049
2115
|
else if (bDrawTooltip) this.DrawTooltip(this.LastMouseStatus.TooltipStatus);
|
|
2116
|
+
|
|
2117
|
+
if (bShowChartTooltip)
|
|
2118
|
+
{
|
|
2119
|
+
this.ShowMinuteChartTooltip(null, null, chartTooltipData);
|
|
2120
|
+
}
|
|
2121
|
+
else
|
|
2122
|
+
{
|
|
2123
|
+
this.HideMinuteChartTooltip();
|
|
2124
|
+
}
|
|
2050
2125
|
}
|
|
2051
2126
|
|
|
2052
2127
|
this.UIOnMounseOut=function(e)
|
|
@@ -4497,7 +4572,7 @@ function ChartReport()
|
|
|
4497
4572
|
this.RectClient={};
|
|
4498
4573
|
|
|
4499
4574
|
//{ Rect:rtItem, Stock:stock, Index:index, Column:column, RowType:rowType, Type:drawInfo.Tooltip.Type, Data:{ AryText:[ {Text:xx} ]} };
|
|
4500
|
-
//Type:1=数据截断
|
|
4575
|
+
//Type:1=数据截断 2=表头提示信息 20=分时图
|
|
4501
4576
|
// { Text, Color, Title:, TitleColor, Space, Margin:{ Left, Top, Right, Bottom }}
|
|
4502
4577
|
this.TooltipRect=[];
|
|
4503
4578
|
|
|
@@ -4631,6 +4706,7 @@ function ChartReport()
|
|
|
4631
4706
|
if (IFrameSplitOperator.IsNumber(item.ColorType)) colItem.ColorType=item.ColorType; //0=默认 1=(>0, =0, <0) 2=(>=0, <0)
|
|
4632
4707
|
else colItem.IsDrawCallback=false;
|
|
4633
4708
|
if (item.Icon) colItem.Icon=item.Icon;
|
|
4709
|
+
if (IFrameSplitOperator.IsBool(item.EnableChartTooltip)) colItem.EnableChartTooltip=item.EnableChartTooltip;
|
|
4634
4710
|
|
|
4635
4711
|
//点击表头弹出菜单
|
|
4636
4712
|
if (IFrameSplitOperator.IsBool(item.EnablePopupHeaderMenu)) colItem.EnablePopupHeaderMenu=item.EnablePopupHeaderMenu;
|
|
@@ -6070,12 +6146,19 @@ function ChartReport()
|
|
|
6070
6146
|
var tooltipData={ Rect:rtItem, Stock:stock, Index:index, Column:column, RowType:rowType, Type:drawInfo.Tooltip.Type, Data:drawInfo.Tooltip.Data };
|
|
6071
6147
|
this.TooltipRect.push(tooltipData);
|
|
6072
6148
|
}
|
|
6149
|
+
else if (column.EnableChartTooltip)
|
|
6150
|
+
{
|
|
6151
|
+
var tooltipData={ Rect:rtItem, Stock:stock, Index:index, Column:column, RowType:rowType, Type:20 };
|
|
6152
|
+
this.TooltipRect.push(tooltipData);
|
|
6153
|
+
}
|
|
6073
6154
|
|
|
6074
6155
|
if (drawInfo.Botton)
|
|
6075
6156
|
{
|
|
6076
6157
|
var buttonData={ Stock:stock, Index:index, ColumnIndex:columnIndex, Column:column, Rect:drawInfo.Botton.Rect, Type:drawInfo.Botton.Type, Data:drawInfo.Data };
|
|
6077
6158
|
this.ButtonRect.push(buttonData);
|
|
6078
6159
|
}
|
|
6160
|
+
|
|
6161
|
+
|
|
6079
6162
|
}
|
|
6080
6163
|
|
|
6081
6164
|
this.IsReserveProgressBarColumn=function(value)
|
|
@@ -1508,7 +1508,7 @@ input[type="color"] {
|
|
|
1508
1508
|
height: 500px;
|
|
1509
1509
|
width: 600px;
|
|
1510
1510
|
z-index: 809;
|
|
1511
|
-
visibility:
|
|
1511
|
+
visibility:hidden;
|
|
1512
1512
|
background-color: rgba(255,255,255,0.95);
|
|
1513
1513
|
border: solid 1px rgba(200, 210, 219, 0.92);
|
|
1514
1514
|
display: flex;
|
|
@@ -1538,9 +1538,41 @@ input[type="color"] {
|
|
|
1538
1538
|
margin-left: auto;
|
|
1539
1539
|
padding-right: 4px;
|
|
1540
1540
|
cursor:pointer;
|
|
1541
|
+
color:rgb(180,180,180)
|
|
1541
1542
|
}
|
|
1542
1543
|
|
|
1543
1544
|
|
|
1545
|
+
/*
|
|
1546
|
+
Copyright (c) 2018 jones
|
|
1547
|
+
|
|
1548
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
1549
|
+
|
|
1550
|
+
开源项目 https://github.com/jones2000/HQChart
|
|
1551
|
+
|
|
1552
|
+
jones_2000@163.com
|
|
1553
|
+
|
|
1554
|
+
内置分时图浮动框
|
|
1555
|
+
*/
|
|
1556
|
+
|
|
1557
|
+
.UMyChart_Tooltip_Minute_Div
|
|
1558
|
+
{
|
|
1559
|
+
position: absolute;
|
|
1560
|
+
height: 300px;
|
|
1561
|
+
width: 400px;
|
|
1562
|
+
visibility:hidden;
|
|
1563
|
+
background-color: rgba(255,255,255,0.95);
|
|
1564
|
+
border: solid 1px rgba(200, 210, 219, 0.92);
|
|
1565
|
+
display: flex;
|
|
1566
|
+
flex-flow: column;
|
|
1567
|
+
z-index: 99;
|
|
1568
|
+
pointer-events:none;
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
.UMyChart_Tooltip_Minute_Chart_Div
|
|
1572
|
+
{
|
|
1573
|
+
flex: 1
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1544
1576
|
|
|
1545
1577
|
/*
|
|
1546
1578
|
Copyright (c) 2018 jones
|
|
@@ -187,7 +187,7 @@ HQData.Minute_RequestMinuteData=function(data, callback)
|
|
|
187
187
|
setTimeout(()=>{
|
|
188
188
|
var fullData=HQData.GetDayMinuteDataBySymbol(symbol);
|
|
189
189
|
var srcStock=fullData[0];
|
|
190
|
-
var stockItem={ date:srcStock.date, minute:srcStock.minute, yclose:srcStock.yclose, symbol:
|
|
190
|
+
var stockItem={ date:srcStock.date, minute:srcStock.minute, yclose:srcStock.yclose, symbol:symbol, name:symbol };
|
|
191
191
|
if (callcation.Before)
|
|
192
192
|
{
|
|
193
193
|
var before=
|
|
@@ -212,7 +212,10 @@ HQData.Minute_RequestMinuteData=function(data, callback)
|
|
|
212
212
|
stockItem.beforeinfo=beforeinfo;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
//测试用 这里可以修改数据
|
|
216
|
+
//var lastItem=srcStock.minute[srcStock.minute.length-1];
|
|
217
|
+
//lastItem.price+=Math.ceil(Math.random()*10)/1000*lastItem.price;
|
|
218
|
+
/*
|
|
216
219
|
for(var i=0;i<srcStock.minute.length;++i)
|
|
217
220
|
{
|
|
218
221
|
var item=srcStock.minute[i];
|
|
@@ -1102,125 +1105,132 @@ HQData.Report_RequestStockData=function(data, callback)
|
|
|
1102
1105
|
var stocks=data.Request.Data.stocks; //股票列表
|
|
1103
1106
|
data.PreventDefault=true;
|
|
1104
1107
|
|
|
1105
|
-
|
|
1106
|
-
for(var i=0;i<stocks.length;++i)
|
|
1107
|
-
{
|
|
1108
|
-
var item=stocks[i];
|
|
1109
|
-
mapStock.set(item.Symbol,{ Symbol:item.Symbol, Data:null });
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
if (IFrameSplitOperator.IsNonEmptyArray(SHSZ_STOCK_LIST_TEST_DATA.symbol))
|
|
1108
|
+
setTimeout(()=>
|
|
1113
1109
|
{
|
|
1114
|
-
|
|
1110
|
+
var mapStock=new Map();
|
|
1111
|
+
for(var i=0;i<stocks.length;++i)
|
|
1115
1112
|
{
|
|
1116
|
-
var
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
var name=SHSZ_STOCK_LIST_TEST_DATA.name[i];
|
|
1120
|
-
var price=SHSZ_STOCK_LIST_TEST_DATA.close[i];
|
|
1121
|
-
var vol=SHSZ_STOCK_LIST_TEST_DATA.vol[i];
|
|
1122
|
-
var newItem=
|
|
1123
|
-
[
|
|
1124
|
-
symbol,
|
|
1125
|
-
name,
|
|
1126
|
-
SHSZ_STOCK_LIST_TEST_DATA.yclose[i],
|
|
1127
|
-
SHSZ_STOCK_LIST_TEST_DATA.open[i],
|
|
1128
|
-
SHSZ_STOCK_LIST_TEST_DATA.high[i],
|
|
1129
|
-
SHSZ_STOCK_LIST_TEST_DATA.low[i],
|
|
1130
|
-
price,
|
|
1131
|
-
vol,
|
|
1132
|
-
SHSZ_STOCK_LIST_TEST_DATA.amount[i],
|
|
1133
|
-
];
|
|
1134
|
-
|
|
1135
|
-
//买价 量
|
|
1136
|
-
newItem[9]=price+0.05;
|
|
1137
|
-
newItem[10]=10;
|
|
1113
|
+
var item=stocks[i];
|
|
1114
|
+
mapStock.set(item.Symbol,{ Symbol:item.Symbol, Data:null });
|
|
1115
|
+
}
|
|
1138
1116
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1117
|
+
if (IFrameSplitOperator.IsNonEmptyArray(SHSZ_STOCK_LIST_TEST_DATA.symbol))
|
|
1118
|
+
{
|
|
1119
|
+
for(var i=0;i<SHSZ_STOCK_LIST_TEST_DATA.symbol.length;++i)
|
|
1120
|
+
{
|
|
1121
|
+
var symbol=SHSZ_STOCK_LIST_TEST_DATA.symbol[i];
|
|
1122
|
+
if (!mapStock.has(symbol)) continue;
|
|
1123
|
+
var item=mapStock.get(symbol);
|
|
1124
|
+
var name=SHSZ_STOCK_LIST_TEST_DATA.name[i];
|
|
1125
|
+
var price=SHSZ_STOCK_LIST_TEST_DATA.close[i];
|
|
1126
|
+
var vol=SHSZ_STOCK_LIST_TEST_DATA.vol[i];
|
|
1127
|
+
var newItem=
|
|
1128
|
+
[
|
|
1129
|
+
symbol,
|
|
1130
|
+
name,
|
|
1131
|
+
SHSZ_STOCK_LIST_TEST_DATA.yclose[i],
|
|
1132
|
+
SHSZ_STOCK_LIST_TEST_DATA.open[i],
|
|
1133
|
+
SHSZ_STOCK_LIST_TEST_DATA.high[i],
|
|
1134
|
+
SHSZ_STOCK_LIST_TEST_DATA.low[i],
|
|
1135
|
+
price,
|
|
1136
|
+
vol,
|
|
1137
|
+
SHSZ_STOCK_LIST_TEST_DATA.amount[i],
|
|
1138
|
+
];
|
|
1139
|
+
|
|
1140
|
+
//买价 量
|
|
1141
|
+
newItem[9]=price+0.05;
|
|
1142
|
+
newItem[10]=10;
|
|
1143
|
+
|
|
1144
|
+
//卖价 量
|
|
1145
|
+
newItem[11]=price-0.06;
|
|
1146
|
+
newItem[12]=5;
|
|
1147
|
+
|
|
1148
|
+
//均价
|
|
1149
|
+
newItem[13]=price-0.03;
|
|
1150
|
+
|
|
1151
|
+
//内盘
|
|
1152
|
+
newItem[18]=vol/4;
|
|
1153
|
+
//外盘
|
|
1154
|
+
newItem[19]=vol/5;
|
|
1155
|
+
|
|
1156
|
+
newItem[14]=vol*1.5; //流通股本
|
|
1157
|
+
newItem[15]=vol*1.8; //总股本
|
|
1158
|
+
|
|
1159
|
+
//换手率
|
|
1160
|
+
newItem[23]=(Math.round(Math.random()*60))/100;
|
|
1161
|
+
|
|
1162
|
+
//名字字段
|
|
1163
|
+
var symbolEx={ Text:name };
|
|
1164
|
+
if (i%20==5)
|
|
1165
|
+
symbolEx.Symbol={ Family:'iconfont', Size:16, Data:[ { Text:'\ue629', Color:'rgb(255,165,0)'}, { Text:'\ue627', Color:'#1c65db'} ] };
|
|
1166
|
+
else if (i%20==9)
|
|
1167
|
+
symbolEx.Symbol={ Family:'iconfont', Size:16, Data:[ { Text:'\ue629', Color:'rgb(255,165,0)'}] } ;
|
|
1168
|
+
else if (i%20==18)
|
|
1169
|
+
symbolEx.Symbol={ Family:'iconfont', Size:16, Data:[ { Text:'\ue627', Color:'#1c65db'}] } ;
|
|
1170
|
+
|
|
1171
|
+
newItem[27]=symbolEx;
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
newItem[38]=HQData.GetRandomTestData(10,20000); //持仓量
|
|
1175
|
+
newItem[39]=HQData.GetRandomTestData(10,100); //结算价
|
|
1176
|
+
newItem[40]=HQData.GetRandomTestData(10,100); //昨结算价
|
|
1177
|
+
newItem[41]=HQData.GetRandomTestData(10,20000); //开仓量
|
|
1178
|
+
newItem[42]=HQData.GetRandomTestData(10,20000); //平仓量
|
|
1179
|
+
|
|
1180
|
+
//1,3,5,10,15 涨速%
|
|
1181
|
+
newItem[43]=HQData.GetRandomTestData(-90,90);
|
|
1182
|
+
newItem[44]=HQData.GetRandomTestData(-90,90);
|
|
1183
|
+
newItem[45]=HQData.GetRandomTestData(-90,90);
|
|
1184
|
+
newItem[46]=HQData.GetRandomTestData(-90,90);
|
|
1185
|
+
newItem[47]=HQData.GetRandomTestData(-90,90);
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
//扩展数据 (定制数据)
|
|
1189
|
+
var extendData=[];
|
|
1190
|
+
newItem[30]=extendData;
|
|
1191
|
+
|
|
1192
|
+
//行业
|
|
1193
|
+
extendData[0]="行业X";
|
|
1194
|
+
//地区
|
|
1195
|
+
extendData[1]="地区X";
|
|
1196
|
+
|
|
1197
|
+
//PE|PB
|
|
1198
|
+
extendData[2]=(Math.round(Math.random()*60))/100;
|
|
1199
|
+
extendData[3]=(Math.round(Math.random()*60))/100;
|
|
1200
|
+
extendData[4]=(Math.round(Math.random()*60))/100;
|
|
1201
|
+
extendData[5]=(Math.round(Math.random()*60))/100;
|
|
1142
1202
|
|
|
1143
|
-
//均价
|
|
1144
|
-
newItem[13]=price-0.03;
|
|
1145
1203
|
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1204
|
+
//周涨幅
|
|
1205
|
+
extendData[6]=(Math.round(Math.random()*60))/100;
|
|
1206
|
+
extendData[7]=(Math.round(Math.random()*60))/100;
|
|
1207
|
+
extendData[8]=(Math.round(Math.random()*60))/100;
|
|
1150
1208
|
|
|
1151
|
-
newItem[14]=vol*1.5; //流通股本
|
|
1152
|
-
newItem[15]=vol*1.8; //总股本
|
|
1153
1209
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1210
|
+
newItem[101]=105.0;
|
|
1211
|
+
newItem[201]=`A-[${HQData.GetRandomTestData(-90,90)}]-B`;
|
|
1156
1212
|
|
|
1157
|
-
//名字字段
|
|
1158
|
-
var symbolEx={ Text:name };
|
|
1159
|
-
if (i%20==5)
|
|
1160
|
-
symbolEx.Symbol={ Family:'iconfont', Size:16, Data:[ { Text:'\ue629', Color:'rgb(255,165,0)'}, { Text:'\ue627', Color:'#1c65db'} ] };
|
|
1161
|
-
else if (i%20==9)
|
|
1162
|
-
symbolEx.Symbol={ Family:'iconfont', Size:16, Data:[ { Text:'\ue629', Color:'rgb(255,165,0)'}] } ;
|
|
1163
|
-
else if (i%20==18)
|
|
1164
|
-
symbolEx.Symbol={ Family:'iconfont', Size:16, Data:[ { Text:'\ue627', Color:'#1c65db'}] } ;
|
|
1165
|
-
|
|
1166
|
-
newItem[27]=symbolEx;
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
newItem[38]=HQData.GetRandomTestData(10,20000); //持仓量
|
|
1170
|
-
newItem[39]=HQData.GetRandomTestData(10,100); //结算价
|
|
1171
|
-
newItem[40]=HQData.GetRandomTestData(10,100); //昨结算价
|
|
1172
|
-
newItem[41]=HQData.GetRandomTestData(10,20000); //开仓量
|
|
1173
|
-
newItem[42]=HQData.GetRandomTestData(10,20000); //平仓量
|
|
1174
|
-
|
|
1175
|
-
//1,3,5,10,15 涨速%
|
|
1176
|
-
newItem[43]=HQData.GetRandomTestData(-90,90);
|
|
1177
|
-
newItem[44]=HQData.GetRandomTestData(-90,90);
|
|
1178
|
-
newItem[45]=HQData.GetRandomTestData(-90,90);
|
|
1179
|
-
newItem[46]=HQData.GetRandomTestData(-90,90);
|
|
1180
|
-
newItem[47]=HQData.GetRandomTestData(-90,90);
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
//扩展数据 (定制数据)
|
|
1184
|
-
var extendData=[];
|
|
1185
|
-
newItem[30]=extendData;
|
|
1186
1213
|
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
extendData[1]="地区X";
|
|
1191
|
-
|
|
1192
|
-
//PE|PB
|
|
1193
|
-
extendData[2]=(Math.round(Math.random()*60))/100;
|
|
1194
|
-
extendData[3]=(Math.round(Math.random()*60))/100;
|
|
1195
|
-
extendData[4]=(Math.round(Math.random()*60))/100;
|
|
1196
|
-
extendData[5]=(Math.round(Math.random()*60))/100;
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
//周涨幅
|
|
1200
|
-
extendData[6]=(Math.round(Math.random()*60))/100;
|
|
1201
|
-
extendData[7]=(Math.round(Math.random()*60))/100;
|
|
1202
|
-
extendData[8]=(Math.round(Math.random()*60))/100;
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
newItem[101]=105.0;
|
|
1206
|
-
newItem[201]=`A-[${HQData.GetRandomTestData(-90,90)}]-B`
|
|
1207
|
-
|
|
1214
|
+
newItem[301]=HQData.GetRandomTestData(0,100)/100;
|
|
1215
|
+
newItem[302]=HQData.GetRandomTestData(0,100)/100;
|
|
1216
|
+
|
|
1208
1217
|
|
|
1209
|
-
|
|
1218
|
+
item.Data=newItem;
|
|
1219
|
+
}
|
|
1210
1220
|
}
|
|
1211
|
-
}
|
|
1212
1221
|
|
|
1213
|
-
|
|
1222
|
+
var hqchartData={ data:[], code:0 };
|
|
1214
1223
|
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1224
|
+
for(var mapItem of mapStock)
|
|
1225
|
+
{
|
|
1226
|
+
var item=mapItem[1];
|
|
1227
|
+
if (!item.Data) continue;
|
|
1219
1228
|
|
|
1220
|
-
|
|
1221
|
-
|
|
1229
|
+
hqchartData.data.push(item.Data);
|
|
1230
|
+
}
|
|
1222
1231
|
|
|
1223
|
-
|
|
1232
|
+
callback(hqchartData);
|
|
1233
|
+
}, 500);
|
|
1224
1234
|
}
|
|
1225
1235
|
|
|
1226
1236
|
HQData.Report_RequestStockSortData=function(data, callback)
|
|
@@ -1447,6 +1457,10 @@ HQData.Report_RequestVirtualStockData=function(data, callback)
|
|
|
1447
1457
|
extendData[8]=(Math.round(Math.random()*60))/100;
|
|
1448
1458
|
|
|
1449
1459
|
|
|
1460
|
+
newItem[351]={Title:"启动"};
|
|
1461
|
+
newItem[352]={Title:"加入"};
|
|
1462
|
+
|
|
1463
|
+
|
|
1450
1464
|
aryData.push(newItem);
|
|
1451
1465
|
aryIndex.push(start+i);
|
|
1452
1466
|
}
|