hqchart 1.1.12693 → 1.1.12708

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 (229) hide show
  1. package/package.json +15 -47
  2. package/src/jscommon/readmo.txt +2 -2
  3. package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
  4. package/.babelrc +0 -6
  5. package/.vscode/settings.json +0 -4
  6. package/Makefile +0 -9
  7. package/README.md +0 -452
  8. package/index.js +0 -17
  9. package/postcss.config.js +0 -5
  10. package/src/index.html +0 -18
  11. package/src/jscommon/backup/announcement.png +0 -0
  12. package/src/jscommon/backup/announcement2.png +0 -0
  13. package/src/jscommon/backup/blocktrading.png +0 -0
  14. package/src/jscommon/backup/investor.png +0 -0
  15. package/src/jscommon/backup/pforecast.png +0 -0
  16. package/src/jscommon/backup/research.png +0 -0
  17. package/src/jscommon/backup/tradedetail.png +0 -0
  18. package/src/jscommon/backup/umychart - backup.js +0 -17631
  19. package/src/jscommon/backup/umychart.macro.js +0 -4
  20. package/src/jscommon/backup/umychart.macro.vue.js +0 -3
  21. package/src/jscommon/commonindextree.json +0 -92
  22. package/src/jscommon/index.html +0 -13
  23. package/src/jscommon/jschinamapdata.js +0 -3
  24. package/src/jscommon/phoneHorizontal/hengping.css +0 -283
  25. package/src/jscommon/phoneHorizontal/phone.html +0 -448
  26. package/src/jscommon/phoneHorizontal/rem.js +0 -28
  27. package/src/jscommon/umychart.NetworkFilterTest.js +0 -48803
  28. package/src/jscommon/umychart.aliYunnetwork.js +0 -47
  29. package/src/jscommon/umychart.cninfo.components/readme.txt +0 -1
  30. package/src/jscommon/umychart.complier.js +0 -25293
  31. package/src/jscommon/umychart.complier.node/umychart.complier.controller.js +0 -559
  32. package/src/jscommon/umychart.complier.node/umychart.complier.node.js +0 -7043
  33. package/src/jscommon/umychart.complier.node/umychart.data.node.js +0 -816
  34. package/src/jscommon/umychart.console.js +0 -12
  35. package/src/jscommon/umychart.deal.js +0 -1452
  36. package/src/jscommon/umychart.dragdiv.js +0 -48
  37. package/src/jscommon/umychart.index.data.js +0 -4132
  38. package/src/jscommon/umychart.js +0 -90542
  39. package/src/jscommon/umychart.keyboard.js +0 -1659
  40. package/src/jscommon/umychart.listctrl.js +0 -690
  41. package/src/jscommon/umychart.mind.js +0 -2203
  42. package/src/jscommon/umychart.network.js +0 -44
  43. package/src/jscommon/umychart.news.js +0 -823
  44. package/src/jscommon/umychart.node.build/buildall.bat +0 -1
  45. package/src/jscommon/umychart.node.build/umychart.node.bat +0 -1
  46. package/src/jscommon/umychart.node.build/umychart.node.export.js +0 -40
  47. package/src/jscommon/umychart.regressiontest.js +0 -400
  48. package/src/jscommon/umychart.report.js +0 -5803
  49. package/src/jscommon/umychart.scrollbar.js +0 -1345
  50. package/src/jscommon/umychart.stock.js +0 -4218
  51. package/src/jscommon/umychart.style.js +0 -625
  52. package/src/jscommon/umychart.testdata.js +0 -150
  53. package/src/jscommon/umychart.uniapp.build/buildall.bat +0 -1
  54. package/src/jscommon/umychart.uniapp.build/umychart.bat +0 -1
  55. package/src/jscommon/umychart.uniapp.build/umychart.export.js +0 -70
  56. package/src/jscommon/umychart.user.js +0 -137
  57. package/src/jscommon/umychart.version.js +0 -30
  58. package/src/jscommon/umychart.vue/umychart.aliYunnetwork.vue.js +0 -56
  59. package/src/jscommon/umychart.vue.build/buildall.bat +0 -4
  60. package/src/jscommon/umychart.vue.build/copy_codemirror.bat +0 -2
  61. package/src/jscommon/umychart.vue.build/umychart.aliYunnetwork.vue.export.js +0 -9
  62. package/src/jscommon/umychart.vue.build/umychart.dragdiv.bat +0 -1
  63. package/src/jscommon/umychart.vue.build/umychart.dragdiv.export.js +0 -6
  64. package/src/jscommon/umychart.vue.build/umychart.index.data.bat +0 -1
  65. package/src/jscommon/umychart.vue.build/umychart.index.data.export.js +0 -4
  66. package/src/jscommon/umychart.vue.build/umychart.listctrl.vue.export.js +0 -15
  67. package/src/jscommon/umychart.vue.build/umychart.regressiontest.vue.export.js +0 -7
  68. package/src/jscommon/umychart.vue.build/umychart.regressiontest.wechat.export.js +0 -12
  69. package/src/jscommon/umychart.vue.build/umychart.stock.bat +0 -1
  70. package/src/jscommon/umychart.vue.build/umychart.stock.vue.export.js +0 -16
  71. package/src/jscommon/umychart.vue.build/umychart.testdata.bat +0 -3
  72. package/src/jscommon/umychart.vue.build/umychart.testdata.vue.export.js +0 -7
  73. package/src/jscommon/umychart.vue.build/umychart.vue.bat +0 -8
  74. package/src/jscommon/umychart.vue.build/umychart.vue.export.js +0 -112
  75. package/src/jscommon/umychart.vue.components/empyt.vue +0 -51
  76. package/src/jscommon/umychart.vue.components/historydayline.vue +0 -240
  77. package/src/jscommon/umychart.vue.components/jsloader.adddialog.vue +0 -315
  78. package/src/jscommon/umychart.vue.components/jsloader.vue +0 -93
  79. package/src/jscommon/umychart.vue.components/jsvuecontainer.vue +0 -160
  80. package/src/jscommon/umychart.vue.components/jsvuecontainer2.0.vue +0 -391
  81. package/src/jscommon/umychart.vue.components/login.vue +0 -178
  82. package/src/jscommon/umychart.vue.components/queryContent.vue +0 -750
  83. package/src/jscommon/umychart.vue.components/readme.txt +0 -8
  84. package/src/jscommon/umychart.vue.components/searchsymbol.vue +0 -299
  85. package/src/jscommon/umychart.vue.components/simulatetrade.vue +0 -1471
  86. package/src/jscommon/umychart.vue.components/stockchart.vue +0 -343
  87. package/src/jscommon/umychart.vue.components/stockchartV2.vue +0 -195
  88. package/src/jscommon/umychart.vue.components/stockdeal.vue +0 -358
  89. package/src/jscommon/umychart.vue.components/stockdealcount.vue +0 -262
  90. package/src/jscommon/umychart.vue.components/stockdeallastest.vue +0 -316
  91. package/src/jscommon/umychart.vue.components/stockdrawtool.vue +0 -343
  92. package/src/jscommon/umychart.vue.components/stockfull.vue +0 -355
  93. package/src/jscommon/umychart.vue.components/stockinfo.demo.vue +0 -153
  94. package/src/jscommon/umychart.vue.components/stockinfo.vue +0 -685
  95. package/src/jscommon/umychart.vue.components/stockkline.demo.vue +0 -1904
  96. package/src/jscommon/umychart.vue.components/stockmultiorder.vue +0 -174
  97. package/src/jscommon/umychart.vue.components/stockmultiperiod.vue +0 -222
  98. package/src/jscommon/umychart.vue.components/stockorder.vue +0 -320
  99. package/src/jscommon/umychart.vue.components/stocktradeinfo.demo.vue +0 -250
  100. package/src/jscommon/umychart.vue.components/stocktradeinfo.vue +0 -1907
  101. package/src/jscommon/umychart.vue.components/test.vue +0 -0
  102. package/src/jscommon/umychart.wechat/getDate.wechat.js +0 -91
  103. package/src/jscommon/umychart.wechat/lighter.news.wechat.js +0 -262
  104. package/src/jscommon/umychart.wechat/readme.txt +0 -3
  105. package/src/jscommon/umychart.wechat/umychart.analyze.wechat.js +0 -551
  106. package/src/jscommon/umychart.wechat/umychart.apidraw.wechat.js +0 -126
  107. package/src/jscommon/umychart.wechat/umychart.bigV.wechat.js +0 -2510
  108. package/src/jscommon/umychart.wechat/umychart.chartframe.wechat.js +0 -2942
  109. package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +0 -9752
  110. package/src/jscommon/umychart.wechat/umychart.charttitle.wechat.js +0 -2023
  111. package/src/jscommon/umychart.wechat/umychart.complier.wechat.js +0 -14726
  112. package/src/jscommon/umychart.wechat/umychart.console.wechat.js +0 -8
  113. package/src/jscommon/umychart.wechat/umychart.coordinatedata.wechat.js +0 -3654
  114. package/src/jscommon/umychart.wechat/umychart.data.wechat.js +0 -2243
  115. package/src/jscommon/umychart.wechat/umychart.element.wechart.js +0 -132
  116. package/src/jscommon/umychart.wechat/umychart.explainer.wechat.js +0 -1077
  117. package/src/jscommon/umychart.wechat/umychart.extendchart.wechat.js +0 -1140
  118. package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +0 -2247
  119. package/src/jscommon/umychart.wechat/umychart.hqIndexformula.wechat.js +0 -941
  120. package/src/jscommon/umychart.wechat/umychart.index.data.wechat.js +0 -3628
  121. package/src/jscommon/umychart.wechat/umychart.index.wechat.js +0 -4074
  122. package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +0 -836
  123. package/src/jscommon/umychart.wechat/umychart.markethot.js +0 -50
  124. package/src/jscommon/umychart.wechat/umychart.network.wechart.js +0 -62
  125. package/src/jscommon/umychart.wechat/umychart.news.wechat.js +0 -3568
  126. package/src/jscommon/umychart.wechat/umychart.regressiontest.wechat.js +0 -412
  127. package/src/jscommon/umychart.wechat/umychart.report.wechat.js +0 -3983
  128. package/src/jscommon/umychart.wechat/umychart.resource.wechat.js +0 -919
  129. package/src/jscommon/umychart.wechat/umychart.shareimage.wechat.js +0 -681
  130. package/src/jscommon/umychart.wechat/umychart.simulatetrade.wechat.js +0 -238
  131. package/src/jscommon/umychart.wechat/umychart.stock.wechat.js +0 -4035
  132. package/src/jscommon/umychart.wechat/umychart.style.wechat.js +0 -419
  133. package/src/jscommon/umychart.wechat/umychart.uniapp.canvas.helper.js +0 -99
  134. package/src/jscommon/umychart.wechat/umychart.user.wechat.js +0 -588
  135. package/src/jscommon/umychart.wechat/umychart.userlog.wechat.js +0 -240
  136. package/src/jscommon/umychart.wechat/umychart.vedio.wechat.js +0 -112
  137. package/src/jscommon/umychart.wechat/umychart.version.wechat.js +0 -36
  138. package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +0 -12055
  139. package/src/jscommon/umychart.wechat/umychart.wechat.js +0 -15460
  140. package/src/jscommon/umychart.worker.js +0 -114
  141. package/src/jscommon/umychart.ws.stock.js +0 -110
  142. package/src/jscommon/umychart_python/.vscode/launch.json +0 -15
  143. package/src/jscommon/umychart_python/__init__.py +0 -4
  144. package/src/jscommon/umychart_python/build.cmd +0 -2
  145. package/src/jscommon/umychart_python/setup.py +0 -25
  146. package/src/jscommon/umychart_python/umychart_cache_testcase.py +0 -165
  147. package/src/jscommon/umychart_python/umychart_complier_data.py +0 -781
  148. package/src/jscommon/umychart_python/umychart_complier_help.py +0 -175
  149. package/src/jscommon/umychart_python/umychart_complier_job.py +0 -193
  150. package/src/jscommon/umychart_python/umychart_complier_jsalgorithm.py +0 -4144
  151. package/src/jscommon/umychart_python/umychart_complier_jscomplier.py +0 -177
  152. package/src/jscommon/umychart_python/umychart_complier_jsexecute.py +0 -517
  153. package/src/jscommon/umychart_python/umychart_complier_jsparser.py +0 -864
  154. package/src/jscommon/umychart_python/umychart_complier_jssymboldata.py +0 -1238
  155. package/src/jscommon/umychart_python/umychart_complier_jssymboldata_cache.py +0 -146
  156. package/src/jscommon/umychart_python/umychart_complier_jssymboldata_json.py +0 -106
  157. package/src/jscommon/umychart_python/umychart_complier_pandas_help.py +0 -80
  158. package/src/jscommon/umychart_python/umychart_complier_scanner.py +0 -554
  159. package/src/jscommon/umychart_python/umychart_complier_testcase.py +0 -362
  160. package/src/jscommon/umychart_python/umychart_complier_util.py +0 -30
  161. package/src/jscommon/umychart_python/umychart_webtemplate.py +0 -131
  162. package/src/jscommon/umychart_python/updatehqchartweb.bat +0 -5
  163. package/src/jscommon/vendor.js +0 -2
  164. package/src/pages/block.list.demo.page/App.vue +0 -117
  165. package/src/pages/block.list.demo.page/index.js +0 -12
  166. package/src/pages/brushTool.demo.page/App.vue +0 -19
  167. package/src/pages/brushTool.demo.page/index.js +0 -12
  168. package/src/pages/container.demo.page/App.vue +0 -118
  169. package/src/pages/container.demo.page/index.js +0 -18
  170. package/src/pages/dataZoom.demo.page/App.vue +0 -265
  171. package/src/pages/dataZoom.demo.page/components/dataZoom.vue +0 -303
  172. package/src/pages/dataZoom.demo.page/index.js +0 -12
  173. package/src/pages/historydayline.demo.page/App.vue +0 -57
  174. package/src/pages/historydayline.demo.page/index.js +0 -12
  175. package/src/pages/hq.demo.page/App.vue +0 -163
  176. package/src/pages/hq.demo.page/index.js +0 -12
  177. package/src/pages/hqchart.black/App.vue +0 -90
  178. package/src/pages/hqchart.black/components/searchsymbol.vue +0 -299
  179. package/src/pages/hqchart.black/components/stockdrawtool.vue +0 -300
  180. package/src/pages/hqchart.black/components/stockfull.vue +0 -313
  181. package/src/pages/hqchart.black/components/stockinfo.vue +0 -428
  182. package/src/pages/hqchart.black/components/stockkline.demo.vue +0 -1652
  183. package/src/pages/hqchart.black/components/stocktradeinfo.vue +0 -1337
  184. package/src/pages/hqchart.black/index.js +0 -30
  185. package/src/pages/hqchart.black/router/candlestickChart.vue +0 -108
  186. package/src/pages/hqchart.black/router/pricePointsTable.vue +0 -294
  187. package/src/pages/hqchart.black/router/stockDeallas.vue +0 -417
  188. package/src/pages/hqchart.black/router/timeShareChart.vue +0 -108
  189. package/src/pages/hqchart.page/App.vue +0 -101
  190. package/src/pages/hqchart.page/index.js +0 -18
  191. package/src/pages/index/App.vue +0 -1408
  192. package/src/pages/index/index.js +0 -7
  193. package/src/pages/indexHq/App.vue +0 -110
  194. package/src/pages/indexHq/index.js +0 -18
  195. package/src/pages/login.demo.page/App.vue +0 -22
  196. package/src/pages/login.demo.page/index.js +0 -12
  197. package/src/pages/queryContent.demo.page/App.vue +0 -29
  198. package/src/pages/queryContent.demo.page/index.js +0 -18
  199. package/src/pages/ranking.black/App.vue +0 -199
  200. package/src/pages/ranking.black/index.js +0 -18
  201. package/src/pages/search.demo.page/App.vue +0 -28
  202. package/src/pages/search.demo.page/index.js +0 -12
  203. package/src/pages/simulatetrade.demo.page/app.vue +0 -121
  204. package/src/pages/simulatetrade.demo.page/index.js +0 -17
  205. package/src/pages/stockdeal.demo.page/App.vue +0 -63
  206. package/src/pages/stockdeal.demo.page/index.js +0 -19
  207. package/src/pages/stockdealcount.demo.page/App.vue +0 -37
  208. package/src/pages/stockdealcount.demo.page/index.js +0 -12
  209. package/src/pages/stockdeallastest.demo.page/App.vue +0 -74
  210. package/src/pages/stockdeallastest.demo.page/index.js +0 -18
  211. package/src/pages/stockinfo.demo.page/App.vue +0 -92
  212. package/src/pages/stockinfo.demo.page/index.html +0 -13
  213. package/src/pages/stockinfo.demo.page/index.js +0 -19
  214. package/src/pages/stockkline.demo.page/App.vue +0 -55
  215. package/src/pages/stockkline.demo.page/index.js +0 -18
  216. package/src/pages/stockmultiorder.demo.page/App.vue +0 -149
  217. package/src/pages/stockmultiorder.demo.page/index.js +0 -18
  218. package/src/pages/stockmultiperiod.demo.page/App.vue +0 -87
  219. package/src/pages/stockmultiperiod.demo.page/index.js +0 -18
  220. package/src/pages/stockorder.demo.page/App.vue +0 -69
  221. package/src/pages/stockorder.demo.page/index.js +0 -18
  222. package/src/pages/test/App.vue +0 -22
  223. package/src/pages/test/index.js +0 -7
  224. package/src/pages/tradeinfopage/app.vue +0 -40
  225. package/src/pages/tradeinfopage/index.js +0 -7
  226. package/src/pages/tradeinfopage/tradeinfo.html +0 -12
  227. package/src/utils/urlObj.js +0 -81
  228. package/src/vendor.js +0 -2
  229. package/webpack.config.js +0 -104
@@ -1,1471 +0,0 @@
1
- <template>
2
- <div class="simulateContainer" ref='simulateContainer' style='height: 215px;'>
3
- <div class="collapseWrap" ref='collapseWrap' v-show='IsShow.CollapseWrap'>
4
- <p class="block" :class='{"hide":IsCollapse}' @click='collapseContainer'></p>
5
- </div>
6
- <div class="topAccountInfo" ref='topAccountInfo'>
7
- <!-- 底部数据 -->
8
- <p><span>{{TopAccountData.Account.Value}}</span></p>
9
- <p><span>{{TopAccountData.TotalMoney.Text}}</span><span>{{TopAccountData.TotalMoney.Value}}</span></p>
10
- <p><span>{{TopAccountData.Available.Text}}</span><span>{{TopAccountData.Available.Value}}</span></p>
11
- <p><span>{{TopAccountData.TotalMarketValue.Text}}</span><span>{{TopAccountData.TotalMarketValue.Value}}</span>
12
- </p>
13
- <p><span>{{TopAccountData.TotalProfitRate.Text}}</span><span>{{TopAccountData.TotalProfitRate.Value}}</span>
14
- </p>
15
- </div>
16
- <div class="oprContainer" :style="{height:OprContainerH+'px'}">
17
- <div class="oprType" ref='oprType'>
18
- <div class="" v-for='(item,index) in DefaultOprType' :key='index'
19
- :class='{active:OprTypeIndex == index}' @click='ChangeOprType(item,index)'>
20
- <span>{{item.Text}} <i :class="OprTypeIndex == index ? 'el-icon-arrow-up colorWhite' : 'el-icon-arrow-down'" v-show='item.Children.length > 0'></i></span>
21
- <div class="menuTwo" v-show='OprTypeIndex == index'>
22
- <p v-for='(child,ind) in item.Children' :key='ind' :class='{active:ind == OprMenuTwoIndex}'
23
- @click.stop='CheckTrade(item,child,ind)'>{{child}}</p>
24
- </div>
25
- </div>
26
- </div>
27
- <div class="oprInfo" v-show='IsShow.Buy' ref='oprInfoBuy'>
28
- <!-- 买入 -->
29
- <div class="symbolWrap"><span class="title">证券代码</span>
30
- <div class="inputBox"><input type="text" maxlength="9" v-model='Symbol' @keyup='SpellSock()'>
31
- <div class="stockList" v-show='IsShow.SpellListEle'>
32
- <p class="item" v-for='(item,index) in SpellStockData' @click='hideSpellList(item)'
33
- :key='index'><span class="symbol">{{item.Symbol}}</span><span>{{item.Name}}</span></p>
34
- </div>
35
- </div>
36
- </div>
37
- <div class="aa"><span class="title">买入价格</span>
38
- <div class="inputCalu"><span class="min" @click='MinPriceValue'>-</span><input type="text"
39
- v-model='BuyInputData.Price'><span class="add" @click='AddPriceValue'>+</span></div>
40
- <div></div>
41
- </div>
42
- <div class="volWrap"><span class="title">可买数量</span>
43
- <div class="inputBox"><input type="text" v-model='BuyInputData.Amount'><span>股</span></div>
44
- </div>
45
- <div class="aa"><span class="title">买入数量</span>
46
- <div class="inputCalu"><span class="min" @click='MinVolValue'>-</span><input type="text"
47
- v-model='BuyInputData.Vol'><span class="add" @click='AddVolValue'>+</span></div>
48
- <span>股</span>
49
- </div>
50
- <div class="rates"><span v-for='(item,index) in RateList' :key='index'
51
- @click='CalVolByRate(item.Value)'>{{item.Text}}</span></div>
52
- <div class="oprBtn"><span class="buyBtn" @click='QueryApi'>买入</span></div>
53
- </div>
54
- <div class="oprInfo" v-show='IsShow.Sell' ref='oprInfoSell'>
55
- <!-- 卖出 -->
56
- <div class="symbolWrap"><span class="title">证券代码</span>
57
- <div class="inputBox"><input type="text" maxlength="9" v-model='Symbol' @keyup='SpellSock()'>
58
- <div class="stockList" v-show='IsShow.SpellListEle'>
59
- <p class="item" v-for='(item,index) in SpellStockData' @click='hideSpellList(item.Symbol)'
60
- :key='index'><span class="symbol">{{item.Symbol}}</span><span>{{item.Name}}</span></p>
61
- </div>
62
- </div>
63
- </div>
64
- <div class="aa"><span class="title">卖出价格</span>
65
- <div class="inputCalu"><span class="min" @click='MinPriceValue'>-</span><input type="text"
66
- v-model='SellInputData.Price'><span class="add" @click='AddPriceValue'>+</span></div>
67
- <div></div>
68
- </div>
69
- <div class="volWrap"><span class="title">可卖数量</span>
70
- <div class="inputBox"><input type="text" v-model='SellInputData.Amount'><span>股</span></div>
71
- </div>
72
- <div class="aa"><span class="title">卖出数量</span>
73
- <div class="inputCalu"><span class="min" @click='MinVolValue'>-</span><input type="text"
74
- v-model='SellInputData.Vol'><span class="add" @click='AddVolValue'>+</span></div>
75
- <span>股</span>
76
- </div>
77
- <div class="rates"><span v-for='(item,index) in RateList' :key='index'
78
- @click='CalVolByRate(item.Value)'>{{item.Text}}</span></div>
79
- <div class="oprBtn"><span class="sellBtn" @click='QueryApi'>卖出</span></div>
80
- </div>
81
- <div class="tradeInfo" v-show='IsShow.TradeInfo' :style="{width:TradeInfoWidth+'px'}">
82
- <el-table :max-height='TableMaxheight' :data="CapitalTableData"
83
- style="width: 100%" :row-class-name="ClassNameByRateFun" highlight-current-row @current-change="selectCurrentRow">
84
- <el-table-column v-for='(item,index) in CapitalTHeader' :key='index' :prop='item.Prop' :label='item.Label' :align="index>1 ? 'right':'left'"></el-table-column>
85
- </el-table>
86
- </div>
87
- <div class="CancelContainer" v-show='IsShow.Cancel' :style="{width:CheckWidth+'px'}">
88
- <!-- 撤单 -->
89
- <div class="tableTopSelct" ref='tableTopSelct'><span class="countText">共{{CancelTableData.length}}条</span>
90
- <p><span class="borderBtn" @click='QueryCancelApi'>撤单</span><span class="borderBtn" @click='QueryEntrustApi'>刷新</span></p>
91
- </div>
92
- <el-table ref='tabelForCancel' :max-height="CancelTableMaxheight" :data="CancelTableData" style="width: 100%" highlight-current-row @current-change="selectCurrentRow"
93
- :row-class-name="ClassNameByBuySellFun">
94
- <el-table-column v-for='(item,index) in EntrustTHeader' :key='index' :prop='item.Prop' :align="index > 1 ? 'right' : 'left'"
95
- :label='item.Label'></el-table-column>
96
- </el-table>
97
- </div>
98
- <div class="checkTableContainer" v-show='IsShow.Check' :style="{width:CheckWidth+'px'}">
99
- <!-- 右侧查询部分 -->
100
- <div class="dateSelect" ref='dateSelect' v-show='IsShow.DateRange'>
101
- 查询日期
102
- <el-date-picker v-model="dateValue1" type="date" placeholder="选择日期" @change='GetStartDate'></el-date-picker>
103
- <span class='spaceText'>至</span>
104
- <el-date-picker v-model="dateValue2" type="date" placeholder="选择日期" @change='GetEndDate'></el-date-picker>
105
- <span class='borderBtn' @click='QueryHistory'>查询</span>
106
- </div>
107
-
108
- <el-table v-show='IsShow.CheckTable.Capital' :max-height="TableMaxheight" @current-change="selectCurrentRow" :data="CapitalTableData"
109
- style="width: 100%" :row-class-name="ClassNameByRateFun">
110
- <el-table-column v-for='(item,index) in CapitalTHeader' :key='index' :prop='item.Prop' :align="index>1 ? 'right':'left'"
111
- :label='item.Label'></el-table-column>
112
- </el-table>
113
-
114
- <el-table v-show='IsShow.CheckTable.Entrust' :max-height="TableMaxheight" :data="EntrustTableData" @current-change="selectCurrentRow"
115
- style="width: 100%" :row-class-name="ClassNameByBuySellFun">
116
- <el-table-column v-for='(item,index) in EntrustTHeader' :key='index' :prop='item.Prop' :align="index > 3 ? 'right' : 'left'"
117
- :label='item.Label'></el-table-column>
118
- </el-table>
119
-
120
- <el-table v-show='IsShow.CheckTable.Deal' :max-height="TableMaxheight" :data="DealTableData" style="width: 100%" @current-change="selectCurrentRow"
121
- :row-class-name="ClassNameByBuySellFun">
122
- <el-table-column v-for='(item,index) in DealTHeader' :key='index' :prop='item.Prop' :align="index > 2 ? 'right' : 'left'"
123
- :label='item.Label'></el-table-column>
124
- </el-table>
125
-
126
- <el-table v-show='IsShow.CheckTable.HistoryEntrust' :max-height="HistoryTableMaxheight" :data="HistoryEntrustTableData" @current-change="selectCurrentRow"
127
- style="width: 100%" :row-class-name="ClassNameByBuySellFun">
128
- <el-table-column v-for='(item,index) in HistoryEntrustTHeader' :key='index' :prop='item.Prop' :align="index > 3 ? 'right' : 'left'"
129
- :label='item.Label'></el-table-column>
130
- </el-table>
131
-
132
- <el-table v-show='IsShow.CheckTable.HistoryDeal' :max-height="HistoryTableMaxheight" :data="HistoryDealTableData" @current-change="selectCurrentRow"
133
- style="width: 100%" :row-class-name="ClassNameByBuySellFun">
134
- <el-table-column v-for='(item,index) in HistoryDealTHeader' :key='index' :prop='item.Prop' :align="index > 3 ? 'right' : 'left'"
135
- :label='item.Label'></el-table-column>
136
- </el-table>
137
- </div>
138
-
139
- </div>
140
- </div>
141
- </template>
142
-
143
- <script>
144
-
145
- import JSCommonStock from '../umychart.vue/umychart.stock.vue.js'
146
- import JSCommon from '../umychart.vue/umychart.vue.js'
147
- import $ from "jquery"
148
-
149
- // import Vue from 'vue'
150
- // import ElementUI from 'element-ui'
151
- // import '../../../node_modules/element-ui/lib/theme-default/index.css';
152
- // import locale from '../../../node_modules/element-ui/lib/locale/lang/en'
153
-
154
- // Vue.use(ElementUI,{ locale })
155
-
156
- function DefaultData(){}
157
-
158
- DefaultData.SetBuyInput = function(){
159
- return { Symbol: '', Name: '', Price: 0, Amount: 0, Vol: 0 }; /* Amount 可买数量 */
160
- }
161
-
162
- DefaultData.SetSellInput = function(){
163
- return { Symbol: '', Price: 0, Amount: 0, Vol: 0 }; /* Amount 可卖数量 */
164
- }
165
-
166
- export default
167
- {
168
- name: 'SimulateTrade',
169
- data() {
170
- return {
171
- BuyInputData: DefaultData.SetBuyInput(),
172
- SellInputData: DefaultData.SetSellInput(),
173
- CancelData: {},
174
- Symbol: '',
175
- SearchStock: null,
176
- SpellStockData: [],
177
- IsSpell: true, //是否要联想
178
- DefaultOprType: [
179
- {
180
- Text: '买入',
181
- ActiveIndex: -1,
182
- Children: [],
183
- },
184
- {
185
- Text: '卖出',
186
- ActiveIndex: -1,
187
- Children: [],
188
- },
189
- {
190
- Text: '撤单',
191
- ActiveIndex: -1,
192
- Children: [],
193
- },
194
- {
195
- Text: '查询',
196
- ActiveIndex: 0,
197
- Children: ['资金股份', '当日委托', '当日成交', '历史委托', '历史成交'],
198
- },
199
- ],
200
- IsCollapse:false, //收起容器
201
- dateValue1:'', //日期选择
202
- dateValue2:'',
203
- DatePicker:{
204
- Start:0,
205
- End:0
206
- },
207
- OprType: '买入',
208
- IsShow: {
209
- SpellListEle: false,
210
- // MenuTwo:false,
211
- Buy: true,
212
- TradeInfo: true,
213
- Sell: false,
214
- Cancel: false,
215
- DateRange: false,
216
- CheckTable: {
217
- Capital: true,
218
- Entrust: false,
219
- Deal: false,
220
- HistoryEntrust: false,
221
- HistoryDeal: false
222
- },
223
- CollapseWrap:true //收起按钮
224
- },
225
- RateList: [
226
- { Text: '1/4', Value: 1 / 4 },
227
- { Text: '1/3', Value: 1 / 3 },
228
- { Text: '1/2', Value: 1 / 2 },
229
- { Text: '全部', Value: 1 }
230
- ],
231
- Domain: 'https://opensource.zealink.com/API/',
232
-
233
- tableData: [],
234
- currentRow: {},
235
- BuySellRow:{},
236
- EntrustTHeader: [
237
- { Prop: 'time', Label: '委托时间', Width: '180' },
238
- { Prop: 'oprid', Label: '操作标志', Width: '180' },
239
- { Prop: 'symbol', Label: '证券代码', Width: '180' },
240
- { Prop: 'name', Label: '证券名称', Width: '180' },
241
- { Prop: 'status', Label: '状态说明', Width: '180' },
242
- { Prop: 'price', Label: '委托价格', Width: '180' },
243
- { Prop: 'vol', Label: '委托数量', Width: '180' },
244
- { Prop: 'tradeVol', Label: '成交数量', Width: '180' },
245
- { Prop: 'bookid', Label: '申报编号', Width: '180' }
246
- ],
247
- DealTHeader: [
248
- { Prop: 'time', Label: '成交时间', Width: '180' },
249
- { Prop: 'symbol', Label: '证券代码', Width: '180' },
250
- { Prop: 'name', Label: '证券名称', Width: '180' },
251
- { Prop: 'oprid', Label: '操作标志', Width: '180' },
252
- { Prop: 'vol', Label: '成交数量', Width: '180' },
253
- { Prop: 'price', Label: '成交价格', Width: '180' },
254
- { Prop: 'amount', Label: '成交金额', Width: '180' },
255
- { Prop: 'bookid', Label: '申报编号', Width: '180' }
256
- ],
257
- HistoryEntrustTHeader: [
258
- { Prop: 'date', Label: '委托日期', Width: '180' },
259
- { Prop: 'oprid', Label: '操作标志', Width: '180' },
260
- { Prop: 'symbol', Label: '证券代码', Width: '180' },
261
- { Prop: 'name', Label: '证券名称', Width: '180' },
262
- { Prop: 'status', Label: '状态说明', Width: '180' },
263
- { Prop: 'price', Label: '委托价格', Width: '180' },
264
- { Prop: 'vol', Label: '委托数量', Width: '180' },
265
- { Prop: 'tradeVol', Label: '成交数量', Width: '180' },
266
- { Prop: 'bookid', Label: '委托编号', Width: '180' }
267
- ],
268
- HistoryDealTHeader: [
269
- { Prop: 'date', Label: '成交日期', Width: '180' },
270
- { Prop: 'time', Label: '成交时间', Width: '180' },
271
- { Prop: 'symbol', Label: '证券代码', Width: '180' },
272
- { Prop: 'name', Label: '证券名称', Width: '180' },
273
- { Prop: 'oprid', Label: '操作标志', Width: '180' },
274
- { Prop: 'vol', Label: '成交数量', Width: '180' },
275
- { Prop: 'price', Label: '成交价格', Width: '180' },
276
- { Prop: 'amount', Label: '成交金额', Width: '180' },
277
- { Prop: 'bookid', Label: '委托编号', Width: '180' }
278
- ],
279
- CapitalTHeader: [
280
- { Prop: 'symbol', Label: '证券代码', Width: '' },
281
- { Prop: 'Name', Label: '证券名称', Width: '100' },
282
- { Prop: 'Vol', Label: '证券数量', Width: '100' },
283
- { Prop: 'TradeVol', Label: '可卖数量', Width: '' },
284
- { Prop: 'FlowProfit', Label: '浮动盈亏', Width: '' },
285
- { Prop: 'FlowProfitRate', Label: '盈亏比例', Width: '' },
286
- { Prop: 'OprPrice', Label: '参考成本价', Width: '' },
287
- { Prop: 'Price', Label: '市价', Width: '180' },
288
- { Prop: 'MarketValue', Label: '参考市值', Width: '' }
289
- ],
290
-
291
- // Defaultdefaultu: 'lixq',
292
- BuyApiObj: { "userid": "", "symbol": "", "name": "", "price": 0, "vol": 0 },
293
- SellApiObj: { "userid": "", "symbol": "", "price": 0, "vol": 0 },
294
- CancelApiObj: { "userid": "", "bookid": 0 },
295
- EntrustApiObj: { "userid": "", "type": 0 },
296
- DealApiObj: { "userid": "", "type": 1 },
297
- HistoryEntrustApiObj: { "userid": "", "querydate": { "StartDate": 0, "EndDate": 0 }, "type": 0 },
298
- HistoryDealApiObj: { "userid": "", "querydate": { "StartDate": 0, "EndDate": 0 }, "type": 1 },
299
- AccountApiObjPostion: { "userid": "", "stock": "true" },//请求账户+持仓
300
- AccountApiObj: { "userid": "", "stock": "false" },//请求账户
301
-
302
- CapitalTableData: [],
303
- EntrustTableData: [],
304
- DealTableData: [],
305
- HistoryEntrustTableData: [],
306
- HistoryDealTableData: [],
307
-
308
- CancelTableData: [],
309
- AccountPostionData: { Available: 0, Balance: 0, Stock: [] },
310
-
311
- TableMaxheight:0,
312
- HistoryTableMaxheight:0,
313
- CancelTableMaxheight:0,
314
- TradeInfoWidth:0, //左,中,右-账户信息
315
- CheckWidth:0, //左,右-查询(撤单)信息
316
- OprContainerH:0, //上,下-操作信息
317
-
318
- TableList: [], //{Symbol:'',Name:'',Amount:0,TradeVol:0,FloatingPL:0,PLRate:0,MetaPrice:0,Price:0,MarketValue:0}
319
- JsStock: null,
320
- ID: JSCommon.JSChart.CreateGuid(),
321
- IDForPosition: JSCommon.JSChart.CreateGuid(),
322
- OprTypeIndex: 0,
323
- OprMenuTwoIndex: 0,
324
- TopAccountData: {
325
- Account: { Text: '', Value: '' },
326
- TotalMoney: { Text: '总资产:', Value: 0 },
327
- Available: { Text: '可用资金:', Value: 0 },
328
- TotalMarketValue: { Text: '股票市值:', Value: 0 },
329
- TotalProfitRate: { Text: '总盈亏:', Value: 0 }
330
- },
331
- ClassNameByRateFun:null,
332
- ClassNameByBuySellFun:null
333
-
334
- };
335
-
336
- },
337
- watch: {
338
- },
339
-
340
- props:
341
- [
342
- 'DefaultUserID','DefaultElementUI',
343
- 'DefaultCollapseDiv' //'no' 表示没有收起按钮
344
- ],
345
-
346
- //创建
347
- created: function () {
348
- this.JsStock = JSCommonStock.JSStockInit();
349
- this.InitalStock();
350
- this.JsStock.ReqeustData();
351
-
352
- if(this.DefaultElementUI && (this.DefaultElementUI == 2)){
353
- this.ClassNameByRateFun = this.ClassNameByRate2;
354
- this.ClassNameByBuySellFun = this.ClassNameByBuySell2;
355
- }else{
356
- this.ClassNameByRateFun = this.ClassNameByRate;
357
- this.ClassNameByBuySellFun = this.ClassNameByBuySell;
358
- }
359
-
360
- if(this.DefaultCollapseDiv) this.IsShow.CollapseWrap = this.DefaultCollapseDiv == 'no' ? false : true;
361
-
362
- this.QueryAccountApi();
363
- },
364
-
365
- mounted: function () {
366
- var _self = this;
367
- $(document).click(function (event) {
368
- var target = $('.symbolWrap');
369
- if (!target.is(event.target) && target.has(event.target).length == 0) {
370
- _self.IsShow.SpellListEle = false;
371
- }
372
- });
373
-
374
- this.OnSize();
375
- },
376
-
377
- methods:
378
- {
379
- collapseContainer(){ //收起容器
380
-
381
- this.IsCollapse = !this.IsCollapse;
382
- console.log('[this.IsCollapse]',this.IsCollapse);
383
- var simulateContainer = this.$refs.simulateContainer;
384
- var collapseWrap = this.$refs.collapseWrap;
385
- var defaultHeight = 215;
386
- var currentHeight = 0;
387
- if(this.IsCollapse){
388
- currentHeight = collapseWrap.offsetHeight;
389
- }else{
390
- currentHeight = defaultHeight;
391
- }
392
- simulateContainer.style.height = currentHeight + 'px';
393
- this.$emit('collapsediv',currentHeight);
394
- },
395
- selectCurrentRow(val){
396
- if(this.OprType == '买入' || this.OprType == '卖出' ){
397
- this.AddToBuySell(val);
398
- }else if(this.OprType == '撤单'){
399
- this.CancelCurrentChange(val)
400
- }
401
- this.$emit('selectRow',val.symbol,val.Name);
402
- },
403
- AddToBuySell(val){
404
- this.BuySellRow = val;
405
- this.Symbol = val.symbol;
406
- if(this.OprType == '买入'){
407
- this.BuyInputData.Symbol = val.symbol;
408
- var arySymbol = new Array();
409
- arySymbol.push(this.BuyInputData.Symbol);
410
- console.log('simulatetrade::AddToBuySell this.Symbol',this.Symbol);
411
- this.InitalStock();
412
- this.QueryStockInfo(null, arySymbol, null, this.JsStock);
413
- this.JsStock.ReqeustData();
414
- //请求价格
415
- }else if(this.OprType == '卖出'){
416
- this.SellInputData.Symbol = val.symbol;
417
- this.SellInputData.Amount = val.TradeVol;
418
- var arySymbol = new Array();
419
- arySymbol.push(this.SellInputData.Symbol);
420
- this.InitalStock();
421
- this.QueryStockInfo(null, arySymbol, null, this.JsStock);
422
- this.JsStock.ReqeustData();
423
- }
424
-
425
- },
426
- ClassNameByRate(row,index){
427
- if(row.FlowProfitRate != ''){
428
- var flowProfitRate = row.FlowProfitRate.substring(0,row.FlowProfitRate.length - 2);
429
- if(flowProfitRate > 0){
430
- return 'buy-row';
431
- }else{
432
- return 'sell-row';
433
- }
434
- }
435
- },
436
- ClassNameByRate2({row,index}){ //element-ui 2.0以上
437
- if(row.FlowProfitRate != ''){
438
- var flowProfitRate = row.FlowProfitRate.substring(0,row.FlowProfitRate.length - 2);
439
- if(flowProfitRate > 0){
440
- return 'buy-row';
441
- }else{
442
- return 'sell-row';
443
- }
444
- }
445
- },
446
- ClassNameByBuySell(row,index){
447
- if(row.oprid == '买入'){
448
- return 'buy-row';
449
- }else if(row.oprid == '卖出'){
450
- return 'sell-row';
451
- }
452
- },
453
- ClassNameByBuySell2({row,index}){ //element-ui 2.0以上
454
- if(row.oprid == '买入'){
455
- return 'buy-row';
456
- }else if(row.oprid == '卖出'){
457
- return 'sell-row';
458
- }
459
- },
460
- SpellSock() {
461
- this.SearchStock = JSCommonStock.JSStock.GetSearchStock(this.SpellCallback);
462
- var type = this.OprType;
463
- var symbol = this.Symbol;
464
- if(symbol != ''){
465
- this.SearchStock.Search(symbol, 0);
466
- }
467
- },
468
- GetStartDate(val){
469
- if(val != undefined){
470
- var dateAry = val.split('-');
471
- var dateStr = '';
472
- dateAry.forEach(item => {
473
- dateStr += item;
474
- });
475
- this.DatePicker.Start = Number(dateStr);
476
- }
477
-
478
- },
479
- GetEndDate(val){
480
- if(val != undefined){
481
- var dateAry = val.split('-');
482
- var dateStr = '';
483
- dateAry.forEach(item => {
484
- dateStr += item;
485
- });
486
- this.DatePicker.End = Number(dateStr);
487
- }
488
-
489
- },
490
- OnSize(width,height){
491
- var simulateContainer = this.$refs.simulateContainer;
492
- var topAccountInfo = this.$refs.topAccountInfo;
493
- var oprType = this.$refs.oprType;
494
- var oprInfoBuy = this.$refs.oprInfoBuy;
495
- var dateSelect = this.$refs.dateSelect;
496
- var tableTopSelct = this.$refs.tableTopSelct;
497
- var collapseWrap = this.$refs.collapseWrap;
498
-
499
- console.log('simulatetrade::OnSize:height',height);
500
-
501
- if(width){
502
- simulateContainer.style.width = width + 'px';
503
- }else{
504
- var width = simulateContainer.clientWidth;
505
- }
506
-
507
- if(height){
508
- simulateContainer.style.height = height + 'px';
509
- }else{
510
- var height = simulateContainer.clientHeight;
511
- }
512
-
513
-
514
- // var topAccountInfoHeight = topAccountInfo.offsetHeight;
515
- var topAccountInfoHeight = 26;
516
- var collapseWrapHeight = 0;
517
- if(this.CollapseWrap){
518
- collapseWrapHeight = collapseWrap.offsetHeight;
519
- }
520
- var oprContainerH = height - topAccountInfoHeight - collapseWrapHeight; //仿真部分高度
521
-
522
- this.OprContainerH = oprContainerH;
523
- this.TableMaxheight = oprContainerH;
524
- // this.TradeInfoWidth = width - oprType.offsetWidth - oprInfoBuy.offsetWidth;
525
- this.TradeInfoWidth = width - 135 - 281;
526
- this.CancelTableMaxheight = oprContainerH - 30 - collapseWrapHeight;
527
- this.HistoryTableMaxheight = oprContainerH - 30 - collapseWrapHeight;
528
-
529
- this.CheckWidth = width - 135;
530
- },
531
- SpellCallback(data) {
532
- var stocks = data.Data;
533
- this.SpellStockData = stocks;
534
- this.showSpellList();
535
- },
536
- QueryHistory() {
537
- var startDate = this.DatePicker.Start;
538
- var endDate = this.DatePicker.End;
539
- if(startDate != 0 && endDate != 0){ //时间范围判断
540
- if (this.OprType == '历史委托') {
541
- this.QueryHistoryEntrustApi(startDate, endDate);
542
- } else if (this.OprType == '历史成交') {
543
- this.QueryHistoryDealApi(startDate, endDate);
544
- }
545
- }else{
546
- this.$message('请选择时间范围');
547
- }
548
-
549
- },
550
- CancelCurrentChange(val) {
551
- this.currentRow = val;
552
- },
553
- QueryHistoryEntrustApi(start, end) { //历史委托
554
- this.HistoryEntrustApiObj.userid = this.DefaultUserID;
555
- this.HistoryEntrustApiObj.querydate.StartDate = start;
556
- this.HistoryEntrustApiObj.querydate.EndDate = end;
557
- this.QueryApiJSTemplate(this.HistoryEntrustApiObj, 'VTradeQuery', this.HistoryEntrustCallback);
558
- },
559
- QueryHistoryDealApi(start, end) { //历史成交
560
- this.HistoryDealApiObj.userid = this.DefaultUserID;
561
- this.HistoryDealApiObj.querydate.StartDate = start;
562
- this.HistoryDealApiObj.querydate.EndDate = end;
563
- this.QueryApiJSTemplate(this.HistoryDealApiObj, 'VTradeQuery', this.HistoryDealCallback);
564
- },
565
- HistoryEntrustCallback(res) {
566
- let _self = this;
567
- _self.HistoryEntrustTableData.splice(0,_self.HistoryEntrustTableData.length);
568
- if (res.code == 0) {
569
- let statusAry = ['已报待撤', '待委托', '已撤单', '已委托', '部分成交', '完全成交']; //数据对应:下标-2
570
- var entrustAry = res.entrust;
571
- entrustAry.forEach(item => {
572
- var historyEnTr = {
573
- date: JSCommon.IFrameSplitOperator.FormatDateString(item.date),
574
- oprid: item.operationid > 0 ? '卖出' : '买入',
575
- symbol: item.symbol,
576
- name: item.name,
577
- status: statusAry[item.status + 2],
578
- price: JSCommon.IFrameSplitOperator.FormatValueString(item.price,2),
579
- vol: JSCommon.IFrameSplitOperator.FormatValueThousandsString(item.vol,0),
580
- tradeVol: JSCommon.IFrameSplitOperator.FormatValueThousandsString(item.dealvol,0),
581
- bookid: item.bookid
582
- }
583
- _self.HistoryEntrustTableData.push(historyEnTr);
584
- });
585
- } else {
586
- this.$message(res.message);
587
- }
588
-
589
- },
590
- HistoryDealCallback(res) {
591
- let _self = this;
592
- _self.HistoryDealTableData.splice(0,_self.HistoryDealTableData.length);
593
- if (res.code == 0) {
594
- var DealAry = res.deal;
595
- DealAry.forEach(item => {
596
- var historyDealTr = {
597
- date: JSCommon.IFrameSplitOperator.FormatDateString(item.date),
598
- time: JSCommon.IFrameSplitOperator.FormatTimeString(item.time),
599
- symbol: item.symbol,
600
- name: item.name,
601
- oprid: item.operationid > 0 ? '卖出' : '买入',
602
- vol: item.vol,
603
- price: item.price,
604
- amount: item.vol * item.price,
605
- bookid: item.bookid
606
- }
607
- _self.HistoryDealTableData.push(historyDealTr);
608
- });
609
- } else {
610
- this.$message(res.message);
611
- }
612
- },
613
- CheckTrade(menuOne, child, ind) {
614
- this.OprType = child;
615
- this.OprMenuTwoIndex = ind;
616
- switch (child) {
617
- case '资金股份':
618
- this.IsShow.DateRange = false;
619
- this.IsShow.CheckTable = {
620
- Capital: true,
621
- Entrust: false,
622
- Deal: false,
623
- HistoryEntrust: false,
624
- HistoryDeal: false
625
- };
626
- break;
627
- case '当日委托':
628
- this.QueryEntrustApi(); //当日委托
629
- this.IsShow.DateRange = false;
630
- this.IsShow.CheckTable = {
631
- Capital: false,
632
- Entrust: true,
633
- Deal: false,
634
- HistoryEntrust: false,
635
- HistoryDeal: false
636
- };
637
- break;
638
- case '当日成交':
639
- this.QueryDealApi(); //当日成交
640
- this.IsShow.DateRange = false;
641
- this.IsShow.CheckTable = {
642
- Capital: false,
643
- Entrust: false,
644
- Deal: true,
645
- HistoryEntrust: false,
646
- HistoryDeal: false
647
- };
648
- break;
649
- case '历史委托':
650
- this.dateValue1 = '';
651
- this.dateValue2 = '';
652
- this.DatePicker.start = 0;
653
- this.DatePicker.End = 0;
654
- this.QueryHistoryEntrustApi(20190315, 20190325);
655
- this.IsShow.DateRange = true;
656
- this.IsShow.CheckTable = {
657
- Capital: false,
658
- Entrust: false,
659
- Deal: false,
660
- HistoryEntrust: true,
661
- HistoryDeal: false
662
- };
663
- break;
664
- case '历史成交':
665
- this.dateValue1 = '';
666
- this.dateValue2 = '';
667
- this.DatePicker.start = 0;
668
- this.DatePicker.End = 0;
669
- this.QueryHistoryDealApi(20190315, 20190325);
670
- this.IsShow.DateRange = true;
671
- this.IsShow.CheckTable = {
672
- Capital: false,
673
- Entrust: false,
674
- Deal: false,
675
- HistoryEntrust: false,
676
- HistoryDeal: true
677
- };
678
- break;
679
- }
680
- },
681
- hideSpellList(item) {
682
- var symbol = item.Symbol;
683
- var name = item.Name;
684
- this.IsShow.SpellListEle = false;
685
- let type = this.OprType;
686
- this.Symbol = symbol;
687
- if(type == '买入'){
688
- this.BuyInputData.Symbol = symbol;
689
- }else if(type == '卖出'){
690
- this.SellInputData.Symbol = symbol;
691
- }
692
- this.IsSpell = false;
693
- if(symbol != ''){
694
- var arySymbol = new Array();
695
- arySymbol.push(symbol);
696
- this.InitalStock();
697
- this.QueryStockInfo(null, arySymbol, null, this.JsStock);
698
- this.JsStock.ReqeustData();
699
- }
700
-
701
- this.$emit('selectedsymbol',symbol,name)
702
- },
703
- QueryApi() {
704
- var type = this.OprType;
705
- console.log('::QueryApi type', type);
706
- switch (type) {
707
- case '买入':
708
- this.QueryBuyApi();
709
- break;
710
- case '卖出':
711
- this.QuerySellApi();
712
- break;
713
- }
714
- },
715
- QueryAccountApi() { //查询账户信息
716
- this.AccountApiObjPostion.userid = this.DefaultUserID;
717
- this.QueryApiJSTemplate(this.AccountApiObjPostion, 'VTradeUser', this.AccountCallback);
718
- },
719
- AccountCallback(res) {
720
- if (res.code == 0) {
721
- this.AccountPostionData.Available = res.available;
722
- this.AccountPostionData.Balance = res.balance;
723
- this.AccountPostionData.Stock = res.stock;
724
- let stocks = this.AccountPostionData.Stock;
725
- var _self = this;
726
-
727
- _self.TopAccountData.Account.Value = this.DefaultUserID;
728
- _self.TopAccountData.Available.Value = Number(res.available).toFixed(2);
729
- let arySymbol = [];
730
- stocks.forEach(stock => {
731
- var positionTableItem = {
732
- symbol: stock.symbol,
733
- Name: stock.name,
734
- Vol: JSCommon.IFrameSplitOperator.FormatValueThousandsString(stock.vol,0),
735
- TradeVol: JSCommon.IFrameSplitOperator.FormatValueThousandsString(stock.tradevol,0),
736
- FlowProfit: '', //(市价 - stock.price) * stock.vol
737
- FlowProfitRate: '', //(市价 - stock.price) / stock.price
738
- OprPrice: JSCommon.IFrameSplitOperator.FormatValueString(stock.price,2),
739
- Price: '',//市价
740
- MarketValue: '' //市价 * stock.vol
741
- };
742
- _self.CapitalTableData.push(positionTableItem);
743
-
744
- arySymbol.push(stock.symbol);
745
- });
746
-
747
- this.InitalStockAry(arySymbol);
748
- this.QueryStockAryInfo(null, arySymbol, null, this.JsStock);
749
- this.JsStock.ReqeustData();
750
- } else {
751
- this.$message(res.message);
752
- }
753
-
754
- },
755
- QueryCancelApi() {
756
- if(this.currentRow.bookid){
757
- this.CancelApiObj.userid = this.DefaultUserID;
758
- this.CancelApiObj.bookid = this.currentRow.bookid; //测试订单号
759
- this.QueryApiJSTemplate(this.CancelApiObj, 'VTradeCanel', this.CancelCallback);
760
- }else{
761
- this.$message('请选择订单');
762
- }
763
-
764
- },
765
- CancelCallback(res) {
766
- if (res.code == 0) {
767
- this.$message('撤单成功');
768
- } else {
769
- this.$message(res.message);
770
- }
771
- },
772
- QueryEntrustApi() {
773
- this.EntrustApiObj.userid = this.DefaultUserID;
774
- this.QueryApiJSTemplate(this.EntrustApiObj, 'VTradeQuery', this.EntrustCallback);
775
- },
776
- EntrustCallback(res) { //委托数据中包含撤单信息
777
- let _self = this;
778
- if (res.code == 0) {
779
- let statusAry = ['已报待撤', '待委托', '已撤单', '已委托', '部分成交', '完全成交']; //数据对应:下标-2
780
- var entrusts = res.entrust;
781
- this.EntrustTableData.splice(0,this.EntrustTableData.length);
782
- entrusts.forEach(item => {
783
- var entrustItem = {
784
- time: JSCommon.IFrameSplitOperator.FormatTimeString(item.time),
785
- oprid: item.operationid > 0 ? '卖出' : '买入',
786
- symbol: item.symbol,
787
- name: item.name,
788
- status: statusAry[item.status + 2],
789
- price: JSCommon.IFrameSplitOperator.FormatValueString(item.price,2),
790
- vol: JSCommon.IFrameSplitOperator.FormatValueThousandsString(item.vol,0),
791
- tradeVol: JSCommon.IFrameSplitOperator.FormatValueThousandsString(item.dealvol,0),
792
- bookid: item.bookid,
793
- };
794
- this.EntrustTableData.push(entrustItem);
795
- });
796
- _self.GetCancelData(this.EntrustTableData);
797
- } else {
798
- this.$message(res.message);
799
- }
800
- },
801
- GetCancelData(data) {
802
- data.forEach(item => {
803
- if (!(item.status == '已撤单' || item.status == '完全成交')) {
804
- this.CancelTableData.push(item);
805
- }
806
- });
807
- },
808
- QueryDealApi() {
809
- this.DealApiObj.userid = this.DefaultUserID;
810
- this.QueryApiJSTemplate(this.DealApiObj, 'VTradeQuery', this.DealCallback);
811
- },
812
- DealCallback(res) {
813
- if (res.code == 0) {
814
- var dealAry = res.deal;
815
- this.DealTableData.splice(0,this.DealTableData.length);
816
- dealAry.forEach(item => {
817
- var dealTrItem = {
818
- time: JSCommon.IFrameSplitOperator.FormatTimeString(item.time),
819
- symbol: item.symbol,
820
- name: item.name,
821
- oprid: item.operationid > 0 ? '卖出' : '买入',
822
- vol: JSCommon.IFrameSplitOperator.FormatValueThousandsString(item.vol,0),
823
- price: item.price,
824
- amount: JSCommon.IFrameSplitOperator.FormatValueThousandsString(item.vol * item.price,2),
825
- bookid: item.bookid
826
- };
827
- this.DealTableData.push(dealTrItem);
828
- });
829
- } else {
830
- this.$message(res.message);
831
- }
832
- },
833
- QueryBuyApi() {
834
- this.BuyApiObj.userid = this.DefaultUserID;
835
- this.BuyApiObj.symbol = this.BuyInputData.Symbol;
836
- this.BuyApiObj.name = this.BuyInputData.Name;
837
- this.BuyApiObj.price = this.BuyInputData.Price;
838
- this.BuyApiObj.vol = this.BuyInputData.Vol;
839
- this.QueryApiJSTemplate(this.BuyApiObj, 'VTradeBuy', this.BuyCallback);
840
- },
841
- BuyCallback(res) {
842
- if (res.code == 0) {
843
- this.$message('委托成功');
844
- } else {
845
- this.$message(res.message);
846
- }
847
- },
848
- QuerySellApi() {
849
- this.SellApiObj.userid = this.DefaultUserID;
850
- this.SellApiObj.symbol = this.SellInputData.Symbol;
851
- this.SellApiObj.price = this.SellInputData.Price;
852
- this.SellApiObj.vol = this.SellInputData.Vol;
853
- this.QueryApiJSTemplate(this.SellApiObj, 'VTradeSell', this.SellCallback);
854
- },
855
- SellCallback(res) {
856
- if (res.code == 0) {
857
- this.$message('委托成功');
858
- } else {
859
- this.$message(res.message);
860
- }
861
- },
862
- QueryApiJSTemplate(queryObj, apiUrl, callback) {
863
- $.ajax({
864
- url: this.Domain + apiUrl,
865
- method: 'POST',
866
- data: queryObj,
867
- dataType: 'json',
868
- success(res) {
869
- callback(res);
870
- }
871
- });
872
- },
873
- QueryStockInfo(id, arySymbol, dataType, jsStock) { //拿到数据
874
- console.log('[simulatetrade::QueryStockInfo]', id, arySymbol, dataType, jsStock, this.ID);
875
- if (id != this.ID) return;
876
- var type = this.OprType;
877
- var symbol = '';
878
- if(type == '买入'){
879
- symbol = this.BuyInputData.Symbol;
880
- }else if(type == '卖出'){
881
- symbol = this.SellInputData.Symbol;
882
- }
883
- if (arySymbol.indexOf(symbol) < 0 || symbol == '') return;
884
-
885
- let read = jsStock.GetStockRead(this.ID, this.QueryStockInfo); //获取一个读取数据类,并绑定id和更新数据方法
886
- var price = read.Get(symbol, JSCommonStock.STOCK_FIELD_NAME.PRICE);
887
-
888
- if (type == '买入') {
889
- this.BuyInputData.Price = price;
890
- var balance = this.AccountPostionData.Balance;
891
- var amount = this.BuyInputData.Price == 0 ? 0 : Math.floor(balance / this.BuyInputData.Price / 100) * 100;
892
- this.BuyInputData.Amount = amount;
893
- } else if (type == '卖出') {
894
- this.SellInputData.Price = price;
895
- var tradeVol = 0;
896
- let stocks = this.AccountPostionData.Stock;
897
- stocks.forEach(item => {
898
- if(item.symbol == symbol){
899
- tradeVol = item.tradevol;
900
- return;
901
- }
902
- });
903
- var amount = Math.floor(tradeVol / 100) * 100;
904
- this.SellInputData.Amount = amount;
905
- }
906
- },
907
- QueryStockAryInfo(id, arySymbol, dataType, jsStock) { //获取持仓所有股票信息
908
- console.log('[simulatetrade::QueryStockAryInfo]', id, arySymbol, dataType, jsStock, this.IDForPosition);
909
- if (id != this.IDForPosition) return;
910
-
911
- var read = jsStock.GetStockRead(this.IDForPosition, this.QueryStockAryInfo);
912
- let stocks = this.AccountPostionData.Stock;
913
- var _self = this;
914
- _self.TopAccountData.TotalMarketValue.Value = 0;
915
- _self.TopAccountData.TotalProfitRate.Value = 0;
916
- stocks.forEach((stock, index) => {
917
- var price = read.Get(stock.symbol, JSCommonStock.STOCK_FIELD_NAME.PRICE);
918
- var yclose = read.Get(stock.symbol, JSCommonStock.STOCK_FIELD_NAME.YCLOSE);
919
-
920
- var flowProfit = (price - stock.price) * stock.vol;
921
- var flowProfitRate = (price - stock.price) / stock.price * 100;
922
- var Price = price != null ? price : yclose; //停牌,取收盘价
923
- // Price = Number(Price);
924
- var marketValue = price * stock.vol;
925
- _self.CapitalTableData[index].FlowProfit = JSCommon.IFrameSplitOperator.FormatValueThousandsString(flowProfit,2);
926
- _self.CapitalTableData[index].FlowProfitRate = JSCommon.IFrameSplitOperator.FormatValueString(flowProfitRate,2) + '%';
927
- _self.CapitalTableData[index].Price = JSCommon.IFrameSplitOperator.FormatValueString(Price,2);
928
- _self.CapitalTableData[index].MarketValue = JSCommon.IFrameSplitOperator.FormatValueThousandsString(marketValue,2);
929
-
930
- _self.TopAccountData.TotalMarketValue.Value += price != undefined ? Price * stock.vol : 0;
931
- _self.TopAccountData.TotalProfitRate.Value += price != undefined ? (Price - stock.price) * stock.vol : 0;
932
- });
933
- _self.TopAccountData.TotalMarketValue.Value = Number(_self.TopAccountData.TotalMarketValue.Value).toFixed(2);
934
- _self.TopAccountData.TotalProfitRate.Value = Number(_self.TopAccountData.TotalProfitRate.Value).toFixed(2);
935
- var available = Number(_self.TopAccountData.Available.Value);
936
- var totalMarketValue = Number(_self.TopAccountData.TotalMarketValue.Value);
937
- _self.TopAccountData.TotalMoney.Value = Number(totalMarketValue + available).toFixed(2);
938
- },
939
-
940
- InitalStock() { //订阅数据
941
- let read = this.JsStock.GetStockRead(this.ID, this.QueryStockInfo); //获取一个读取数据类,并绑定id和更新数据方法
942
- const stockField = [
943
- JSCommonStock.STOCK_FIELD_NAME.PRICE
944
- ];
945
- if(this.Symbol != ''){
946
- read.SetQueryField(this.Symbol, stockField);
947
- }
948
- },
949
- InitalStockAry(arySymbol) {
950
- let read = this.JsStock.GetStockRead(this.IDForPosition, this.QueryStockAryInfo); //获取一个读取数据类,并绑定id和更新数据方法
951
- const stockField = [
952
- JSCommonStock.STOCK_FIELD_NAME.PRICE,
953
- JSCommonStock.STOCK_FIELD_NAME.YCLOSE
954
- ];
955
- arySymbol.forEach(symbol => {
956
- if(symbol != ''){
957
- read.SetQueryField(symbol, stockField);
958
- }
959
- });
960
- },
961
- showSpellList() {
962
- this.IsShow.SpellListEle = true;
963
- },
964
- ChangeOprType(item, index) {
965
- this.OprType = item.Text;
966
- this.OprTypeIndex = index;
967
- switch (index) {
968
- case 0:
969
- this.IsShow.Buy = true;
970
- this.IsShow.TradeInfo = true;
971
- this.IsShow.Sell = false;
972
- this.IsShow.Cancel = false;
973
- this.IsShow.Check = false;
974
-
975
- this.BuyInputData = DefaultData.SetBuyInput();
976
- this.Symbol = '';
977
- break;
978
- case 1: //卖出
979
- this.IsShow.Buy = false;
980
- this.IsShow.TradeInfo = true;
981
- this.IsShow.Sell = true;
982
- this.IsShow.Cancel = false;
983
- this.IsShow.Check = false;
984
-
985
- this.SellInputData = DefaultData.SetSellInput();
986
- this.Symbol = '';
987
- break;
988
- case 2: //撤单
989
- this.IsShow.Buy = false;
990
- this.IsShow.TradeInfo = false;
991
- this.IsShow.Sell = false;
992
- this.IsShow.Cancel = true;
993
- this.IsShow.Check = false;
994
- this.QueryEntrustApi();
995
- break;
996
- case 3:
997
- this.IsShow.Buy = false;
998
- this.IsShow.TradeInfo = false;
999
- this.IsShow.Sell = false;
1000
- this.IsShow.Cancel = false;
1001
- this.IsShow.Check = true;
1002
- break;
1003
- }
1004
- },
1005
- MinPriceValue() { //减少
1006
- var type = this.OprType;
1007
- var value = 0;
1008
- if (type == '买入') {
1009
- value = Number(this.BuyInputData.Price);
1010
- this.BuyInputData.Price = Number(value - 0.1).toFixed(2);
1011
- } else if(type == '卖出'){
1012
- value = Number(this.SellInputData.Price);
1013
- this.SellInputData.Price = Number(value - 0.1).toFixed(2);;
1014
- }
1015
- },
1016
- AddPriceValue() { //增加
1017
- var type = this.OprType;
1018
- var value = 0;
1019
- if (type == '买入') {
1020
- value = Number(this.BuyInputData.Price);
1021
- this.BuyInputData.Price = Number(value + 0.1).toFixed(2);
1022
- } else if(type == '卖出'){
1023
- value = Number(this.SellInputData.Price);
1024
- this.SellInputData.Price = Number(value + 0.1).toFixed(2);
1025
- }
1026
- },
1027
- MinVolValue() { //减少
1028
- var type = this.OprType;
1029
- var value = 0;
1030
- if (type == '买入') {
1031
- value = Number(this.BuyInputData.Vol);
1032
- this.BuyInputData.Vol = Math.floor(value - 100)
1033
- } else if(type == '卖出'){
1034
- value = Number(this.SellInputData.Vol);
1035
- this.SellInputData.Vol = Math.floor(value - 100);
1036
- }
1037
- },
1038
- AddVolValue() { //增加
1039
- var type = this.OprType;
1040
- var value = 0;
1041
- if (type == '买入') {
1042
- value = Number(this.BuyInputData.Vol);
1043
- this.BuyInputData.Vol = Math.floor(value + 100)
1044
- } else if(type == '卖出'){
1045
- value = Number(this.SellInputData.Vol);
1046
- this.SellInputData.Vol = Math.floor(value + 100);
1047
- }
1048
- },
1049
- CalVolByRate(rate) {
1050
- var type = this.OprType;
1051
- var vol = 0;
1052
- if (type == '买入') {
1053
- vol = Number(this.BuyInputData.Amount);
1054
- this.BuyInputData.Vol = Math.floor(vol * rate / 100) * 100;
1055
- } else if(type == '卖出'){
1056
- vol = Number(this.SellInputData.Amount);
1057
- this.SellInputData.Vol = Math.floor(vol * rate / 100) * 100;
1058
- }
1059
- }
1060
-
1061
- }
1062
- }
1063
-
1064
- </script>
1065
-
1066
- <style lang="less">
1067
-
1068
- .simulateContainer {
1069
- * {
1070
- font: 14px/normal 'Microsoft Yahei';
1071
- color: #333;
1072
- margin: 0;
1073
- padding: 0;
1074
- }
1075
-
1076
- li,
1077
- ol {
1078
- list-style: none;
1079
- }
1080
-
1081
- a {
1082
- text-decoration: none;
1083
- }
1084
- @border: 1px solid #e1ecf2;
1085
- overflow: hidden;
1086
-
1087
- .upColor {
1088
- color: #ee1515;
1089
- }
1090
-
1091
- .lowColor {
1092
- color: #22ac38;
1093
- }
1094
-
1095
- ::-webkit-scrollbar {
1096
- /*滚动条整体样式*/
1097
- width: 10px;
1098
- /*高宽分别对应横竖滚动条的尺寸*/
1099
- height: 10px;
1100
- }
1101
-
1102
- ::-webkit-scrollbar-thumb {
1103
- /*滚动条里面小方块*/
1104
- border-radius: 10px;
1105
- -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
1106
- background: #535353;
1107
- }
1108
-
1109
- ::-webkit-scrollbar-track {
1110
- /*滚动条里面轨道*/
1111
- -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
1112
- border-radius: 10px;
1113
- background: #EDEDED;
1114
- }
1115
- .collapseWrap {
1116
- height: 8px;
1117
- .block{
1118
- width: 30px;
1119
- height: 100%;
1120
- background-color: #ddd;
1121
- margin: 0 auto;
1122
- position: relative;
1123
- }
1124
- .block::after {
1125
- width: 0;
1126
- height: 0;
1127
- content:'';
1128
- border-style: solid;
1129
- border-width: 3px 6px 0 6px;
1130
- border-color: #535353 transparent transparent transparent;
1131
- position: absolute;
1132
- left: 9px;
1133
- top: 3px;
1134
- }
1135
- .block.hide::after{
1136
- border-width: 0 6px 3px 6px;
1137
- border-color: transparent transparent #535353 transparent;
1138
- }
1139
- }
1140
-
1141
- .topAccountInfo {
1142
- height: 25px;
1143
- padding-left: 20px;
1144
- border: @border;
1145
-
1146
- >p {
1147
- display: inline-block;
1148
- line-height: 25px;
1149
- margin-right: 15px;
1150
- }
1151
- }
1152
-
1153
- .oprContainer {
1154
- width: 100%;
1155
- position: relative;
1156
- overflow-x: hidden;
1157
- >div {
1158
- position: absolute;
1159
- top: 0;
1160
- }
1161
- /*element ui 表格*/
1162
- .el-table {border: none;}
1163
- .el-table .buy-row td div{
1164
- color: #ee1515;
1165
- }
1166
- .el-table .sell-row td div{
1167
- color: #22ac38;
1168
- }
1169
- .el-table td, .el-table th {
1170
- height: 28px;
1171
- padding: 2px 0;
1172
- }
1173
- .el-table th>.cell{
1174
- line-height: 28px;
1175
- }
1176
- .el-table td{
1177
- border-bottom: none;
1178
- }
1179
- .el-table th {
1180
- background-color: #fff;
1181
- }
1182
- .el-table th.gutter{
1183
- display: table-cell!important;
1184
- }
1185
- .el-table colgroup.gutter{
1186
- display: table-cell!important;
1187
- }
1188
- .el-table::before {height: 0;}
1189
- .el-table__footer-wrapper thead div, .el-table__header-wrapper thead div {background-color: #fff;}
1190
- .oprType {
1191
- left: 0;
1192
- width: 134px;
1193
- height: 100%;
1194
- overflow-y: auto;
1195
- border-right: @border;
1196
-
1197
- >div {
1198
- width: 100%;
1199
-
1200
- >span {
1201
- display: block;
1202
- width: 100%;
1203
- height: 34px;
1204
- box-sizing: border-box;
1205
- padding-left: 34px;
1206
- cursor: pointer;
1207
- line-height: 34px;
1208
- cursor: pointer;
1209
- >i {
1210
- margin-left: 5px;
1211
- }
1212
- .colorWhite {
1213
- color: #fff;
1214
- }
1215
- }
1216
-
1217
- .menuTwo {
1218
- width: 100%;
1219
-
1220
- >p {
1221
- padding-left: 41px;
1222
- line-height: 28px;
1223
- cursor: pointer;
1224
- }
1225
-
1226
- >p.active {
1227
- color: #093e8a;
1228
- background-color: #e1ecf2;
1229
- }
1230
- }
1231
- }
1232
-
1233
- >div.active {
1234
- >span {
1235
- background-color: #093e8a;
1236
- color: #fff;
1237
- }
1238
- }
1239
- }
1240
-
1241
- .oprInfo {
1242
- left: 135px;
1243
- width: 281px;
1244
- height: 100%;
1245
- box-sizing: border-box;
1246
- padding-top: 10px;
1247
- padding-left: 10px;
1248
- border-right: @border;
1249
-
1250
- >div {
1251
- height: 22px;
1252
- margin-bottom: 5px;
1253
-
1254
- .title {
1255
- margin-right: 19px;
1256
- }
1257
-
1258
- input[type='text'] {
1259
- border: none;
1260
- height: 16px;
1261
- outline: none;
1262
- }
1263
-
1264
- .inputBox {
1265
- display: inline-block;
1266
- border: @border;
1267
- height: 20px;
1268
- padding-left: 5px;
1269
- }
1270
-
1271
- .inputCalu {
1272
- display: inline-block;
1273
- border: @border;
1274
-
1275
- .min,
1276
- .add {
1277
- display: inline-block;
1278
- width: 20px;
1279
- height: 20px;
1280
- text-align: center;
1281
- line-height: 20px;
1282
- border-right: @border;
1283
- cursor: pointer;
1284
- }
1285
-
1286
- .add {
1287
- border-right: none;
1288
- border-left: @border;
1289
- }
1290
-
1291
- input {
1292
- width: 82px;
1293
- height: 18px;
1294
- margin-left: 5px;
1295
- }
1296
- }
1297
-
1298
- }
1299
-
1300
- .symbolWrap {
1301
- position: relative;
1302
- z-index: 333;
1303
-
1304
- .stockList {
1305
- position: absolute;
1306
- top: 21px;
1307
- left: 75px;
1308
- height: 120px;
1309
- overflow-y: auto;
1310
- background-color: #e1ecf2;
1311
- border: @border;
1312
- padding: 6px 0;
1313
-
1314
- p {
1315
- line-height: 22px;
1316
- padding: 0 6px;
1317
- color: #666;
1318
-
1319
- .symbol {
1320
- margin-right: 12px;
1321
- }
1322
- }
1323
-
1324
- p:hover,
1325
- p.active {
1326
- background-color: #217cd9;
1327
- color: #fff;
1328
- }
1329
- }
1330
-
1331
- .inputBox {
1332
- width: 82px;
1333
-
1334
- input {
1335
- width: 100%;
1336
- }
1337
- }
1338
- }
1339
-
1340
- .volWrap {
1341
- .inputBox {
1342
- width: 151px;
1343
-
1344
- input {
1345
- width: 119px;
1346
- margin-right: 2px;
1347
- }
1348
- }
1349
- }
1350
-
1351
- .rates {
1352
- padding-left: 75px;
1353
-
1354
- >span {
1355
- display: inline-block;
1356
- width: 34px;
1357
- height: 20px;
1358
- line-height: 20px;
1359
- text-align: center;
1360
- color: #217cd9;
1361
- background-color: #e1ecf2;
1362
- margin-right: 5px;
1363
- cursor: pointer;
1364
- }
1365
-
1366
- >span:hover {}
1367
- }
1368
-
1369
- .oprBtn {
1370
- padding-left: 75px;
1371
- height: 24px;
1372
-
1373
- >span {
1374
- width: 156px;
1375
- height: 24px;
1376
- line-height: 24px;
1377
- text-align: center;
1378
- color: #fff;
1379
- background-color: #ccc;
1380
- display: inline-block;
1381
- cursor: pointer;
1382
- }
1383
-
1384
- .buyBtn {
1385
- background-color: #ff4343;
1386
- }
1387
-
1388
- .sellBtn {
1389
- background-color: #22ac38;
1390
- }
1391
- }
1392
- }
1393
-
1394
- .CancelContainer {
1395
- left: 135px;
1396
- width: 1776px;
1397
-
1398
- .tableTopSelct {
1399
- height: 30px;
1400
- line-height: 30px;
1401
- padding-left: 10px;
1402
- border-bottom: @border;
1403
-
1404
- .countText {
1405
- color: #ee1515;
1406
- margin-right: 40px;
1407
- }
1408
-
1409
- .borderBtn {
1410
- width: 48px;
1411
- height: 18px;
1412
- line-height: 18px;
1413
- border: @border;
1414
- text-align: center;
1415
- display: inline-block;
1416
- cursor: pointer;
1417
- margin-right: 10px;
1418
- }
1419
-
1420
- .borderBtn.active {
1421
- color: #fff;
1422
- background-color: #093e8a;
1423
- }
1424
-
1425
- >div,
1426
- >p {
1427
- display: inline-block;
1428
- }
1429
- }
1430
- }
1431
-
1432
- .checkTableContainer {
1433
- left: 135px;
1434
- width: 1776px;
1435
-
1436
- .dateSelect {
1437
- height: 25px;
1438
- padding-top: 5px;
1439
- .el-date-editor:first-child {
1440
- margin-left:15px;
1441
- }
1442
- .el-date-editor.el-input{
1443
- width: 128px;
1444
- }
1445
- .spaceText {
1446
- margin: 0 4px;
1447
- }
1448
- .el-input__inner {
1449
- border-radius:0;
1450
- height:20px;
1451
- }
1452
- .borderBtn {
1453
- display: inline-block;
1454
- height: 20px;
1455
- padding: 0 10px;
1456
- line-height:1;
1457
- box-sizing: border-box;
1458
- border: @border;
1459
- vertical-align: top;
1460
- }
1461
- }
1462
- }
1463
-
1464
- .tradeInfo {
1465
- left: 416px;
1466
- width: 1490px;
1467
- height: 100%;
1468
- }
1469
- }
1470
- }
1471
- </style>