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.
- package/lib/umychart.vue.js +94 -50
- package/package.json +15 -47
- package/src/jscommon/umychart.resource/js/codemirror/javascript.js +1 -1
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +409 -115
- package/src/jscommon/umychart.vue/umychart.vue.js +409 -115
- package/.babelrc +0 -6
- package/.vscode/settings.json +0 -4
- package/Makefile +0 -9
- package/README.md +0 -452
- package/index.js +0 -17
- package/postcss.config.js +0 -5
- package/src/index.html +0 -18
- package/src/jscommon/backup/announcement.png +0 -0
- package/src/jscommon/backup/announcement2.png +0 -0
- package/src/jscommon/backup/blocktrading.png +0 -0
- package/src/jscommon/backup/investor.png +0 -0
- package/src/jscommon/backup/pforecast.png +0 -0
- package/src/jscommon/backup/research.png +0 -0
- package/src/jscommon/backup/tradedetail.png +0 -0
- package/src/jscommon/backup/umychart - backup.js +0 -17631
- package/src/jscommon/backup/umychart.macro.js +0 -4
- package/src/jscommon/backup/umychart.macro.vue.js +0 -3
- package/src/jscommon/commonindextree.json +0 -92
- package/src/jscommon/index.html +0 -13
- package/src/jscommon/jschinamapdata.js +0 -3
- package/src/jscommon/umychart.NetworkFilterTest.js +0 -48803
- package/src/jscommon/umychart.aliYunnetwork.js +0 -47
- package/src/jscommon/umychart.cninfo.components/readme.txt +0 -1
- package/src/jscommon/umychart.complier.js +0 -25291
- package/src/jscommon/umychart.complier.node/umychart.complier.controller.js +0 -559
- package/src/jscommon/umychart.complier.node/umychart.complier.node.js +0 -7043
- package/src/jscommon/umychart.complier.node/umychart.data.node.js +0 -816
- package/src/jscommon/umychart.console.js +0 -12
- package/src/jscommon/umychart.deal.js +0 -1452
- package/src/jscommon/umychart.dragdiv.js +0 -48
- package/src/jscommon/umychart.index.data.js +0 -4132
- package/src/jscommon/umychart.js +0 -90257
- package/src/jscommon/umychart.keyboard.js +0 -1659
- package/src/jscommon/umychart.listctrl.js +0 -690
- package/src/jscommon/umychart.mind.js +0 -2203
- package/src/jscommon/umychart.network.js +0 -44
- package/src/jscommon/umychart.news.js +0 -823
- package/src/jscommon/umychart.node.build/buildall.bat +0 -1
- package/src/jscommon/umychart.node.build/umychart.node.bat +0 -1
- package/src/jscommon/umychart.node.build/umychart.node.export.js +0 -40
- package/src/jscommon/umychart.regressiontest.js +0 -400
- package/src/jscommon/umychart.report.js +0 -5803
- package/src/jscommon/umychart.scrollbar.js +0 -1345
- package/src/jscommon/umychart.stock.js +0 -4218
- package/src/jscommon/umychart.style.js +0 -618
- package/src/jscommon/umychart.testdata.js +0 -150
- package/src/jscommon/umychart.uniapp.build/buildall.bat +0 -1
- package/src/jscommon/umychart.uniapp.build/umychart.bat +0 -1
- package/src/jscommon/umychart.uniapp.build/umychart.export.js +0 -70
- package/src/jscommon/umychart.user.js +0 -137
- package/src/jscommon/umychart.version.js +0 -30
- package/src/jscommon/umychart.vue/umychart.aliYunnetwork.vue.js +0 -56
- package/src/jscommon/umychart.vue.build/buildall.bat +0 -4
- package/src/jscommon/umychart.vue.build/copy_codemirror.bat +0 -2
- package/src/jscommon/umychart.vue.build/umychart.aliYunnetwork.vue.export.js +0 -9
- package/src/jscommon/umychart.vue.build/umychart.dragdiv.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.dragdiv.export.js +0 -6
- package/src/jscommon/umychart.vue.build/umychart.index.data.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.index.data.export.js +0 -4
- package/src/jscommon/umychart.vue.build/umychart.listctrl.vue.export.js +0 -15
- package/src/jscommon/umychart.vue.build/umychart.regressiontest.vue.export.js +0 -7
- package/src/jscommon/umychart.vue.build/umychart.regressiontest.wechat.export.js +0 -12
- package/src/jscommon/umychart.vue.build/umychart.stock.bat +0 -1
- package/src/jscommon/umychart.vue.build/umychart.stock.vue.export.js +0 -16
- package/src/jscommon/umychart.vue.build/umychart.testdata.bat +0 -3
- package/src/jscommon/umychart.vue.build/umychart.testdata.vue.export.js +0 -7
- package/src/jscommon/umychart.vue.build/umychart.vue.bat +0 -8
- package/src/jscommon/umychart.vue.build/umychart.vue.export.js +0 -112
- package/src/jscommon/umychart.vue.components/empyt.vue +0 -51
- package/src/jscommon/umychart.vue.components/historydayline.vue +0 -240
- package/src/jscommon/umychart.vue.components/jsloader.adddialog.vue +0 -315
- package/src/jscommon/umychart.vue.components/jsloader.vue +0 -93
- package/src/jscommon/umychart.vue.components/jsvuecontainer.vue +0 -160
- package/src/jscommon/umychart.vue.components/jsvuecontainer2.0.vue +0 -391
- package/src/jscommon/umychart.vue.components/login.vue +0 -178
- package/src/jscommon/umychart.vue.components/queryContent.vue +0 -750
- package/src/jscommon/umychart.vue.components/readme.txt +0 -8
- package/src/jscommon/umychart.vue.components/searchsymbol.vue +0 -299
- package/src/jscommon/umychart.vue.components/simulatetrade.vue +0 -1471
- package/src/jscommon/umychart.vue.components/stockchart.vue +0 -343
- package/src/jscommon/umychart.vue.components/stockchartV2.vue +0 -195
- package/src/jscommon/umychart.vue.components/stockdeal.vue +0 -358
- package/src/jscommon/umychart.vue.components/stockdealcount.vue +0 -262
- package/src/jscommon/umychart.vue.components/stockdeallastest.vue +0 -316
- package/src/jscommon/umychart.vue.components/stockdrawtool.vue +0 -343
- package/src/jscommon/umychart.vue.components/stockfull.vue +0 -355
- package/src/jscommon/umychart.vue.components/stockinfo.demo.vue +0 -153
- package/src/jscommon/umychart.vue.components/stockinfo.vue +0 -685
- package/src/jscommon/umychart.vue.components/stockkline.demo.vue +0 -1904
- package/src/jscommon/umychart.vue.components/stockmultiorder.vue +0 -174
- package/src/jscommon/umychart.vue.components/stockmultiperiod.vue +0 -222
- package/src/jscommon/umychart.vue.components/stockorder.vue +0 -320
- package/src/jscommon/umychart.vue.components/stocktradeinfo.demo.vue +0 -250
- package/src/jscommon/umychart.vue.components/stocktradeinfo.vue +0 -1907
- package/src/jscommon/umychart.vue.components/test.vue +0 -0
- package/src/jscommon/umychart.wechat/getDate.wechat.js +0 -91
- package/src/jscommon/umychart.wechat/lighter.news.wechat.js +0 -262
- package/src/jscommon/umychart.wechat/readme.txt +0 -3
- package/src/jscommon/umychart.wechat/umychart.analyze.wechat.js +0 -551
- package/src/jscommon/umychart.wechat/umychart.apidraw.wechat.js +0 -126
- package/src/jscommon/umychart.wechat/umychart.bigV.wechat.js +0 -2510
- package/src/jscommon/umychart.wechat/umychart.chartframe.wechat.js +0 -2931
- package/src/jscommon/umychart.wechat/umychart.chartpaint.wechat.js +0 -9752
- package/src/jscommon/umychart.wechat/umychart.charttitle.wechat.js +0 -2023
- package/src/jscommon/umychart.wechat/umychart.complier.wechat.js +0 -14726
- package/src/jscommon/umychart.wechat/umychart.console.wechat.js +0 -8
- package/src/jscommon/umychart.wechat/umychart.coordinatedata.wechat.js +0 -3654
- package/src/jscommon/umychart.wechat/umychart.data.wechat.js +0 -2243
- package/src/jscommon/umychart.wechat/umychart.element.wechart.js +0 -132
- package/src/jscommon/umychart.wechat/umychart.explainer.wechat.js +0 -1077
- package/src/jscommon/umychart.wechat/umychart.extendchart.wechat.js +0 -1140
- package/src/jscommon/umychart.wechat/umychart.framesplit.wechat.js +0 -2247
- package/src/jscommon/umychart.wechat/umychart.hqIndexformula.wechat.js +0 -941
- package/src/jscommon/umychart.wechat/umychart.index.data.wechat.js +0 -3628
- package/src/jscommon/umychart.wechat/umychart.index.wechat.js +0 -4074
- package/src/jscommon/umychart.wechat/umychart.klineinfo.wechat.js +0 -836
- package/src/jscommon/umychart.wechat/umychart.markethot.js +0 -50
- package/src/jscommon/umychart.wechat/umychart.network.wechart.js +0 -62
- package/src/jscommon/umychart.wechat/umychart.news.wechat.js +0 -3568
- package/src/jscommon/umychart.wechat/umychart.regressiontest.wechat.js +0 -412
- package/src/jscommon/umychart.wechat/umychart.report.wechat.js +0 -3983
- package/src/jscommon/umychart.wechat/umychart.resource.wechat.js +0 -919
- package/src/jscommon/umychart.wechat/umychart.shareimage.wechat.js +0 -681
- package/src/jscommon/umychart.wechat/umychart.simulatetrade.wechat.js +0 -238
- package/src/jscommon/umychart.wechat/umychart.stock.wechat.js +0 -4035
- package/src/jscommon/umychart.wechat/umychart.style.wechat.js +0 -419
- package/src/jscommon/umychart.wechat/umychart.uniapp.canvas.helper.js +0 -99
- package/src/jscommon/umychart.wechat/umychart.user.wechat.js +0 -588
- package/src/jscommon/umychart.wechat/umychart.userlog.wechat.js +0 -240
- package/src/jscommon/umychart.wechat/umychart.vedio.wechat.js +0 -112
- package/src/jscommon/umychart.wechat/umychart.version.wechat.js +0 -36
- package/src/jscommon/umychart.wechat/umychart.wechat.3.0.js +0 -12051
- package/src/jscommon/umychart.wechat/umychart.wechat.js +0 -15460
- package/src/jscommon/umychart.worker.js +0 -114
- package/src/jscommon/umychart.ws.stock.js +0 -110
- package/src/jscommon/umychart_python/.vscode/launch.json +0 -15
- package/src/jscommon/umychart_python/__init__.py +0 -4
- package/src/jscommon/umychart_python/build.cmd +0 -2
- package/src/jscommon/umychart_python/setup.py +0 -25
- package/src/jscommon/umychart_python/umychart_cache_testcase.py +0 -165
- package/src/jscommon/umychart_python/umychart_complier_data.py +0 -781
- package/src/jscommon/umychart_python/umychart_complier_help.py +0 -175
- package/src/jscommon/umychart_python/umychart_complier_job.py +0 -193
- package/src/jscommon/umychart_python/umychart_complier_jsalgorithm.py +0 -4144
- package/src/jscommon/umychart_python/umychart_complier_jscomplier.py +0 -177
- package/src/jscommon/umychart_python/umychart_complier_jsexecute.py +0 -517
- package/src/jscommon/umychart_python/umychart_complier_jsparser.py +0 -864
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata.py +0 -1238
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata_cache.py +0 -146
- package/src/jscommon/umychart_python/umychart_complier_jssymboldata_json.py +0 -106
- package/src/jscommon/umychart_python/umychart_complier_pandas_help.py +0 -80
- package/src/jscommon/umychart_python/umychart_complier_scanner.py +0 -554
- package/src/jscommon/umychart_python/umychart_complier_testcase.py +0 -362
- package/src/jscommon/umychart_python/umychart_complier_util.py +0 -30
- package/src/jscommon/umychart_python/umychart_webtemplate.py +0 -131
- package/src/jscommon/umychart_python/updatehqchartweb.bat +0 -5
- package/src/jscommon/vendor.js +0 -2
- package/src/pages/block.list.demo.page/App.vue +0 -117
- package/src/pages/block.list.demo.page/index.js +0 -12
- package/src/pages/brushTool.demo.page/App.vue +0 -19
- package/src/pages/brushTool.demo.page/index.js +0 -12
- package/src/pages/container.demo.page/App.vue +0 -118
- package/src/pages/container.demo.page/index.js +0 -18
- package/src/pages/dataZoom.demo.page/App.vue +0 -265
- package/src/pages/dataZoom.demo.page/components/dataZoom.vue +0 -303
- package/src/pages/dataZoom.demo.page/index.js +0 -12
- package/src/pages/historydayline.demo.page/App.vue +0 -57
- package/src/pages/historydayline.demo.page/index.js +0 -12
- package/src/pages/hq.demo.page/App.vue +0 -163
- package/src/pages/hq.demo.page/index.js +0 -12
- package/src/pages/hqchart.black/App.vue +0 -90
- package/src/pages/hqchart.black/components/searchsymbol.vue +0 -299
- package/src/pages/hqchart.black/components/stockdrawtool.vue +0 -300
- package/src/pages/hqchart.black/components/stockfull.vue +0 -313
- package/src/pages/hqchart.black/components/stockinfo.vue +0 -428
- package/src/pages/hqchart.black/components/stockkline.demo.vue +0 -1652
- package/src/pages/hqchart.black/components/stocktradeinfo.vue +0 -1337
- package/src/pages/hqchart.black/index.js +0 -30
- package/src/pages/hqchart.black/router/candlestickChart.vue +0 -108
- package/src/pages/hqchart.black/router/pricePointsTable.vue +0 -294
- package/src/pages/hqchart.black/router/stockDeallas.vue +0 -417
- package/src/pages/hqchart.black/router/timeShareChart.vue +0 -108
- package/src/pages/hqchart.page/App.vue +0 -101
- package/src/pages/hqchart.page/index.js +0 -18
- package/src/pages/index/App.vue +0 -1408
- package/src/pages/index/index.js +0 -7
- package/src/pages/indexHq/App.vue +0 -110
- package/src/pages/indexHq/index.js +0 -18
- package/src/pages/login.demo.page/App.vue +0 -22
- package/src/pages/login.demo.page/index.js +0 -12
- package/src/pages/queryContent.demo.page/App.vue +0 -29
- package/src/pages/queryContent.demo.page/index.js +0 -18
- package/src/pages/ranking.black/App.vue +0 -199
- package/src/pages/ranking.black/index.js +0 -18
- package/src/pages/search.demo.page/App.vue +0 -28
- package/src/pages/search.demo.page/index.js +0 -12
- package/src/pages/simulatetrade.demo.page/app.vue +0 -121
- package/src/pages/simulatetrade.demo.page/index.js +0 -17
- package/src/pages/stockdeal.demo.page/App.vue +0 -63
- package/src/pages/stockdeal.demo.page/index.js +0 -19
- package/src/pages/stockdealcount.demo.page/App.vue +0 -37
- package/src/pages/stockdealcount.demo.page/index.js +0 -12
- package/src/pages/stockdeallastest.demo.page/App.vue +0 -74
- package/src/pages/stockdeallastest.demo.page/index.js +0 -18
- package/src/pages/stockinfo.demo.page/App.vue +0 -92
- package/src/pages/stockinfo.demo.page/index.html +0 -13
- package/src/pages/stockinfo.demo.page/index.js +0 -19
- package/src/pages/stockkline.demo.page/App.vue +0 -55
- package/src/pages/stockkline.demo.page/index.js +0 -18
- package/src/pages/stockmultiorder.demo.page/App.vue +0 -149
- package/src/pages/stockmultiorder.demo.page/index.js +0 -18
- package/src/pages/stockmultiperiod.demo.page/App.vue +0 -87
- package/src/pages/stockmultiperiod.demo.page/index.js +0 -18
- package/src/pages/stockorder.demo.page/App.vue +0 -69
- package/src/pages/stockorder.demo.page/index.js +0 -18
- package/src/pages/test/App.vue +0 -22
- package/src/pages/test/index.js +0 -7
- package/src/pages/tradeinfopage/app.vue +0 -40
- package/src/pages/tradeinfopage/index.js +0 -7
- package/src/pages/tradeinfopage/tradeinfo.html +0 -12
- package/src/utils/urlObj.js +0 -81
- package/src/vendor.js +0 -2
- package/webpack.config.js +0 -104
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
import VueRouter from 'vue-router'
|
|
3
|
-
import ElementUI from 'element-ui'
|
|
4
|
-
import locale from 'element-ui/lib/locale/lang/en'
|
|
5
|
-
import 'element-ui/lib/theme-default/index.css';
|
|
6
|
-
import App from './app.vue'
|
|
7
|
-
import timeShareChart from './router/timeShareChart.vue'
|
|
8
|
-
import candlestickChart from './router/candlestickChart.vue'
|
|
9
|
-
import stockDeallas from './router/stockDeallas.vue'
|
|
10
|
-
import PricePointsTable from './router/pricePointsTable.vue'
|
|
11
|
-
|
|
12
|
-
Vue.use(ElementUI, { locale })
|
|
13
|
-
Vue.use(VueRouter)
|
|
14
|
-
|
|
15
|
-
const routes = [
|
|
16
|
-
{ path: '/', component: timeShareChart },
|
|
17
|
-
{ path: '/candlestickChart', component: candlestickChart },
|
|
18
|
-
{ path: '/stockDeallas', component: stockDeallas },
|
|
19
|
-
{ path: '/pricePointsTable', component: PricePointsTable },
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
const router = new VueRouter({
|
|
23
|
-
routes
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
new Vue({
|
|
27
|
-
el: '#app',
|
|
28
|
-
router,
|
|
29
|
-
render: h => h(App)
|
|
30
|
-
})
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class='divstockfull'>
|
|
3
|
-
<StockFull ref='stockfull' DefaultPeriod='' :KlineType="0" :DefaultSymbol="Symbol"
|
|
4
|
-
:KLineOption="KLineOption" :MinuteOption="MinuteOption" />
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import StockFull from '../components/stockfull.vue'
|
|
10
|
-
import HQChart from '../../../jscommon/umychart.vue/umychart.vue'
|
|
11
|
-
|
|
12
|
-
//定制K线设置
|
|
13
|
-
const CUSTOM_KLINE_OPTION=
|
|
14
|
-
{
|
|
15
|
-
Windows: //窗口指标
|
|
16
|
-
[
|
|
17
|
-
{Index:"MA"},
|
|
18
|
-
{Index:"MACD"},
|
|
19
|
-
],
|
|
20
|
-
|
|
21
|
-
//TradeIndex: {Index:'交易系统-BIAS'}, //交易系统
|
|
22
|
-
//ColorIndex:{ Index:'五彩K线-十字星'}, //五彩K线
|
|
23
|
-
|
|
24
|
-
KLine:
|
|
25
|
-
{
|
|
26
|
-
//Info:["公告","互动易","调研"], //信息地雷
|
|
27
|
-
Right:0, //复权 0 不复权 1 前复权 2 后复权
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const CUSTOM_MINUTE_OPTION=
|
|
32
|
-
{
|
|
33
|
-
Windows: //窗口指标
|
|
34
|
-
[
|
|
35
|
-
{Index:"RSI"},
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export default
|
|
40
|
-
{
|
|
41
|
-
props: ['Symbol'],
|
|
42
|
-
data ()
|
|
43
|
-
{
|
|
44
|
-
return {
|
|
45
|
-
KLineOption:CUSTOM_KLINE_OPTION,
|
|
46
|
-
MinuteOption:CUSTOM_MINUTE_OPTION
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
components: { StockFull},
|
|
51
|
-
|
|
52
|
-
created:function()
|
|
53
|
-
{
|
|
54
|
-
var isLog=this.GetURLParams('log');
|
|
55
|
-
if (isLog=='false')
|
|
56
|
-
{
|
|
57
|
-
HQChart.JSConsole.Chart.Log=()=>{}
|
|
58
|
-
HQChart.JSConsole.Complier.Log=()=>{}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
mounted:function()
|
|
63
|
-
{
|
|
64
|
-
var stockfull=this.$refs.stockfull;
|
|
65
|
-
|
|
66
|
-
var self=this;
|
|
67
|
-
window.onresize = function() { self.OnSize() }
|
|
68
|
-
|
|
69
|
-
this.OnSize();
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
methods:
|
|
74
|
-
{
|
|
75
|
-
OnChangeSymbol:function(symbol)
|
|
76
|
-
{
|
|
77
|
-
this.$refs.stockfull.SetSymbol(symbol);
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
OnSize:function()
|
|
81
|
-
{
|
|
82
|
-
var height= $(window).height();
|
|
83
|
-
var width = $(window).width();
|
|
84
|
-
|
|
85
|
-
$('.divstockfull').height(height);
|
|
86
|
-
|
|
87
|
-
this.$refs.stockfull.OnSize();
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
GetURLParams:function(name)
|
|
91
|
-
{
|
|
92
|
-
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
|
93
|
-
var r = window.location.search.substr(1).match(reg);
|
|
94
|
-
if (r != null) return decodeURI(r[2]);
|
|
95
|
-
return null;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
</script>
|
|
101
|
-
|
|
102
|
-
<style>
|
|
103
|
-
.divstockfull
|
|
104
|
-
{
|
|
105
|
-
height:800px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
</style>
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="price" ref="price">
|
|
3
|
-
<div class="price-head">
|
|
4
|
-
<div class="name-wrap">
|
|
5
|
-
<span class="name">{{Name}} {{Symbol}}</span>
|
|
6
|
-
<span>分价表</span>
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="price-content">
|
|
10
|
-
<div class='dealpricelist' v-for="item in [1, 2, 3, 4, 5, 6]" ref='dealpricelist' v-show='DealPriceData && DealPriceData.length > 0' ><!-- 分价表 -->
|
|
11
|
-
<table class='table'>
|
|
12
|
-
<thead>
|
|
13
|
-
<tr>
|
|
14
|
-
<th>价格</th>
|
|
15
|
-
<th>成交量</th>
|
|
16
|
-
<th>比例</th>
|
|
17
|
-
<th>竞买率</th>
|
|
18
|
-
</tr>
|
|
19
|
-
</thead>
|
|
20
|
-
<tbody>
|
|
21
|
-
<tr v-for='(item,index) in DealPriceData' :key='index+"dealprice"'>
|
|
22
|
-
<td :class='item.Price.Color'>{{item.Price.Text}}</td>
|
|
23
|
-
<td>{{item.Vol}}</td>
|
|
24
|
-
<td class="charts">
|
|
25
|
-
<span :style='item.Bar'>
|
|
26
|
-
<span class="buy" :style='item.BuyRate'></span>
|
|
27
|
-
<span class="none" :style='item.NoneRate'></span>
|
|
28
|
-
<span class="sell" :style='item.SellRate'></span>
|
|
29
|
-
</span>
|
|
30
|
-
</td>
|
|
31
|
-
<td>{{item.Rate}}</td>
|
|
32
|
-
</tr>
|
|
33
|
-
</tbody>
|
|
34
|
-
</table>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script>
|
|
41
|
-
import urlObj from '~/utils/urlObj'
|
|
42
|
-
import $ from "jquery";
|
|
43
|
-
import JSCommon from "~/jscommon/umychart.vue/umychart.vue.js";
|
|
44
|
-
import JSCommonStock from "~/jscommon/umychart.vue/umychart.stock.vue.js";
|
|
45
|
-
|
|
46
|
-
const tdHeight = 28;
|
|
47
|
-
const minWidth = 200;
|
|
48
|
-
export default {
|
|
49
|
-
props: ['Symbol'],
|
|
50
|
-
data () {
|
|
51
|
-
return {
|
|
52
|
-
Name: '',
|
|
53
|
-
DealPrice: {
|
|
54
|
-
Data:null,
|
|
55
|
-
JSStock: null //数据请求控制器
|
|
56
|
-
},
|
|
57
|
-
DealPriceData: null,
|
|
58
|
-
tbodyHeight: 0,
|
|
59
|
-
tbodyWidth: 0
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
created() {
|
|
63
|
-
if(!this.Symbol) {
|
|
64
|
-
this.Symbol = '000001.sz';
|
|
65
|
-
}
|
|
66
|
-
this.requestData();
|
|
67
|
-
},
|
|
68
|
-
methods: {
|
|
69
|
-
calculate() {
|
|
70
|
-
this.tbodyHeight = document.body.clientHeight - 32 - 26;
|
|
71
|
-
this.tbodyWidth = document.body.clientWidth - 26;
|
|
72
|
-
let col = Math.floor(this.tbodyHeight / tdHeight);
|
|
73
|
-
let totalRow = Math.floor(this.DealPriceData.length / col);
|
|
74
|
-
let pageRow = Math.floor(this.tbodyWidth / minWidth);
|
|
75
|
-
console.log(totalRow);
|
|
76
|
-
console.log(pageRow);
|
|
77
|
-
if(totalRow < pageRow) {
|
|
78
|
-
console.log('不能分这么多列');
|
|
79
|
-
}else {
|
|
80
|
-
console.log('可以分这么多列');
|
|
81
|
-
};
|
|
82
|
-
},
|
|
83
|
-
requestData() {
|
|
84
|
-
if (!this.DealPrice.JSStock) this.DealPrice.JSStock = JSCommonStock.JSStock.GetDealPriceListData();
|
|
85
|
-
let dealPrice = this.DealPrice.JSStock;
|
|
86
|
-
dealPrice.Symbol=this.Symbol;
|
|
87
|
-
dealPrice.UpdateUICallback = this.UpdateDealPrice;
|
|
88
|
-
dealPrice.IsAutoUpdate = true;
|
|
89
|
-
dealPrice.RequestData();
|
|
90
|
-
},
|
|
91
|
-
UpdateDealPrice:function(dealPrice) //分价表
|
|
92
|
-
{
|
|
93
|
-
console.log('[StockTradeInfo::UpdateDealPrice]', dealPrice.Data);
|
|
94
|
-
this.Name = dealPrice.Data.Stock.Name;
|
|
95
|
-
var yClose = dealPrice.Data.Day.YClose;
|
|
96
|
-
var priceList = dealPrice.Data.PriceList;
|
|
97
|
-
var maxVol = 0;
|
|
98
|
-
for(let i = 0; i < priceList.length; ++i){
|
|
99
|
-
var item = priceList[i];
|
|
100
|
-
if(item.Vol > maxVol){
|
|
101
|
-
maxVol = item.Vol;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
var tdWPer = 0.25;
|
|
105
|
-
var paddingRight = 5;
|
|
106
|
-
var barWidth = this.$refs.dealpricelist.clientWidth * tdWPer - paddingRight;
|
|
107
|
-
var data = [];
|
|
108
|
-
for(let i = 0; i < priceList.length; ++i){
|
|
109
|
-
var item = priceList[i];
|
|
110
|
-
var vol = item.Vol;
|
|
111
|
-
var buyRate = item.BuyVol / vol;
|
|
112
|
-
var sellRate = item.SellVol / vol;
|
|
113
|
-
var noneRate = item.NoneVol / vol;
|
|
114
|
-
|
|
115
|
-
var dealPriceObj = {};
|
|
116
|
-
|
|
117
|
-
var barStyle = {width:'20px'};
|
|
118
|
-
dealPriceObj.Price = {Text:JSCommon.IFrameSplitOperator.FormatValueString(item.Price,2),Color:'',Value:item.Price} ;
|
|
119
|
-
dealPriceObj.Vol = parseInt(item.Vol/100);
|
|
120
|
-
dealPriceObj.Rate = JSCommon.IFrameSplitOperator.FormatValueString(item.Proportion * 100, 2) + '%';
|
|
121
|
-
var color = JSCommon.IFrameSplitOperator.FormatValueColor(item.Price,yClose);
|
|
122
|
-
dealPriceObj.Price.Color = color;
|
|
123
|
-
dealPriceObj.WidthRate = item.Vol / maxVol;
|
|
124
|
-
var totalWidth = barWidth * dealPriceObj.WidthRate > 1 ? barWidth * dealPriceObj.WidthRate : 1;
|
|
125
|
-
barStyle.width = totalWidth + 'px';
|
|
126
|
-
|
|
127
|
-
var buyWidth = buyRate * totalWidth + 'px';
|
|
128
|
-
var sellWidth = sellRate * totalWidth + 'px';
|
|
129
|
-
var noneWidth = noneRate * totalWidth + 'px';
|
|
130
|
-
dealPriceObj.BuyRate = {width:buyWidth};
|
|
131
|
-
dealPriceObj.SellRate = {width:sellWidth};
|
|
132
|
-
dealPriceObj.NoneRate = {width:noneWidth};
|
|
133
|
-
|
|
134
|
-
dealPriceObj.Bar = barStyle;
|
|
135
|
-
data.push(dealPriceObj);
|
|
136
|
-
}
|
|
137
|
-
data.sort( (l,r) => r.Price.Value-l.Price.Value );
|
|
138
|
-
this.DealPriceData = data;
|
|
139
|
-
this.calculate();
|
|
140
|
-
},
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
</script>
|
|
144
|
-
|
|
145
|
-
<style scoped lang="less" rel="stylesheet/less">
|
|
146
|
-
@captionColor: #919aa3;
|
|
147
|
-
@bgColor: #141718;
|
|
148
|
-
@borderColor: #292d2f;
|
|
149
|
-
@priceUpColor: #ff5c5c;
|
|
150
|
-
@priceDownColor: #39e365;
|
|
151
|
-
@priceNull: #fff;
|
|
152
|
-
@buyBgColor: #ff5c5c;
|
|
153
|
-
@noneBgColor: #71777f;
|
|
154
|
-
@sellBgColor: #39e365;
|
|
155
|
-
|
|
156
|
-
@tradingVolColor: #d8dfe7;
|
|
157
|
-
@hoverBgColor: #26384f;
|
|
158
|
-
|
|
159
|
-
@minWidth: 200px;
|
|
160
|
-
@maxWidth: 250px;
|
|
161
|
-
|
|
162
|
-
.price {
|
|
163
|
-
display: flex;
|
|
164
|
-
flex-direction: column;
|
|
165
|
-
width: 100%;
|
|
166
|
-
height: 100%;
|
|
167
|
-
color: @captionColor;
|
|
168
|
-
background-color: @bgColor;
|
|
169
|
-
overflow: hidden;
|
|
170
|
-
.price-head {
|
|
171
|
-
fonot-size: 16px;
|
|
172
|
-
border-bottom: 1px solid @borderColor;
|
|
173
|
-
box-sizing: border-box;
|
|
174
|
-
text-align: center;
|
|
175
|
-
.name-wrap {
|
|
176
|
-
height: 32px;
|
|
177
|
-
line-height: 32px;
|
|
178
|
-
.name {
|
|
179
|
-
margin-right: 16px;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
.price-content {
|
|
184
|
-
display: flex;
|
|
185
|
-
font-size: 12px;
|
|
186
|
-
flex: 1;
|
|
187
|
-
.dealpricelist {
|
|
188
|
-
width: @minWidth;
|
|
189
|
-
box-sizing: border-box;
|
|
190
|
-
.table {
|
|
191
|
-
width: 100%;
|
|
192
|
-
border-right: 1px solid @borderColor;
|
|
193
|
-
box-sizing: border-box;
|
|
194
|
-
border-collapse: collapse;
|
|
195
|
-
thead {
|
|
196
|
-
th {
|
|
197
|
-
height: 26px;
|
|
198
|
-
line-height: 26px;
|
|
199
|
-
border-bottom: 1px solid @borderColor;
|
|
200
|
-
box-sizing: border-box;
|
|
201
|
-
&:nth-child(even) {
|
|
202
|
-
text-align: right;
|
|
203
|
-
}
|
|
204
|
-
&:nth-child(odd) {
|
|
205
|
-
text-align: left;
|
|
206
|
-
}
|
|
207
|
-
&:first-child {
|
|
208
|
-
padding-left: 10px;
|
|
209
|
-
}
|
|
210
|
-
&:nth-child(2) {
|
|
211
|
-
padding-right: 5px;
|
|
212
|
-
}
|
|
213
|
-
&:nth-child(3) {
|
|
214
|
-
padding-left: 5px;
|
|
215
|
-
}
|
|
216
|
-
&:last-child {
|
|
217
|
-
padding-right: 10px;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
tbody {
|
|
222
|
-
tr {
|
|
223
|
-
&:hover {
|
|
224
|
-
background-color: @hoverBgColor;
|
|
225
|
-
}
|
|
226
|
-
td {
|
|
227
|
-
height: 28px;
|
|
228
|
-
line-height: 28px;
|
|
229
|
-
box-sizing: border-box;
|
|
230
|
-
&:nth-child(even) {
|
|
231
|
-
text-align: right;
|
|
232
|
-
}
|
|
233
|
-
&:nth-child(odd) {
|
|
234
|
-
text-align: left;
|
|
235
|
-
}
|
|
236
|
-
&:first-child {
|
|
237
|
-
padding-left: 10px;
|
|
238
|
-
}
|
|
239
|
-
&:nth-child(2) {
|
|
240
|
-
color: @tradingVolColor;
|
|
241
|
-
padding-right: 5px;
|
|
242
|
-
}
|
|
243
|
-
&:nth-child(3) {
|
|
244
|
-
padding-left: 5px;
|
|
245
|
-
}
|
|
246
|
-
&:last-child {
|
|
247
|
-
color: @tradingVolColor;
|
|
248
|
-
padding-right: 10px;
|
|
249
|
-
}
|
|
250
|
-
> span {
|
|
251
|
-
vertical-align: middle;
|
|
252
|
-
display: inline-block;
|
|
253
|
-
height: 14px;
|
|
254
|
-
> span {
|
|
255
|
-
display: inline-block;
|
|
256
|
-
height: 14px;
|
|
257
|
-
}
|
|
258
|
-
.buy {
|
|
259
|
-
background-color: @buyBgColor;
|
|
260
|
-
}
|
|
261
|
-
.none {
|
|
262
|
-
background-color: @noneBgColor;
|
|
263
|
-
}
|
|
264
|
-
.sell {
|
|
265
|
-
background-color: @sellBgColor;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
&.PriceUp {
|
|
269
|
-
color: @buyBgColor !important;
|
|
270
|
-
}
|
|
271
|
-
&.PriceNull {
|
|
272
|
-
color: @noneBgColor !important;
|
|
273
|
-
}
|
|
274
|
-
&.PriceDown {
|
|
275
|
-
color: @sellBgColor !important;
|
|
276
|
-
}
|
|
277
|
-
&.charts {
|
|
278
|
-
display: flex;
|
|
279
|
-
align-items: center;
|
|
280
|
-
&>span {
|
|
281
|
-
display: flex;
|
|
282
|
-
align-items: center;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
</style>
|