hqchart 1.1.12687 → 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 (228) hide show
  1. package/lib/umychart.vue.js +94 -50
  2. package/package.json +15 -47
  3. package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
  4. package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +409 -115
  5. package/src/jscommon/umychart.vue/umychart.vue.js +409 -115
  6. package/.babelrc +0 -6
  7. package/.vscode/settings.json +0 -4
  8. package/Makefile +0 -9
  9. package/README.md +0 -452
  10. package/index.js +0 -17
  11. package/postcss.config.js +0 -5
  12. package/src/index.html +0 -18
  13. package/src/jscommon/backup/announcement.png +0 -0
  14. package/src/jscommon/backup/announcement2.png +0 -0
  15. package/src/jscommon/backup/blocktrading.png +0 -0
  16. package/src/jscommon/backup/investor.png +0 -0
  17. package/src/jscommon/backup/pforecast.png +0 -0
  18. package/src/jscommon/backup/research.png +0 -0
  19. package/src/jscommon/backup/tradedetail.png +0 -0
  20. package/src/jscommon/backup/umychart - backup.js +0 -17631
  21. package/src/jscommon/backup/umychart.macro.js +0 -4
  22. package/src/jscommon/backup/umychart.macro.vue.js +0 -3
  23. package/src/jscommon/commonindextree.json +0 -92
  24. package/src/jscommon/index.html +0 -13
  25. package/src/jscommon/jschinamapdata.js +0 -3
  26. package/src/jscommon/umychart.NetworkFilterTest.js +0 -48803
  27. package/src/jscommon/umychart.aliYunnetwork.js +0 -47
  28. package/src/jscommon/umychart.cninfo.components/readme.txt +0 -1
  29. package/src/jscommon/umychart.complier.js +0 -25291
  30. package/src/jscommon/umychart.complier.node/umychart.complier.controller.js +0 -559
  31. package/src/jscommon/umychart.complier.node/umychart.complier.node.js +0 -7043
  32. package/src/jscommon/umychart.complier.node/umychart.data.node.js +0 -816
  33. package/src/jscommon/umychart.console.js +0 -12
  34. package/src/jscommon/umychart.deal.js +0 -1452
  35. package/src/jscommon/umychart.dragdiv.js +0 -48
  36. package/src/jscommon/umychart.index.data.js +0 -4132
  37. package/src/jscommon/umychart.js +0 -90257
  38. package/src/jscommon/umychart.keyboard.js +0 -1659
  39. package/src/jscommon/umychart.listctrl.js +0 -690
  40. package/src/jscommon/umychart.mind.js +0 -2203
  41. package/src/jscommon/umychart.network.js +0 -44
  42. package/src/jscommon/umychart.news.js +0 -823
  43. package/src/jscommon/umychart.node.build/buildall.bat +0 -1
  44. package/src/jscommon/umychart.node.build/umychart.node.bat +0 -1
  45. package/src/jscommon/umychart.node.build/umychart.node.export.js +0 -40
  46. package/src/jscommon/umychart.regressiontest.js +0 -400
  47. package/src/jscommon/umychart.report.js +0 -5803
  48. package/src/jscommon/umychart.scrollbar.js +0 -1345
  49. package/src/jscommon/umychart.stock.js +0 -4218
  50. package/src/jscommon/umychart.style.js +0 -618
  51. package/src/jscommon/umychart.testdata.js +0 -150
  52. package/src/jscommon/umychart.uniapp.build/buildall.bat +0 -1
  53. package/src/jscommon/umychart.uniapp.build/umychart.bat +0 -1
  54. package/src/jscommon/umychart.uniapp.build/umychart.export.js +0 -70
  55. package/src/jscommon/umychart.user.js +0 -137
  56. package/src/jscommon/umychart.version.js +0 -30
  57. package/src/jscommon/umychart.vue/umychart.aliYunnetwork.vue.js +0 -56
  58. package/src/jscommon/umychart.vue.build/buildall.bat +0 -4
  59. package/src/jscommon/umychart.vue.build/copy_codemirror.bat +0 -2
  60. package/src/jscommon/umychart.vue.build/umychart.aliYunnetwork.vue.export.js +0 -9
  61. package/src/jscommon/umychart.vue.build/umychart.dragdiv.bat +0 -1
  62. package/src/jscommon/umychart.vue.build/umychart.dragdiv.export.js +0 -6
  63. package/src/jscommon/umychart.vue.build/umychart.index.data.bat +0 -1
  64. package/src/jscommon/umychart.vue.build/umychart.index.data.export.js +0 -4
  65. package/src/jscommon/umychart.vue.build/umychart.listctrl.vue.export.js +0 -15
  66. package/src/jscommon/umychart.vue.build/umychart.regressiontest.vue.export.js +0 -7
  67. package/src/jscommon/umychart.vue.build/umychart.regressiontest.wechat.export.js +0 -12
  68. package/src/jscommon/umychart.vue.build/umychart.stock.bat +0 -1
  69. package/src/jscommon/umychart.vue.build/umychart.stock.vue.export.js +0 -16
  70. package/src/jscommon/umychart.vue.build/umychart.testdata.bat +0 -3
  71. package/src/jscommon/umychart.vue.build/umychart.testdata.vue.export.js +0 -7
  72. package/src/jscommon/umychart.vue.build/umychart.vue.bat +0 -8
  73. package/src/jscommon/umychart.vue.build/umychart.vue.export.js +0 -112
  74. package/src/jscommon/umychart.vue.components/empyt.vue +0 -51
  75. package/src/jscommon/umychart.vue.components/historydayline.vue +0 -240
  76. package/src/jscommon/umychart.vue.components/jsloader.adddialog.vue +0 -315
  77. package/src/jscommon/umychart.vue.components/jsloader.vue +0 -93
  78. package/src/jscommon/umychart.vue.components/jsvuecontainer.vue +0 -160
  79. package/src/jscommon/umychart.vue.components/jsvuecontainer2.0.vue +0 -391
  80. package/src/jscommon/umychart.vue.components/login.vue +0 -178
  81. package/src/jscommon/umychart.vue.components/queryContent.vue +0 -750
  82. package/src/jscommon/umychart.vue.components/readme.txt +0 -8
  83. package/src/jscommon/umychart.vue.components/searchsymbol.vue +0 -299
  84. package/src/jscommon/umychart.vue.components/simulatetrade.vue +0 -1471
  85. package/src/jscommon/umychart.vue.components/stockchart.vue +0 -343
  86. package/src/jscommon/umychart.vue.components/stockchartV2.vue +0 -195
  87. package/src/jscommon/umychart.vue.components/stockdeal.vue +0 -358
  88. package/src/jscommon/umychart.vue.components/stockdealcount.vue +0 -262
  89. package/src/jscommon/umychart.vue.components/stockdeallastest.vue +0 -316
  90. package/src/jscommon/umychart.vue.components/stockdrawtool.vue +0 -343
  91. package/src/jscommon/umychart.vue.components/stockfull.vue +0 -355
  92. package/src/jscommon/umychart.vue.components/stockinfo.demo.vue +0 -153
  93. package/src/jscommon/umychart.vue.components/stockinfo.vue +0 -685
  94. package/src/jscommon/umychart.vue.components/stockkline.demo.vue +0 -1904
  95. package/src/jscommon/umychart.vue.components/stockmultiorder.vue +0 -174
  96. package/src/jscommon/umychart.vue.components/stockmultiperiod.vue +0 -222
  97. package/src/jscommon/umychart.vue.components/stockorder.vue +0 -320
  98. package/src/jscommon/umychart.vue.components/stocktradeinfo.demo.vue +0 -250
  99. package/src/jscommon/umychart.vue.components/stocktradeinfo.vue +0 -1907
  100. package/src/jscommon/umychart.vue.components/test.vue +0 -0
  101. package/src/jscommon/umychart.wechat/getDate.wechat.js +0 -91
  102. package/src/jscommon/umychart.wechat/lighter.news.wechat.js +0 -262
  103. package/src/jscommon/umychart.wechat/readme.txt +0 -3
  104. package/src/jscommon/umychart.wechat/umychart.analyze.wechat.js +0 -551
  105. package/src/jscommon/umychart.wechat/umychart.apidraw.wechat.js +0 -126
  106. package/src/jscommon/umychart.wechat/umychart.bigV.wechat.js +0 -2510
  107. package/src/jscommon/umychart.wechat/umychart.chartframe.wechat.js +0 -2931
  108. package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +0 -9752
  109. package/src/jscommon/umychart.wechat/umychart.charttitle.wechat.js +0 -2023
  110. package/src/jscommon/umychart.wechat/umychart.complier.wechat.js +0 -14726
  111. package/src/jscommon/umychart.wechat/umychart.console.wechat.js +0 -8
  112. package/src/jscommon/umychart.wechat/umychart.coordinatedata.wechat.js +0 -3654
  113. package/src/jscommon/umychart.wechat/umychart.data.wechat.js +0 -2243
  114. package/src/jscommon/umychart.wechat/umychart.element.wechart.js +0 -132
  115. package/src/jscommon/umychart.wechat/umychart.explainer.wechat.js +0 -1077
  116. package/src/jscommon/umychart.wechat/umychart.extendchart.wechat.js +0 -1140
  117. package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +0 -2247
  118. package/src/jscommon/umychart.wechat/umychart.hqIndexformula.wechat.js +0 -941
  119. package/src/jscommon/umychart.wechat/umychart.index.data.wechat.js +0 -3628
  120. package/src/jscommon/umychart.wechat/umychart.index.wechat.js +0 -4074
  121. package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +0 -836
  122. package/src/jscommon/umychart.wechat/umychart.markethot.js +0 -50
  123. package/src/jscommon/umychart.wechat/umychart.network.wechart.js +0 -62
  124. package/src/jscommon/umychart.wechat/umychart.news.wechat.js +0 -3568
  125. package/src/jscommon/umychart.wechat/umychart.regressiontest.wechat.js +0 -412
  126. package/src/jscommon/umychart.wechat/umychart.report.wechat.js +0 -3983
  127. package/src/jscommon/umychart.wechat/umychart.resource.wechat.js +0 -919
  128. package/src/jscommon/umychart.wechat/umychart.shareimage.wechat.js +0 -681
  129. package/src/jscommon/umychart.wechat/umychart.simulatetrade.wechat.js +0 -238
  130. package/src/jscommon/umychart.wechat/umychart.stock.wechat.js +0 -4035
  131. package/src/jscommon/umychart.wechat/umychart.style.wechat.js +0 -419
  132. package/src/jscommon/umychart.wechat/umychart.uniapp.canvas.helper.js +0 -99
  133. package/src/jscommon/umychart.wechat/umychart.user.wechat.js +0 -588
  134. package/src/jscommon/umychart.wechat/umychart.userlog.wechat.js +0 -240
  135. package/src/jscommon/umychart.wechat/umychart.vedio.wechat.js +0 -112
  136. package/src/jscommon/umychart.wechat/umychart.version.wechat.js +0 -36
  137. package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +0 -12051
  138. package/src/jscommon/umychart.wechat/umychart.wechat.js +0 -15460
  139. package/src/jscommon/umychart.worker.js +0 -114
  140. package/src/jscommon/umychart.ws.stock.js +0 -110
  141. package/src/jscommon/umychart_python/.vscode/launch.json +0 -15
  142. package/src/jscommon/umychart_python/__init__.py +0 -4
  143. package/src/jscommon/umychart_python/build.cmd +0 -2
  144. package/src/jscommon/umychart_python/setup.py +0 -25
  145. package/src/jscommon/umychart_python/umychart_cache_testcase.py +0 -165
  146. package/src/jscommon/umychart_python/umychart_complier_data.py +0 -781
  147. package/src/jscommon/umychart_python/umychart_complier_help.py +0 -175
  148. package/src/jscommon/umychart_python/umychart_complier_job.py +0 -193
  149. package/src/jscommon/umychart_python/umychart_complier_jsalgorithm.py +0 -4144
  150. package/src/jscommon/umychart_python/umychart_complier_jscomplier.py +0 -177
  151. package/src/jscommon/umychart_python/umychart_complier_jsexecute.py +0 -517
  152. package/src/jscommon/umychart_python/umychart_complier_jsparser.py +0 -864
  153. package/src/jscommon/umychart_python/umychart_complier_jssymboldata.py +0 -1238
  154. package/src/jscommon/umychart_python/umychart_complier_jssymboldata_cache.py +0 -146
  155. package/src/jscommon/umychart_python/umychart_complier_jssymboldata_json.py +0 -106
  156. package/src/jscommon/umychart_python/umychart_complier_pandas_help.py +0 -80
  157. package/src/jscommon/umychart_python/umychart_complier_scanner.py +0 -554
  158. package/src/jscommon/umychart_python/umychart_complier_testcase.py +0 -362
  159. package/src/jscommon/umychart_python/umychart_complier_util.py +0 -30
  160. package/src/jscommon/umychart_python/umychart_webtemplate.py +0 -131
  161. package/src/jscommon/umychart_python/updatehqchartweb.bat +0 -5
  162. package/src/jscommon/vendor.js +0 -2
  163. package/src/pages/block.list.demo.page/App.vue +0 -117
  164. package/src/pages/block.list.demo.page/index.js +0 -12
  165. package/src/pages/brushTool.demo.page/App.vue +0 -19
  166. package/src/pages/brushTool.demo.page/index.js +0 -12
  167. package/src/pages/container.demo.page/App.vue +0 -118
  168. package/src/pages/container.demo.page/index.js +0 -18
  169. package/src/pages/dataZoom.demo.page/App.vue +0 -265
  170. package/src/pages/dataZoom.demo.page/components/dataZoom.vue +0 -303
  171. package/src/pages/dataZoom.demo.page/index.js +0 -12
  172. package/src/pages/historydayline.demo.page/App.vue +0 -57
  173. package/src/pages/historydayline.demo.page/index.js +0 -12
  174. package/src/pages/hq.demo.page/App.vue +0 -163
  175. package/src/pages/hq.demo.page/index.js +0 -12
  176. package/src/pages/hqchart.black/App.vue +0 -90
  177. package/src/pages/hqchart.black/components/searchsymbol.vue +0 -299
  178. package/src/pages/hqchart.black/components/stockdrawtool.vue +0 -300
  179. package/src/pages/hqchart.black/components/stockfull.vue +0 -313
  180. package/src/pages/hqchart.black/components/stockinfo.vue +0 -428
  181. package/src/pages/hqchart.black/components/stockkline.demo.vue +0 -1652
  182. package/src/pages/hqchart.black/components/stocktradeinfo.vue +0 -1337
  183. package/src/pages/hqchart.black/index.js +0 -30
  184. package/src/pages/hqchart.black/router/candlestickChart.vue +0 -108
  185. package/src/pages/hqchart.black/router/pricePointsTable.vue +0 -294
  186. package/src/pages/hqchart.black/router/stockDeallas.vue +0 -417
  187. package/src/pages/hqchart.black/router/timeShareChart.vue +0 -108
  188. package/src/pages/hqchart.page/App.vue +0 -101
  189. package/src/pages/hqchart.page/index.js +0 -18
  190. package/src/pages/index/App.vue +0 -1408
  191. package/src/pages/index/index.js +0 -7
  192. package/src/pages/indexHq/App.vue +0 -110
  193. package/src/pages/indexHq/index.js +0 -18
  194. package/src/pages/login.demo.page/App.vue +0 -22
  195. package/src/pages/login.demo.page/index.js +0 -12
  196. package/src/pages/queryContent.demo.page/App.vue +0 -29
  197. package/src/pages/queryContent.demo.page/index.js +0 -18
  198. package/src/pages/ranking.black/App.vue +0 -199
  199. package/src/pages/ranking.black/index.js +0 -18
  200. package/src/pages/search.demo.page/App.vue +0 -28
  201. package/src/pages/search.demo.page/index.js +0 -12
  202. package/src/pages/simulatetrade.demo.page/app.vue +0 -121
  203. package/src/pages/simulatetrade.demo.page/index.js +0 -17
  204. package/src/pages/stockdeal.demo.page/App.vue +0 -63
  205. package/src/pages/stockdeal.demo.page/index.js +0 -19
  206. package/src/pages/stockdealcount.demo.page/App.vue +0 -37
  207. package/src/pages/stockdealcount.demo.page/index.js +0 -12
  208. package/src/pages/stockdeallastest.demo.page/App.vue +0 -74
  209. package/src/pages/stockdeallastest.demo.page/index.js +0 -18
  210. package/src/pages/stockinfo.demo.page/App.vue +0 -92
  211. package/src/pages/stockinfo.demo.page/index.html +0 -13
  212. package/src/pages/stockinfo.demo.page/index.js +0 -19
  213. package/src/pages/stockkline.demo.page/App.vue +0 -55
  214. package/src/pages/stockkline.demo.page/index.js +0 -18
  215. package/src/pages/stockmultiorder.demo.page/App.vue +0 -149
  216. package/src/pages/stockmultiorder.demo.page/index.js +0 -18
  217. package/src/pages/stockmultiperiod.demo.page/App.vue +0 -87
  218. package/src/pages/stockmultiperiod.demo.page/index.js +0 -18
  219. package/src/pages/stockorder.demo.page/App.vue +0 -69
  220. package/src/pages/stockorder.demo.page/index.js +0 -18
  221. package/src/pages/test/App.vue +0 -22
  222. package/src/pages/test/index.js +0 -7
  223. package/src/pages/tradeinfopage/app.vue +0 -40
  224. package/src/pages/tradeinfopage/index.js +0 -7
  225. package/src/pages/tradeinfopage/tradeinfo.html +0 -12
  226. package/src/utils/urlObj.js +0 -81
  227. package/src/vendor.js +0 -2
  228. package/webpack.config.js +0 -104
@@ -1,358 +0,0 @@
1
- <!--
2
- 历史分笔
3
- -->
4
- <template>
5
- <div class="divstockdeal" ref="divstockdeal">
6
- <div class="table_content" ref="tableContent" v-show="IsTradeDay">
7
- <div class="tableWrap" v-for="(curTable,index) in TableData.CurentTables" :key="index">
8
- <table class="tabHori">
9
- <thead ref="tableHeader">
10
- <tr>
11
- <td>时间</td>
12
- <td class="alignCenter">价格</td>
13
- <td class="alignCenter">成交量(手)</td>
14
- </tr>
15
- </thead>
16
- <tbody>
17
- <tr v-for="(rowItem,ind) in curTable" :key="ind">
18
- <td>{{rowItem.Time}}</td>
19
- <td class="alignRight" :class="rowItem.PriceColor">{{rowItem.Price}}</td>
20
- <td class="alignRight">
21
- {{parseInt(rowItem.Vol)}}&nbsp;
22
- <span
23
- :class="rowItem.Flag == 'B' ? 'red' : 'green'"
24
- >{{rowItem.Flag}}</span>
25
- </td>
26
- </tr>
27
- </tbody>
28
- </table>
29
- </div>
30
- </div>
31
- <div class="notTradeDay" v-show="!IsTradeDay">不是交易日</div>
32
- <div id="paginationWrap" ref="paginationWrap" v-show="IsTradeDay">
33
- <el-pagination
34
- @size-change="handleSizeChange"
35
- @current-change="handleCurrentChange"
36
- :current-page.sync="Pagination.CurrentPage"
37
- :page-size="Pagination.PageSize"
38
- layout="prev, pager, next, jumper"
39
- :total="Pagination.Total"
40
- ></el-pagination>
41
- </div>
42
- </div>
43
- </template>
44
-
45
- <script>
46
- import JSCommonStock from "../umychart.vue/umychart.stock.vue.js"
47
- import StringFormat from '../umychart.vue/stockstringformat.js'
48
-
49
- export default {
50
- name: "StockDeal",
51
- data() {
52
- return {
53
- Symbol: "600000.sh",
54
- ChoiceCountIndex: "",
55
- CurrentDate: "20180508",
56
- IsReverseData: false,
57
- DealDay: null,
58
- TableData: {
59
- Meta: [],
60
- Selected: [],
61
- SelectedReverse: [],
62
- Paginationed: [],
63
- CurrentPageData: [],
64
- CurentTables: []
65
- }, //Meta:接口返回的数据,Selected:筛选后的数据,Paginationed:筛选后分页过的数据,CurrentPageData:当前页面所有表格的数据
66
- Pagination: {
67
- SingleTableCount: 0,
68
- CurrentPage: 1,
69
- PageSize: 20 * 6,
70
- Total: 10
71
- // IsShow:false
72
- },
73
- loadingBody: false,
74
- IsTradeDay: true
75
- };
76
- },
77
-
78
- props: ["ChoiceIndex", "ChoiceDate", "IsReverse", "DealSymbol"],
79
-
80
- //创建
81
- created: function() {
82
- console.log("[stockdeal::created]");
83
- this.ChoiceCountIndex = this.ChoiceIndex != null ? this.ChoiceIndex : "";
84
- this.CurrentDate = this.ChoiceDate != null ? this.ChoiceDate : "20180508";
85
- this.IsReverseData = this.IsReverse != null ? this.IsReverse : false;
86
- this.Symbol = this.DealSymbol != null ? this.DealSymbol : "600000.sh";
87
-
88
- this.DealDay = JSCommonStock.JSStock.GetDealDay(this.Symbol);
89
- this.DealDay.Date = this.CurrentDate;
90
- this.DealDay.InvokeUpdateUICallback = this.UpdateData;
91
- this.DealDay.RequestData();
92
- },
93
-
94
- mounted: function() {
95
- console.log("[stockdeal::mounted]");
96
- this.loadingBody = true;
97
- this.OnSize();
98
- },
99
- watch: {
100
- DealSymbol: function(val) {
101
- this.DealDay = JSCommonStock.JSStock.GetDealDay(val);
102
- this.DealDay.Date = this.CurrentDate;
103
- this.DealDay.InvokeUpdateUICallback = this.UpdateData;
104
- this.DealDay.RequestData();
105
- },
106
- ChoiceIndex: function(val) {
107
- //val: "",100,200,500,1000,2000,5000,10000
108
- console.log("[stockdeal::ChoiceIndex]:", val);
109
- var deal = this.TableData.Meta;
110
- this.ChoiceData(val, deal);
111
- },
112
- ChoiceDate: function(val) {
113
- console.log("[stockdeal::ChoiceDate]:", val);
114
- this.DealDay = JSCommonStock.JSStock.GetDealDay(this.Symbol);
115
- this.DealDay.Date = val;
116
- this.DealDay.InvokeUpdateUICallback = this.UpdateData;
117
- this.DealDay.RequestData();
118
- },
119
- IsReverse: function(val) {
120
- var data = val ? this.TableData.SelectedReverse : this.TableData.Selected;
121
- this.PaginationAllData(data);
122
- this.InitPageData(this.TableData.CurrentPageData);
123
- }
124
- },
125
-
126
- methods: {
127
- UpdateData() {
128
- console.log("[stockdeal::UpdateData]data:", this.DealDay.Data);
129
- var data = this.DealDay.Data;
130
- this.$emit("DealDay", data);
131
- if (data != null) {
132
- this.loadingBody = false;
133
- var yClose = data.YClose;
134
- var open = data.Open;
135
- if (data.Deal) {
136
- this.TableData.Meta = data.Deal;
137
- this.IsTradeDay = true;
138
- this.Pagination.CurrentPage = 1;
139
- this.ChoiceData(this.ChoiceCountIndex, data.Deal, open); //接收传入的筛选条件
140
- console.log("[stockdeal::UpdateData]ChoiceIndex:", this.ChoiceIndex);
141
- }
142
- } else {
143
- this.IsTradeDay = false;
144
- }
145
- },
146
- handleSizeChange(val) {
147
- console.log(`每页 ${val} 条`);
148
- },
149
- handleCurrentChange(val) {
150
- console.log("[::handleCurrentChange val]", val);
151
- this.TableData.CurrentPageData = this.TableData.Paginationed[val - 1];
152
- this.InitPageData(this.TableData.CurrentPageData);
153
- },
154
- // 成交量筛选方法
155
- ChoiceData(num, data, open) {
156
- var dataAry = [];
157
- console.log("[stockdeal::ChoiceData]data:", data);
158
- if (data.length > 0) {
159
- for (let i = 0; i < data.length; i++) {
160
- var item = data[i];
161
- var color = this.FormatValueColor(item.Price, open);
162
- var dataObj = {
163
- Time: this.processingTime(item.Time),
164
- Price: StringFormat.StockStringFormat.FormatValueString(item.Price,2),
165
- PriceColor: color,
166
- Vol: parseInt(item.Vol),
167
- Flag: item.Flag,
168
- Amount: item.Amount
169
- };
170
-
171
- if (num != "") {
172
- if (item.Vol >= num) {
173
- dataAry.push(dataObj);
174
- }
175
- } else {
176
- dataAry.push(dataObj);
177
- }
178
- }
179
- console.log("[::ChoiceData dataAry]", dataAry);
180
- this.TableData.Selected = dataAry;
181
- this.TableData.SelectedReverse = dataAry
182
- .slice(0, dataAry.length)
183
- .reverse(); //数组倒序
184
- this.Pagination.Total = this.TableData.Selected.length;
185
- this.PaginationAllData(this.TableData.Selected);
186
- this.InitPageData(this.TableData.CurrentPageData);
187
- console.log("[stockdeal::ChoiceData]TableData:", this.TableData);
188
- }
189
- },
190
- InitPageData(data) {
191
- var count = this.Pagination.SingleTableCount;
192
- console.log("[::InitPageData]count:", count);
193
- this.TableData.CurentTables = this.CutDataAry(count, 6, data);
194
- },
195
- UpdateDataShow(count) {
196
- this.Pagination.SingleTableCount = count;
197
- this.Pagination.PageSize = count * 6;
198
- this.PaginationAllData(this.TableData.Selected);
199
- this.InitPageData(this.TableData.CurrentPageData);
200
- },
201
- FormatValueColor(currentValue, targetValue) {
202
- var color = "";
203
- if (currentValue > targetValue) {
204
- color = "red";
205
- } else if (currentValue < targetValue) {
206
- color = "green";
207
- } else {
208
- color = "";
209
- }
210
- return color;
211
- },
212
- OnSize() {
213
- var divstockdeal = this.$refs.divstockdeal;
214
- var tableContent = this.$refs.tableContent;
215
- var paginationWrap = this.$refs.paginationWrap;
216
- var width = divstockdeal.clientWidth;
217
- var height = divstockdeal.clientHeight;
218
- if (height <= 0) return;
219
-
220
- var mainHight = height - paginationWrap.offsetHeight;
221
- var mainWdith = width + "px";
222
- var tdHeight = 20;
223
- var borderHeight = 1;
224
- var everyTableCount = Math.floor(
225
- (mainHight - tdHeight - borderHeight) / tdHeight
226
- );
227
- if (everyTableCount <= 0) {
228
- everyTableCount = 1;
229
- }
230
-
231
- this.UpdateDataShow(everyTableCount);
232
-
233
- tableContent.style.height = mainHight + "px";
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
- //处理SB
248
- // processingNum(num) {
249
- // if (num == 0) {
250
- // return "B";
251
- // } else if (num == 1) {
252
- // return "S";
253
- // } else {
254
- // return "C";
255
- // }
256
- // },
257
- PaginationAllData(data) {
258
- var dataAry = [];
259
- if (data.length > 0) {
260
- var everyCount = this.Pagination.PageSize;
261
- var pageCount = 0;
262
- var val = this.Pagination.Total % everyCount;
263
- if (val > 0) {
264
- pageCount = Math.floor(this.Pagination.Total / everyCount) + 1;
265
- } else {
266
- pageCount = Math.floor(this.Pagination.Total / everyCount);
267
- }
268
- console.log(
269
- "[::PaginationAllData everyCount pageCount]",
270
- everyCount,
271
- pageCount
272
- );
273
- this.TableData.Paginationed = this.CutDataAry(
274
- everyCount,
275
- pageCount,
276
- data
277
- );
278
- this.TableData.CurrentPageData = this.TableData.Paginationed[
279
- this.Pagination.CurrentPage - 1
280
- ];
281
- }
282
- },
283
- CutDataAry(everyCount, cutIndex, data) {
284
- var paginationAry = [];
285
- for (let i = 0; i < cutIndex; i++) {
286
- paginationAry.push(data.slice(everyCount * i, everyCount * (i + 1)));
287
- }
288
- return paginationAry;
289
- }
290
- }
291
- };
292
- </script>
293
-
294
- <style lang='less' scoped>
295
- .divstockdeal {
296
- width: 100%;
297
- height: 100%;
298
- .red {
299
- color: #ff0000;
300
- }
301
-
302
- .green {
303
- color: #009900;
304
- }
305
- .table_content {
306
- overflow-y: auto;
307
- height: 100%;
308
- width: 100%;
309
- display: flex;
310
- flex-direction: row;
311
- overflow-x: hidden;
312
-
313
- .tableWrap {
314
- flex-grow: 1;
315
- height: 100%;
316
-
317
- .tabHori {
318
- font: 12px "Microsoft Yahei";
319
- width: 100%;
320
- box-sizing: border-box;
321
- border-collapse: collapse;
322
- border: none;
323
- td,
324
- th {
325
- border: none;
326
- padding: 0 10px;
327
- line-height: 20px;
328
- }
329
- tr>td:last-child,tr>th:last-child{
330
- padding-left: 0;
331
- }
332
- .alignRight {
333
- text-align: right;
334
- }
335
- .alignCenter {
336
- text-align: center;
337
- }
338
- thead {
339
- td,
340
- th {
341
- border-bottom: 1px solid #ebeef5;
342
- }
343
- }
344
- tbody {
345
- tr > td:last-child,
346
- tr > th:last-child {
347
- border-right: 1px solid #ebeef5;
348
- }
349
- }
350
- tr > td:nth-of-type(n + 2),
351
- tr > th:nth-of-type(n + 2) {
352
- font-size: 14px;
353
- }
354
- }
355
- }
356
- }
357
- }
358
- </style>
@@ -1,262 +0,0 @@
1
- <!--
2
- 历史分价表
3
- -->
4
-
5
- <template>
6
- <div class="divstockdealcount" ref="divstockdealcount">
7
- <div class="tableContent" ref="tableContent" v-show="IsShow.HiddenDealcount">
8
- <table class="myTable">
9
- <thead>
10
- <tr>
11
- <td>成交价(元)</td>
12
- <td>成交量(手)</td>
13
- <td>占比</td>
14
- <th>占比图</th>
15
- </tr>
16
- </thead>
17
- <tbody>
18
- <tr v-for="(item,index) in PriceList" :key="index">
19
- <td>{{item.Price}}</td>
20
- <td>{{item.Vol}}</td>
21
- <td>{{item.Proportion}}</td>
22
- <th>
23
- <div class="chart" :style='{width:item.widthItem}'><span :style='item.BuyVol'></span><span :style='item.NoneVol'></span><span :style='item.SellVol'></span>
24
- </div>
25
- </th>
26
- </tr>
27
- </tbody>
28
- </table>
29
- </div>
30
- <div v-show="!IsShow.HiddenDealcount">不是交易日</div>
31
- <div id="paginationWrap" ref="paginationWrap" v-show="IsShow.HiddenDealcount">
32
- <el-pagination
33
- @current-change="handleCurrentChange"
34
- :current-page.sync="Pagination.CurrentPage"
35
- :page-size="Pagination.PageSize"
36
- layout="prev, pager, next, jumper"
37
- :total="Pagination.Total"
38
- ></el-pagination>
39
- </div>
40
- </div>
41
- </template>
42
-
43
- <script>
44
- import JSCommonStock from "../umychart.vue/umychart.stock.vue.js";
45
- import StringFormat from '../umychart.vue/stockstringformat.js'
46
-
47
- export default {
48
- name: "Stockdealcount",
49
- data() {
50
- return {
51
- Symbol: "600000.sh", //板块代码
52
- DealData: null, //数据类
53
- PriceList: [],
54
- ProportionList: [], //占比数组
55
- Date: "20180508",
56
- IsShow: {
57
- HiddenDealcount: true
58
- },
59
- Pagination: {
60
- CurrentPage: 0,
61
- PageSize: 0,
62
- Total: 0
63
- },
64
- DataList: [],
65
- ProportionTotalWidth:1,
66
- };
67
- },
68
- props: {
69
- DefaultSymbol: String,
70
- DefaultDate: String
71
- },
72
- watch: {
73
- DefaultSymbol(newV) {
74
- this.Symbol = newV;
75
- this.GetDealCountData();
76
- },
77
- DefaultDate(newV) {
78
- this.Date = newV;
79
- this.GetDealCountData();
80
- },
81
- 'Pagination.PageSize': function(value){
82
- var start = value * (this.Pagination.CurrentPage - 1);
83
- var end = value * this.Pagination.CurrentPage;
84
- this.PriceList = this.DataList.slice(start, end);
85
- }
86
- },
87
- created() {
88
- this.Symbol = this.DefaultSymbol != null ? this.DefaultSymbol : "600000.sh";
89
- this.Date = this.DefaultDate != null ? this.DefaultDate : "20180508";
90
- this.GetDealCountData();
91
- },
92
- mounted: function() {
93
- this.PriceList = this.DataList.slice(0, this.Pagination.PageSize);
94
- // console.log('this.PriceList::',this.PriceList)
95
- this.OnSize();
96
- },
97
-
98
- methods: {
99
- GetDealCountData() {
100
- this.DealData = JSCommonStock.JSStock.GetDealDay(this.Symbol);
101
- this.DealData.Date = this.Date;
102
- this.DealData.InvokeUpdateUICallback = this.GetData;
103
- this.DealData.RequestData();
104
- },
105
- // 获取数据
106
- GetData() {
107
- if (this.DealData.Data) {
108
- console.log('[StockDealCount::GetData]Data:',this.DealData.Data);
109
- this.Pagination.CurrentPage = 1;
110
- this.DataList = [];
111
- this.ProportionList = [];
112
- this.IsShow.HiddenDealcount = true;
113
- let DealData = this.DealData.Data;
114
- let dataList1 = this.DealData.Data.PriceList;
115
- let dataList2 = this.DealData.Data.PriceList;
116
- dataList1.forEach(value => {
117
- this.ProportionList.push(value.Proportion);
118
- });
119
- // 拿占比最大值
120
- let arr = this.ProportionList;
121
- arr.sort(function(a, b) {
122
- return a - b;
123
- });
124
- let maxProportion = arr[arr.length - 1]; //占比最大值
125
-
126
- dataList2.forEach(value => {
127
- let object = {
128
- Price: 0,
129
- Proportion: 0,
130
- Vol: 0,
131
- widthItem:0,
132
- BuyVol:{Width:0,height:'14px',backgroundColor:'#f00'},
133
- SellVol:{Width:0,height:'14px',backgroundColor:'#008000'},
134
- NoneVol:{Width:0,height:'14px',backgroundColor:'#ccc'},
135
- heightItem: 0,
136
- ColorDeal: ""
137
- };
138
- object.Price = StringFormat.StockStringFormat.FormatValueString(value.Price,2); //保留两位小数
139
- object.Vol = value.Vol / 100; // 股转换成手
140
- object.Proportion = StringFormat.StockStringFormat.FormatValueString(value.Proportion * 100,2)+'%';
141
- // var totalWidth = 200;
142
- object.widthItem = StringFormat.StockStringFormat.FormatValueString(value.Proportion / maxProportion * 100,2)+'%'; //最大占比为1,其余按比例
143
- object.heightItem = 14;
144
- var buyVol = value.BuyVol;
145
- var sellVol = value.SellVol;
146
- var noneVol = value.NoneVol;
147
- var totalVol = value.Vol;
148
- object.BuyVol.width = StringFormat.StockStringFormat.FormatValueString(buyVol / totalVol * 100,2)+'%';
149
- object.SellVol.width = StringFormat.StockStringFormat.FormatValueString(sellVol / totalVol * 100,2)+'%';
150
- object.NoneVol.width = StringFormat.StockStringFormat.FormatValueString(noneVol / totalVol * 100,2)+'%';
151
- // 判断占比图颜色
152
- if (object.Price - DealData.YClose > 0) {
153
- object.ColorDeal = "#f00";
154
- } else {
155
- object.ColorDeal = "#008000";
156
- }
157
- this.DataList.push(object);
158
- });
159
- this.PriceList = this.DataList.slice(0, this.Pagination.PageSize);
160
- this.Pagination.Total = this.DataList.length;
161
- } else {
162
- this.IsShow.HiddenDealcount = false;
163
- }
164
- },
165
-
166
- OnSize() {
167
- let divstockdealcount = this.$refs.divstockdealcount;
168
- let tableContent = this.$refs.tableContent;
169
- var paginationWrap = this.$refs.paginationWrap;
170
- let width = divstockdealcount.clientWidth;
171
- let height = divstockdealcount.clientHeight;
172
- console.log('stockdealcount::',height);
173
- if (height <= 0) return;
174
- let lineHeight = 20; //占比高度
175
- let borderHeight = 1;
176
- let mainHight =
177
- height - lineHeight - borderHeight - paginationWrap.offsetHeight;
178
- let mainWdith = width + "px";
179
- let tdHeight = 23;
180
- let everyTableCount = Math.floor(
181
- (mainHight - tdHeight - borderHeight) / tdHeight
182
- );
183
- if (everyTableCount <= 0) {
184
- everyTableCount = 1;
185
- }
186
- this.UpdateDataShow(everyTableCount);
187
- tableContent.style.height = mainHight + "px";
188
- },
189
- UpdateDataShow(count) {
190
- this.Pagination.PageSize = count;
191
- },
192
- handleCurrentChange(val) {
193
- this.Pagination.CurrentPage = val;
194
- this.changePageData()
195
- },
196
- changePageData(){
197
- var start = this.Pagination.PageSize * (this.Pagination.CurrentPage - 1);
198
- var end = this.Pagination.PageSize * this.Pagination.CurrentPage;
199
- this.PriceList = this.DataList.slice(start, end);
200
- }
201
- }
202
- };
203
- </script>
204
-
205
-
206
- <style lang="less">
207
- .divstockdealcount {
208
- height: 100%;
209
- border-top: none;
210
- padding: 0 10px;
211
- .tableContent {
212
- overflow-y: auto;
213
- height: 100%;
214
- width: 100%;
215
- display: -ms-flexbox;
216
- display: flex;
217
- -ms-flex-direction: row;
218
- flex-direction: row;
219
- overflow-x: hidden;
220
- .myTable {
221
- font-size: 12px;
222
- border-collapse: collapse;
223
- width: 100%;
224
- thead {
225
- td,
226
- th {
227
- background-color: #d4edff;
228
- }
229
- }
230
- td,
231
- th {
232
- border: 1px solid #d7d7df;
233
- border-left: none;
234
- border-right: none;
235
- font-size: 12px;
236
- font-weight: normal;
237
- // height: 22px;
238
- line-height: 20px;
239
- padding: 0px;
240
- }
241
- td {
242
- padding-right: 10px;
243
- text-align: right;
244
- width: 6%;
245
- }
246
- th {
247
- padding-left: 3%;
248
- text-align: left;
249
- }
250
- .chart {
251
- padding-top: 8px;
252
- background: #fafbfd;
253
- // padding: 4px auto;
254
- white-space: nowrap;
255
- span{
256
- display: inline-block;
257
- }
258
- }
259
- }
260
- }
261
- }
262
- </style>