hqchart 1.1.12693 → 1.1.12706

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.
Files changed (225) hide show
  1. package/package.json +15 -47
  2. package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
  3. package/.babelrc +0 -6
  4. package/.vscode/settings.json +0 -4
  5. package/Makefile +0 -9
  6. package/README.md +0 -452
  7. package/index.js +0 -17
  8. package/postcss.config.js +0 -5
  9. package/src/index.html +0 -18
  10. package/src/jscommon/backup/announcement.png +0 -0
  11. package/src/jscommon/backup/announcement2.png +0 -0
  12. package/src/jscommon/backup/blocktrading.png +0 -0
  13. package/src/jscommon/backup/investor.png +0 -0
  14. package/src/jscommon/backup/pforecast.png +0 -0
  15. package/src/jscommon/backup/research.png +0 -0
  16. package/src/jscommon/backup/tradedetail.png +0 -0
  17. package/src/jscommon/backup/umychart - backup.js +0 -17631
  18. package/src/jscommon/backup/umychart.macro.js +0 -4
  19. package/src/jscommon/backup/umychart.macro.vue.js +0 -3
  20. package/src/jscommon/commonindextree.json +0 -92
  21. package/src/jscommon/index.html +0 -13
  22. package/src/jscommon/jschinamapdata.js +0 -3
  23. package/src/jscommon/umychart.NetworkFilterTest.js +0 -48803
  24. package/src/jscommon/umychart.aliYunnetwork.js +0 -47
  25. package/src/jscommon/umychart.cninfo.components/readme.txt +0 -1
  26. package/src/jscommon/umychart.complier.js +0 -25293
  27. package/src/jscommon/umychart.complier.node/umychart.complier.controller.js +0 -559
  28. package/src/jscommon/umychart.complier.node/umychart.complier.node.js +0 -7043
  29. package/src/jscommon/umychart.complier.node/umychart.data.node.js +0 -816
  30. package/src/jscommon/umychart.console.js +0 -12
  31. package/src/jscommon/umychart.deal.js +0 -1452
  32. package/src/jscommon/umychart.dragdiv.js +0 -48
  33. package/src/jscommon/umychart.index.data.js +0 -4132
  34. package/src/jscommon/umychart.js +0 -90542
  35. package/src/jscommon/umychart.keyboard.js +0 -1659
  36. package/src/jscommon/umychart.listctrl.js +0 -690
  37. package/src/jscommon/umychart.mind.js +0 -2203
  38. package/src/jscommon/umychart.network.js +0 -44
  39. package/src/jscommon/umychart.news.js +0 -823
  40. package/src/jscommon/umychart.node.build/buildall.bat +0 -1
  41. package/src/jscommon/umychart.node.build/umychart.node.bat +0 -1
  42. package/src/jscommon/umychart.node.build/umychart.node.export.js +0 -40
  43. package/src/jscommon/umychart.regressiontest.js +0 -400
  44. package/src/jscommon/umychart.report.js +0 -5803
  45. package/src/jscommon/umychart.scrollbar.js +0 -1345
  46. package/src/jscommon/umychart.stock.js +0 -4218
  47. package/src/jscommon/umychart.style.js +0 -625
  48. package/src/jscommon/umychart.testdata.js +0 -150
  49. package/src/jscommon/umychart.uniapp.build/buildall.bat +0 -1
  50. package/src/jscommon/umychart.uniapp.build/umychart.bat +0 -1
  51. package/src/jscommon/umychart.uniapp.build/umychart.export.js +0 -70
  52. package/src/jscommon/umychart.user.js +0 -137
  53. package/src/jscommon/umychart.version.js +0 -30
  54. package/src/jscommon/umychart.vue/umychart.aliYunnetwork.vue.js +0 -56
  55. package/src/jscommon/umychart.vue.build/buildall.bat +0 -4
  56. package/src/jscommon/umychart.vue.build/copy_codemirror.bat +0 -2
  57. package/src/jscommon/umychart.vue.build/umychart.aliYunnetwork.vue.export.js +0 -9
  58. package/src/jscommon/umychart.vue.build/umychart.dragdiv.bat +0 -1
  59. package/src/jscommon/umychart.vue.build/umychart.dragdiv.export.js +0 -6
  60. package/src/jscommon/umychart.vue.build/umychart.index.data.bat +0 -1
  61. package/src/jscommon/umychart.vue.build/umychart.index.data.export.js +0 -4
  62. package/src/jscommon/umychart.vue.build/umychart.listctrl.vue.export.js +0 -15
  63. package/src/jscommon/umychart.vue.build/umychart.regressiontest.vue.export.js +0 -7
  64. package/src/jscommon/umychart.vue.build/umychart.regressiontest.wechat.export.js +0 -12
  65. package/src/jscommon/umychart.vue.build/umychart.stock.bat +0 -1
  66. package/src/jscommon/umychart.vue.build/umychart.stock.vue.export.js +0 -16
  67. package/src/jscommon/umychart.vue.build/umychart.testdata.bat +0 -3
  68. package/src/jscommon/umychart.vue.build/umychart.testdata.vue.export.js +0 -7
  69. package/src/jscommon/umychart.vue.build/umychart.vue.bat +0 -8
  70. package/src/jscommon/umychart.vue.build/umychart.vue.export.js +0 -112
  71. package/src/jscommon/umychart.vue.components/empyt.vue +0 -51
  72. package/src/jscommon/umychart.vue.components/historydayline.vue +0 -240
  73. package/src/jscommon/umychart.vue.components/jsloader.adddialog.vue +0 -315
  74. package/src/jscommon/umychart.vue.components/jsloader.vue +0 -93
  75. package/src/jscommon/umychart.vue.components/jsvuecontainer.vue +0 -160
  76. package/src/jscommon/umychart.vue.components/jsvuecontainer2.0.vue +0 -391
  77. package/src/jscommon/umychart.vue.components/login.vue +0 -178
  78. package/src/jscommon/umychart.vue.components/queryContent.vue +0 -750
  79. package/src/jscommon/umychart.vue.components/readme.txt +0 -8
  80. package/src/jscommon/umychart.vue.components/searchsymbol.vue +0 -299
  81. package/src/jscommon/umychart.vue.components/simulatetrade.vue +0 -1471
  82. package/src/jscommon/umychart.vue.components/stockchart.vue +0 -343
  83. package/src/jscommon/umychart.vue.components/stockchartV2.vue +0 -195
  84. package/src/jscommon/umychart.vue.components/stockdeal.vue +0 -358
  85. package/src/jscommon/umychart.vue.components/stockdealcount.vue +0 -262
  86. package/src/jscommon/umychart.vue.components/stockdeallastest.vue +0 -316
  87. package/src/jscommon/umychart.vue.components/stockdrawtool.vue +0 -343
  88. package/src/jscommon/umychart.vue.components/stockfull.vue +0 -355
  89. package/src/jscommon/umychart.vue.components/stockinfo.demo.vue +0 -153
  90. package/src/jscommon/umychart.vue.components/stockinfo.vue +0 -685
  91. package/src/jscommon/umychart.vue.components/stockkline.demo.vue +0 -1904
  92. package/src/jscommon/umychart.vue.components/stockmultiorder.vue +0 -174
  93. package/src/jscommon/umychart.vue.components/stockmultiperiod.vue +0 -222
  94. package/src/jscommon/umychart.vue.components/stockorder.vue +0 -320
  95. package/src/jscommon/umychart.vue.components/stocktradeinfo.demo.vue +0 -250
  96. package/src/jscommon/umychart.vue.components/stocktradeinfo.vue +0 -1907
  97. package/src/jscommon/umychart.vue.components/test.vue +0 -0
  98. package/src/jscommon/umychart.wechat/getDate.wechat.js +0 -91
  99. package/src/jscommon/umychart.wechat/lighter.news.wechat.js +0 -262
  100. package/src/jscommon/umychart.wechat/readme.txt +0 -3
  101. package/src/jscommon/umychart.wechat/umychart.analyze.wechat.js +0 -551
  102. package/src/jscommon/umychart.wechat/umychart.apidraw.wechat.js +0 -126
  103. package/src/jscommon/umychart.wechat/umychart.bigV.wechat.js +0 -2510
  104. package/src/jscommon/umychart.wechat/umychart.chartframe.wechat.js +0 -2942
  105. package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +0 -9752
  106. package/src/jscommon/umychart.wechat/umychart.charttitle.wechat.js +0 -2023
  107. package/src/jscommon/umychart.wechat/umychart.complier.wechat.js +0 -14726
  108. package/src/jscommon/umychart.wechat/umychart.console.wechat.js +0 -8
  109. package/src/jscommon/umychart.wechat/umychart.coordinatedata.wechat.js +0 -3654
  110. package/src/jscommon/umychart.wechat/umychart.data.wechat.js +0 -2243
  111. package/src/jscommon/umychart.wechat/umychart.element.wechart.js +0 -132
  112. package/src/jscommon/umychart.wechat/umychart.explainer.wechat.js +0 -1077
  113. package/src/jscommon/umychart.wechat/umychart.extendchart.wechat.js +0 -1140
  114. package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +0 -2247
  115. package/src/jscommon/umychart.wechat/umychart.hqIndexformula.wechat.js +0 -941
  116. package/src/jscommon/umychart.wechat/umychart.index.data.wechat.js +0 -3628
  117. package/src/jscommon/umychart.wechat/umychart.index.wechat.js +0 -4074
  118. package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +0 -836
  119. package/src/jscommon/umychart.wechat/umychart.markethot.js +0 -50
  120. package/src/jscommon/umychart.wechat/umychart.network.wechart.js +0 -62
  121. package/src/jscommon/umychart.wechat/umychart.news.wechat.js +0 -3568
  122. package/src/jscommon/umychart.wechat/umychart.regressiontest.wechat.js +0 -412
  123. package/src/jscommon/umychart.wechat/umychart.report.wechat.js +0 -3983
  124. package/src/jscommon/umychart.wechat/umychart.resource.wechat.js +0 -919
  125. package/src/jscommon/umychart.wechat/umychart.shareimage.wechat.js +0 -681
  126. package/src/jscommon/umychart.wechat/umychart.simulatetrade.wechat.js +0 -238
  127. package/src/jscommon/umychart.wechat/umychart.stock.wechat.js +0 -4035
  128. package/src/jscommon/umychart.wechat/umychart.style.wechat.js +0 -419
  129. package/src/jscommon/umychart.wechat/umychart.uniapp.canvas.helper.js +0 -99
  130. package/src/jscommon/umychart.wechat/umychart.user.wechat.js +0 -588
  131. package/src/jscommon/umychart.wechat/umychart.userlog.wechat.js +0 -240
  132. package/src/jscommon/umychart.wechat/umychart.vedio.wechat.js +0 -112
  133. package/src/jscommon/umychart.wechat/umychart.version.wechat.js +0 -36
  134. package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +0 -12055
  135. package/src/jscommon/umychart.wechat/umychart.wechat.js +0 -15460
  136. package/src/jscommon/umychart.worker.js +0 -114
  137. package/src/jscommon/umychart.ws.stock.js +0 -110
  138. package/src/jscommon/umychart_python/.vscode/launch.json +0 -15
  139. package/src/jscommon/umychart_python/__init__.py +0 -4
  140. package/src/jscommon/umychart_python/build.cmd +0 -2
  141. package/src/jscommon/umychart_python/setup.py +0 -25
  142. package/src/jscommon/umychart_python/umychart_cache_testcase.py +0 -165
  143. package/src/jscommon/umychart_python/umychart_complier_data.py +0 -781
  144. package/src/jscommon/umychart_python/umychart_complier_help.py +0 -175
  145. package/src/jscommon/umychart_python/umychart_complier_job.py +0 -193
  146. package/src/jscommon/umychart_python/umychart_complier_jsalgorithm.py +0 -4144
  147. package/src/jscommon/umychart_python/umychart_complier_jscomplier.py +0 -177
  148. package/src/jscommon/umychart_python/umychart_complier_jsexecute.py +0 -517
  149. package/src/jscommon/umychart_python/umychart_complier_jsparser.py +0 -864
  150. package/src/jscommon/umychart_python/umychart_complier_jssymboldata.py +0 -1238
  151. package/src/jscommon/umychart_python/umychart_complier_jssymboldata_cache.py +0 -146
  152. package/src/jscommon/umychart_python/umychart_complier_jssymboldata_json.py +0 -106
  153. package/src/jscommon/umychart_python/umychart_complier_pandas_help.py +0 -80
  154. package/src/jscommon/umychart_python/umychart_complier_scanner.py +0 -554
  155. package/src/jscommon/umychart_python/umychart_complier_testcase.py +0 -362
  156. package/src/jscommon/umychart_python/umychart_complier_util.py +0 -30
  157. package/src/jscommon/umychart_python/umychart_webtemplate.py +0 -131
  158. package/src/jscommon/umychart_python/updatehqchartweb.bat +0 -5
  159. package/src/jscommon/vendor.js +0 -2
  160. package/src/pages/block.list.demo.page/App.vue +0 -117
  161. package/src/pages/block.list.demo.page/index.js +0 -12
  162. package/src/pages/brushTool.demo.page/App.vue +0 -19
  163. package/src/pages/brushTool.demo.page/index.js +0 -12
  164. package/src/pages/container.demo.page/App.vue +0 -118
  165. package/src/pages/container.demo.page/index.js +0 -18
  166. package/src/pages/dataZoom.demo.page/App.vue +0 -265
  167. package/src/pages/dataZoom.demo.page/components/dataZoom.vue +0 -303
  168. package/src/pages/dataZoom.demo.page/index.js +0 -12
  169. package/src/pages/historydayline.demo.page/App.vue +0 -57
  170. package/src/pages/historydayline.demo.page/index.js +0 -12
  171. package/src/pages/hq.demo.page/App.vue +0 -163
  172. package/src/pages/hq.demo.page/index.js +0 -12
  173. package/src/pages/hqchart.black/App.vue +0 -90
  174. package/src/pages/hqchart.black/components/searchsymbol.vue +0 -299
  175. package/src/pages/hqchart.black/components/stockdrawtool.vue +0 -300
  176. package/src/pages/hqchart.black/components/stockfull.vue +0 -313
  177. package/src/pages/hqchart.black/components/stockinfo.vue +0 -428
  178. package/src/pages/hqchart.black/components/stockkline.demo.vue +0 -1652
  179. package/src/pages/hqchart.black/components/stocktradeinfo.vue +0 -1337
  180. package/src/pages/hqchart.black/index.js +0 -30
  181. package/src/pages/hqchart.black/router/candlestickChart.vue +0 -108
  182. package/src/pages/hqchart.black/router/pricePointsTable.vue +0 -294
  183. package/src/pages/hqchart.black/router/stockDeallas.vue +0 -417
  184. package/src/pages/hqchart.black/router/timeShareChart.vue +0 -108
  185. package/src/pages/hqchart.page/App.vue +0 -101
  186. package/src/pages/hqchart.page/index.js +0 -18
  187. package/src/pages/index/App.vue +0 -1408
  188. package/src/pages/index/index.js +0 -7
  189. package/src/pages/indexHq/App.vue +0 -110
  190. package/src/pages/indexHq/index.js +0 -18
  191. package/src/pages/login.demo.page/App.vue +0 -22
  192. package/src/pages/login.demo.page/index.js +0 -12
  193. package/src/pages/queryContent.demo.page/App.vue +0 -29
  194. package/src/pages/queryContent.demo.page/index.js +0 -18
  195. package/src/pages/ranking.black/App.vue +0 -199
  196. package/src/pages/ranking.black/index.js +0 -18
  197. package/src/pages/search.demo.page/App.vue +0 -28
  198. package/src/pages/search.demo.page/index.js +0 -12
  199. package/src/pages/simulatetrade.demo.page/app.vue +0 -121
  200. package/src/pages/simulatetrade.demo.page/index.js +0 -17
  201. package/src/pages/stockdeal.demo.page/App.vue +0 -63
  202. package/src/pages/stockdeal.demo.page/index.js +0 -19
  203. package/src/pages/stockdealcount.demo.page/App.vue +0 -37
  204. package/src/pages/stockdealcount.demo.page/index.js +0 -12
  205. package/src/pages/stockdeallastest.demo.page/App.vue +0 -74
  206. package/src/pages/stockdeallastest.demo.page/index.js +0 -18
  207. package/src/pages/stockinfo.demo.page/App.vue +0 -92
  208. package/src/pages/stockinfo.demo.page/index.html +0 -13
  209. package/src/pages/stockinfo.demo.page/index.js +0 -19
  210. package/src/pages/stockkline.demo.page/App.vue +0 -55
  211. package/src/pages/stockkline.demo.page/index.js +0 -18
  212. package/src/pages/stockmultiorder.demo.page/App.vue +0 -149
  213. package/src/pages/stockmultiorder.demo.page/index.js +0 -18
  214. package/src/pages/stockmultiperiod.demo.page/App.vue +0 -87
  215. package/src/pages/stockmultiperiod.demo.page/index.js +0 -18
  216. package/src/pages/stockorder.demo.page/App.vue +0 -69
  217. package/src/pages/stockorder.demo.page/index.js +0 -18
  218. package/src/pages/test/App.vue +0 -22
  219. package/src/pages/test/index.js +0 -7
  220. package/src/pages/tradeinfopage/app.vue +0 -40
  221. package/src/pages/tradeinfopage/index.js +0 -7
  222. package/src/pages/tradeinfopage/tradeinfo.html +0 -12
  223. package/src/utils/urlObj.js +0 -81
  224. package/src/vendor.js +0 -2
  225. package/webpack.config.js +0 -104
@@ -1,417 +0,0 @@
1
- <template>
2
- <div class="stockdeallastest" ref="stockdeallastest">
3
- <div class="topBox" ref="topBox">
4
- <div class="titleBox" ref="titleBox">
5
- <span>{{name}}</span>
6
- <span>{{Symbol}}</span>
7
- <span>成交明细</span>
8
- </div>
9
- <div class="contentTitle">
10
- <div class="oneBoxTitle" v-for="(item,index) in tableCount" :key="index" ref="oneBoxTitle" :style="{width:+tableWidth+'px'}">
11
- <div class="">时间</div>
12
- <div class="">价格</div>
13
- <div class="">现量</div>
14
- </div>
15
- </div>
16
- </div>
17
-
18
-
19
- <div class="dealContent" ref="dealContent">
20
- <div v-for="(item,index) in tableCount" :key="index" ref="oneBox" :style="{width:+tableWidth+'px',height: tableHeight +'px'}" class="oneBox">
21
- <div class="oneList" v-for="(list,listIndex) in currentData[index]" :key="listIndex" v-if="currentData.length>0">
22
- <div class="timeCss">{{list.Time}}</div>
23
- <div class="priceCss" :class="list.PriceColor">{{list.Price}}</div>
24
- <div class="volBox">
25
- <span class="volNum">{{parseInt(list.Vol)}}</span>
26
- <span class="volFlag" :class="list.Flag == 'B' ? 'red' : 'green'">{{list.Flag ? list.Flag :" "}}</span>
27
- </div>
28
- </div>
29
- </div>
30
- </div>
31
- </div>
32
- </template>
33
-
34
- <script>
35
- import urlObj from "../../../utils/urlObj.js"
36
- import StringFormat from "../../../jscommon/umychart.vue/stockstringformat.js";
37
-
38
- export default {
39
- props: ['Symbol'],
40
- data () {
41
- return {
42
- tableWidth:"",
43
- tableHeight:"",
44
- pageIndex:1,
45
- maxPageIndex:2,
46
- IsReverseData: false,
47
- LatestDetail: null,
48
- IsTradeDay:true,
49
- allDealData:[],
50
- historyData:[],
51
- currentData:[],
52
- Total:0,
53
- tableCount:1,//一屏可以显示多少列
54
- everyTableCount:"",//每一列可以显示的个数
55
- Timer:null,
56
- Timer2:null,
57
- startIndex:"",
58
- endIndex:"",
59
- change:false,
60
- yClose:"",
61
- name:"",
62
- }
63
- },
64
- created: function() {
65
- document.title = "成交明细";
66
- },
67
- mounted () {
68
- this.onSize();
69
- var self=this;
70
- window.onresize = function() { self.onSize() }
71
-
72
- window.addEventListener('mousewheel',this.handleScroll,false)
73
- },
74
- methods: {
75
- UpdateDataShow(start,end){
76
- var inputData = {
77
- symbol: this.Symbol,
78
- start: start,
79
- end: end
80
- };
81
-
82
- urlObj.post(urlObj.apiStockDetail,inputData,res=>{
83
- this.UpdateData(res);
84
- },error=>{
85
- console.log(error)
86
- })
87
- },
88
- UpdateData(res) {
89
- if(res.code != 0){
90
- return this.$message.error(res.message);
91
- }
92
- console.log("res", res);
93
- this.allDealData = [];
94
- this.Total = res.count;//实际数据的end
95
- this.yClose = res.yclose;
96
- this.name = res.name;
97
- this.startIndex = res.start;
98
- this.endIndex = res.count;
99
- // document.title = this.name + "-" + this.Symbol;
100
- if (res) {
101
- res.detail.forEach(item=>{
102
- var detailItem = {Time:item[0], Price:item[1], Vol:item[2], Amount:item[3] , Flag:''};
103
- if (item[4]===0) detailItem.Flag='B';
104
- else if (item[4]===1) detailItem.Flag='S';
105
- this.allDealData.push(detailItem);
106
- })
107
-
108
- if(!this.change){
109
- this.historyData = this.allDealData;
110
- this.showData(this.allDealData);
111
- }
112
-
113
- this.TimerData(res.date,res.detail);
114
- } else {
115
- this.IsTradeDay = false;
116
- }
117
- },
118
- showData(data){
119
- var start = data.length - (this.everyTableCount*this.tableCount*this.pageIndex),
120
- end = data.length - (this.everyTableCount*this.tableCount*(this.pageIndex-1));
121
-
122
- if(this.maxPageIndex == this.pageIndex) {
123
- start = 0;
124
- end = this.everyTableCount*this.tableCount;
125
- }
126
- if(data.length > 0){
127
- if(data.length > this.everyTableCount*this.tableCount){
128
- this.currentData = data.slice(start,end);
129
- }else{
130
- this.currentData = data;
131
- }
132
-
133
- this.currentData = this.ChoiceData("", this.currentData, this.yClose); //接收传入的筛选条件
134
- this.currentData = this.chunk(this.currentData,this.everyTableCount);
135
- }
136
-
137
- },
138
- TimerData(date){
139
- console.log("TimerData");
140
- var now = new Date(),
141
- year = now.getFullYear(),//年
142
- month = now.getMonth() + 1, //月
143
- day = now.getDate(),
144
- hh = now.getHours(), //获取系统时,
145
- mm = now.getMinutes() < 10 ? '0' + now.getMinutes() : now.getMinutes(), //分
146
- ss = now.getSeconds() < 10 ? '0' + now.getSeconds() : now.getSeconds(); //秒
147
-
148
- month = month > 9 ? "" + month : "0" + month;
149
- day = day > 9 ? '' + day : "0" + day;
150
-
151
- var currentDate = year + month + day;
152
- var time = parseInt(hh + "" + mm + "" + ss);
153
- if(date == parseInt(currentDate) ){
154
- if(time>=92500&&time<=114000 || time>=130000&&time<=151000){
155
- console.log('交易中');
156
- if(this.Timer) return;
157
- this.Timer = setInterval(() => {
158
- console.log("定时器");
159
- this.UpdateDataShow(this.startIndex,this.endIndex);
160
- },3000);
161
- }else{
162
- console.log('已收盘',time);
163
- if(this.Timer){
164
- clearInterval(this.Timer);
165
- this.Timer = null;
166
- }
167
-
168
- if(113000 < time && time < 130000){
169
- this.getRealTime(date);
170
- }
171
- }
172
- }else{
173
- console.log('未开盘',date,parseInt(currentDate));
174
- if(this.Timer) clearInterval(this.Timer);
175
- }
176
- },
177
- //中午休市时,定时刷时间
178
- getRealTime(requstDate){
179
- this.Timer2 = setInterval(() => {
180
- console.log("定时器2");
181
- var now = new Date(),
182
- hh = now.getHours(), //获取系统时,
183
- mm = now.getMinutes() < 10 ? '0' + now.getMinutes() : now.getMinutes(), //分
184
- ss = now.getSeconds() < 10 ? '0' + now.getSeconds() : now.getSeconds(); //秒
185
- var time = parseInt(hh + "" + mm + "" + ss);
186
-
187
- if(time >= 130000){
188
- this.TimerData(requstDate);
189
- clearInterval(this.Timer2);
190
- this.Timer2 = null;
191
- }
192
- },3000);
193
- },
194
- ChoiceData(num, data, yClose) {
195
- var dataAry = [];
196
- // console.log("[stockdeal::ChoiceData]data:", data);
197
- if (data.length > 0) {
198
- for (let i = 0; i < data.length; i++) {
199
- var item = data[i];
200
- var color = this.FormatValueColor(item.Price, yClose);
201
- var dataObj = {
202
- Time: this.processingTime(item.Time),
203
- Price: StringFormat.StockStringFormat.FormatValueString(
204
- item.Price,
205
- 2
206
- ),
207
- PriceColor: color,
208
- Vol: parseInt(item.Vol),
209
- Flag: item.Flag,
210
- Amount: item.Amount
211
- };
212
-
213
- if (num != "") {
214
- if (item.Vol >= num) {
215
- dataAry.push(dataObj);
216
- }
217
- } else {
218
- dataAry.push(dataObj);
219
- }
220
- }
221
- return dataAry;
222
- }
223
- },
224
- FormatValueColor(currentValue, targetValue) {
225
- var color = "";
226
- if (currentValue > targetValue) {
227
- color = "red";
228
- } else if (currentValue < targetValue) {
229
- color = "green";
230
- } else {
231
- color = "";
232
- }
233
- return color;
234
- },
235
- //处理时间
236
- processingTime(mss) {
237
- var hours = parseInt(mss / 10000);
238
- var minutes = parseInt((mss / 100) % 100);
239
- if (hours < 10) {
240
- hours = "0" + hours;
241
- }
242
- if (minutes < 10) {
243
- minutes = "0" + minutes;
244
- }
245
- return hours + ":" + minutes;
246
- },
247
- //分割数组方法
248
- chunk(arr, size) {
249
- if(arr&&arr.length>0){
250
- var arr2=[];
251
- for(var i=0;i<arr.length;i=i+size){
252
- arr2.push(arr.slice(i,i+size));
253
- }
254
- return arr2;
255
- }
256
- },
257
- onSize(){
258
- this.pageIndex = 1;
259
- this.allDealData == [];
260
- var allBox = this.$refs.stockdeallastest;
261
- var topBox = this.$refs.topBox;
262
- var dealContent = this.$refs.dealContent;
263
-
264
- //计算一屏可以展示多少列
265
- this.tableCount = parseInt(allBox.clientWidth / 225);
266
- if(this.tableCount < 1) this.tableCount = 1;
267
-
268
- //设置每个table的宽高
269
- var oneTable = this.$refs.oneTable;
270
- this.tableWidth = parseInt(allBox.clientWidth/this.tableCount);
271
- this.tableHeight = (allBox.clientHeight - topBox.clientHeight);
272
-
273
- //一列有多少条数据
274
- this.everyTableCount = Math.floor(
275
- this.tableHeight / 20
276
- );
277
- if(this.everyTableCount < 0) this.everyTableCount = 1;
278
-
279
- this.UpdateDataShow(0,10000);
280
- },
281
-
282
- handleScroll (e) {
283
- var direction = e.deltaY>0?'down':'up'; //该语句可以用来判断滚轮是向上滑动还是向下
284
- console.log("direction",direction);
285
- if(this.allDealData.length > 0){
286
- this.change = true;
287
- }
288
-
289
- if(this.change){
290
- if(direction == 'up'){
291
- this.pageIndex++;
292
- this.maxPageIndex = Math.ceil(this.allDealData.length/(this.everyTableCount*this.tableCount));
293
- if(this.pageIndex > this.maxPageIndex) this.pageIndex = this.maxPageIndex
294
- }else{
295
- this.pageIndex--;
296
- if(this.pageIndex < 1){
297
- this.pageIndex=1;
298
- this.change = false;
299
- }
300
- }
301
- this.showData(this.historyData);
302
- }
303
- },
304
- }
305
- }
306
- </script>
307
-
308
- <style lang="less">
309
- .stockdeallastest{
310
- width: 100%;
311
- height: 100%;
312
- background: #141718;
313
- box-sizing: border-box;
314
- display: flex;
315
- flex-direction: column;
316
- .topBox{
317
- height: 60px;
318
- .titleBox{
319
- width: 100%;
320
- height: 32px;
321
- border-bottom:1px solid #2c3032;
322
- display: flex;
323
- justify-content: center;
324
- align-items: center;
325
- color:#919aa3;
326
- font-size: 16px;
327
- >span{
328
- margin-right: 5px;
329
- }
330
- }
331
- .contentTitle{
332
- width: 100%;
333
- height: 27px;
334
- display: flex;
335
- border-bottom:1px solid #2c3032;
336
- // padding-right:8px;
337
- // box-sizing: border-box;
338
- .oneBoxTitle{
339
- height: 26px;
340
- display: flex;
341
- align-items: center;
342
- border-right:1px solid #2c3032;
343
- box-sizing: border-box;
344
- >div{
345
- width: 33%;
346
- height: 26px;
347
- display: flex;
348
- align-items: center;
349
- justify-content: center;
350
- color: #919aa3;
351
- font-size: 12px;
352
- }
353
- }
354
- .oneBoxTitle:last-child{
355
- border-right:none;
356
- }
357
- }
358
- }
359
-
360
- .dealContent{
361
- width: 100%;
362
- flex: 1;
363
- display: flex;
364
- font-family:Arial,Microsoft YaHei;
365
- .oneBox{
366
- border-right:1px solid #2c3032;
367
- box-sizing: border-box;
368
- .oneList{
369
- width:100%;
370
- height: 20px;
371
- display: flex;
372
- align-items: center;
373
- >div{
374
- width:33%;
375
- height:20px;
376
- line-height: 20px;
377
- font-size: 12px;
378
- }
379
- .timeCss{
380
- color: #919aa3;
381
- display: flex;
382
- justify-content: center;
383
- }
384
- .priceCss{
385
- color:#fff;
386
- display: flex;
387
- justify-content: center;
388
- }
389
- .volBox{
390
- display: flex;
391
- justify-content: flex-end;
392
- padding-right:4px;
393
- box-sizing: border-box;
394
- >span{
395
- font-size: 12px;
396
- }
397
- .volNum{
398
- color: #d8dfe7;
399
- padding-right:4px;
400
- }
401
- }
402
-
403
- }
404
- }
405
- .oneBox:last-child{
406
- border-right:none;
407
- }
408
- }
409
-
410
- .red{
411
- color: #ff5c5c !important;
412
- }
413
- .green{
414
- color: #39e365 !important;
415
- }
416
- }
417
- </style>
@@ -1,108 +0,0 @@
1
- <template>
2
- <div class='divstockfull'>
3
- <StockFull ref='stockfull' DefaultPeriod='' :KlineType="1" :DefaultSymbol="Symbol"
4
- :KLineOption="KLineOption" :MinuteOption="MinuteOption" />
5
- </div>
6
- </template>
7
-
8
- <script>
9
- import StockFull from '../components/stockfull.vue'
10
- import HQChart from '../../../jscommon/umychart.vue/umychart.vue'
11
-
12
- //定制K线设置
13
- const CUSTOM_KLINE_OPTION=
14
- {
15
- Windows: //窗口指标
16
- [
17
- {Index:"MA"},
18
- {Index:"MACD"},
19
- ],
20
-
21
- //TradeIndex: {Index:'交易系统-BIAS'}, //交易系统
22
- //ColorIndex:{ Index:'五彩K线-十字星'}, //五彩K线
23
-
24
- KLine:
25
- {
26
- //Info:["公告","互动易","调研"], //信息地雷
27
- Right:0, //复权 0 不复权 1 前复权 2 后复权
28
- }
29
- }
30
-
31
- const CUSTOM_MINUTE_OPTION=
32
- {
33
- Windows: //窗口指标
34
- [
35
- {Index:"RSI"},
36
- ]
37
- }
38
-
39
- export default
40
- {
41
- props: ['Symbol'],
42
- data ()
43
- {
44
- return {
45
- KLineOption:CUSTOM_KLINE_OPTION,
46
- MinuteOption:CUSTOM_MINUTE_OPTION
47
- }
48
- },
49
-
50
- components: { StockFull},
51
-
52
- created:function()
53
- {
54
- var isLog=this.GetURLParams('log');
55
- if (isLog=='false')
56
- {
57
- HQChart.JSConsole.Chart.Log=()=>{}
58
- HQChart.JSConsole.Complier.Log=()=>{}
59
- }
60
- },
61
-
62
- mounted:function()
63
- {
64
- var stockfull=this.$refs.stockfull;
65
-
66
- var self=this;
67
- window.onresize = function() { self.OnSize() }
68
-
69
- this.OnSize();
70
- },
71
-
72
-
73
- methods:
74
- {
75
- OnChangeSymbol:function(symbol)
76
- {
77
- this.$refs.stockfull.SetSymbol(symbol);
78
- },
79
-
80
- OnSize:function()
81
- {
82
- var height= $(window).height();
83
- var width = $(window).width();
84
-
85
- $('.divstockfull').height(height);
86
-
87
- this.$refs.stockfull.OnSize();
88
- },
89
-
90
- GetURLParams:function(name)
91
- {
92
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
93
- var r = window.location.search.substr(1).match(reg);
94
- if (r != null) return decodeURI(r[2]);
95
- return null;
96
- }
97
- }
98
- }
99
-
100
- </script>
101
-
102
- <style>
103
- .divstockfull
104
- {
105
- height:800px;
106
- }
107
-
108
- </style>
@@ -1,101 +0,0 @@
1
- <template>
2
- <div id="app2" >
3
- <div style="height:300px; width:100%;">
4
- <StockChart ref='hqchart' DefaultSymbol='000001.sz' :DefaultOption=this.Option />
5
- </div>
6
- <div style="height:300px; width:80%;">
7
- <StockChart ref='hqchart2' DefaultSymbol='000001.sz' :DefaultOption=this.Option2 />
8
- </div>
9
- <div style="height:300px; width:70%;">
10
- <StockChart ref='hqchart3' DefaultSymbol='000001.sz' :DefaultOption=this.Option3 />
11
- </div>
12
- <div style="height:300px; width:500px;">
13
- <StockChart ref='hqchart4' DefaultSymbol='000001.sz' :DefaultOption=this.Option4 />
14
- </div>
15
- </div>
16
- </template>
17
-
18
- <script>
19
-
20
- import StockChart from '../../jscommon/umychart.vue.components/stockchart.vue'
21
-
22
- export default
23
- {
24
- data ()
25
- {
26
- return {
27
- Option:{
28
- Type: '分钟走势图',
29
- DayCount:1, //1 走势图 2,3,4,5 多日走势图
30
- Windows: //指定指标
31
- [
32
- //{ Index: "KDJ" }
33
- ] ,
34
- MinuteLine:
35
- {
36
- //IsDrawAreaPrice:false, //是否画价格面积图
37
- //IsShowLead:false, //是否显示领先指标
38
- //SplitType:1, //0=默认值最大最小值 1=涨跌停作为最大最小值
39
- },
40
- },
41
- Option2:
42
- {
43
- Type: '历史K线图',
44
- },
45
- Option3:
46
- {
47
- Type: '历史K线图',
48
- IsShowCorssCursorInfo:false,
49
- KLine:
50
- {
51
- Right:1, //复权 0 不复权 1 前复权 2 后复权
52
- Period:1, //周期 0 日线 1 周线 2 月线 3 年线
53
- }
54
- },
55
- Option4:
56
- {
57
- Type: '历史分钟走势图',
58
- //IsShowCorssCursorInfo:false,
59
- HistoryMinute: {TradeDate:20190422}
60
- }
61
-
62
- }
63
- },
64
-
65
- components: { StockChart },
66
-
67
- created:function()
68
- {
69
- },
70
-
71
- mounted:function()
72
- {
73
- window.onresize = ()=> { this.OnSize() }
74
- this.OnSize();
75
- },
76
-
77
-
78
- methods:
79
- {
80
- OnChangeSymbol:function(symbol)
81
- {
82
-
83
- },
84
-
85
- OnSize:function()
86
- {
87
- var aryHQChart=[this.$refs.hqchart,this.$refs.hqchart2,this.$refs.hqchart3,this.$refs.hqchart4];
88
- for(var i in aryHQChart)
89
- {
90
- aryHQChart[i].OnSize();
91
- }
92
- }
93
- }
94
- }
95
-
96
- </script>
97
-
98
- <style>
99
-
100
-
101
- </style>
@@ -1,18 +0,0 @@
1
- import Promise from 'promise-polyfill'
2
- import Vue from 'vue'
3
- import ElementUI from 'element-ui'
4
- import 'element-ui/lib/theme-default/index.css';
5
- import locale from 'element-ui/lib/locale/lang/en'
6
- import App from './App.vue'
7
-
8
- if (!window.Promise) {
9
- window.Promise = Promise;
10
- }
11
-
12
-
13
- Vue.use(ElementUI,{ locale })
14
-
15
- new Vue({
16
- el: '#app',
17
- render: h => h(App)
18
- })