|
@@ -8,7 +8,7 @@
|
|
|
<a-radio-button :value="item.type">{{ item.name }}</a-radio-button>
|
|
<a-radio-button :value="item.type">{{ item.name }}</a-radio-button>
|
|
|
</template>
|
|
</template>
|
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
|
- <a-radio-group class="chart-content__tabs" v-model:value="activeSeriesType" v-if="activeCycleType !== CycleType.time">
|
|
|
|
|
|
|
+ <a-radio-group class="chart-content__tabs" v-model:value="activeSeriesType" v-show="activeCycleType !== CycleType.time">
|
|
|
<a-radio-button value="MACD">MACD</a-radio-button>
|
|
<a-radio-button value="MACD">MACD</a-radio-button>
|
|
|
<a-radio-button value="VOL">VOL</a-radio-button>
|
|
<a-radio-button value="VOL">VOL</a-radio-button>
|
|
|
<a-radio-button value="KDJ">KDJ</a-radio-button>
|
|
<a-radio-button value="KDJ">KDJ</a-radio-button>
|
|
@@ -17,7 +17,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
<echart-time class="chart-content__main" :quote-data="selectedRow" v-if="activeCycleType === CycleType.time"></echart-time>
|
|
<echart-time class="chart-content__main" :quote-data="selectedRow" v-if="activeCycleType === CycleType.time"></echart-time>
|
|
|
<echart-kline class="chart-content__main" :quote-data="selectedRow" :cycle-type="activeCycleType" :series-type="activeSeriesType" v-else></echart-kline>
|
|
<echart-kline class="chart-content__main" :quote-data="selectedRow" :cycle-type="activeCycleType" :series-type="activeSeriesType" v-else></echart-kline>
|
|
|
- <!-- <component :is="componentId" v-if="componentId" :quote-data="selectedRow"></component> -->
|
|
|
|
|
<div class="chart-content__footer"></div>
|
|
<div class="chart-content__footer"></div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="chart-slider">
|
|
<div class="chart-slider">
|
|
@@ -50,11 +49,20 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="chart-tips__tik">
|
|
<div class="chart-tips__tik">
|
|
|
- <div class="title">分时成交</div>
|
|
|
|
|
- <div class="chartRow" v-for="(item, index) in tradedList" :key="index + '11'">
|
|
|
|
|
- <div class="left">{{ formatTime(item.TS, 'hm') }}</div>
|
|
|
|
|
- <div class="middle">{{ item.PE }}</div>
|
|
|
|
|
- <div class="right">{{ item.Vol }}</div>
|
|
|
|
|
|
|
+ <div class="row-header">
|
|
|
|
|
+ <h4>分时成交</h4>
|
|
|
|
|
+ <a-row>
|
|
|
|
|
+ <a-col :span="8">时间</a-col>
|
|
|
|
|
+ <a-col :span="8">价格</a-col>
|
|
|
|
|
+ <a-col :span="8">现量</a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="row-content">
|
|
|
|
|
+ <a-row v-for="(item, index) in tradedList" :key="index + '11'">
|
|
|
|
|
+ <a-col :span="8">{{ formatTime(item.TS, 'hm') }}</a-col>
|
|
|
|
|
+ <a-col :class="handleQuotePriceColor(item.PE, selectedRow.presettle)" :span="8">{{ item.PE }}</a-col>
|
|
|
|
|
+ <a-col :class="handleQuotePriceColor(item.Vol, selectedRow.presettle)" :span="8">{{ item.Vol }}</a-col>
|
|
|
|
|
+ </a-row>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="chart-tips__info">
|
|
<div class="chart-tips__info">
|
|
@@ -109,8 +117,8 @@
|
|
|
<a-row>
|
|
<a-row>
|
|
|
<a-col :span="4">仓差</a-col>
|
|
<a-col :span="4">仓差</a-col>
|
|
|
<a-col :span="8">{{ '--' }}</a-col>
|
|
<a-col :span="8">{{ '--' }}</a-col>
|
|
|
- <a-col :span="4">前结</a-col>
|
|
|
|
|
- <a-col :span="8">{{ '--' }}</a-col>
|
|
|
|
|
|
|
+ <a-col :span="4">昨结</a-col>
|
|
|
|
|
+ <a-col :span="8">{{ selectedRow.presettle }}</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
<a-row>
|
|
<a-row>
|
|
|
<a-col :span="4">日增</a-col>
|
|
<a-col :span="4">日增</a-col>
|
|
@@ -127,8 +135,8 @@
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent } from '@/common/export/commonTable';
|
|
import { defineComponent } from '@/common/export/commonTable';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
-import { PropType, ref } from 'vue';
|
|
|
|
|
-import { QueryQuoteDayRsp, CycleType } from '@/services/go/quote/interface';
|
|
|
|
|
|
|
+import { PropType, ref, watch } from 'vue';
|
|
|
|
|
+import { QueryQuoteDayRsp, QueryHistoryTikDatasRsp, CycleType } from '@/services/go/quote/interface';
|
|
|
import { QueryHistoryTikDatas } from '@/services/go/quote';
|
|
import { QueryHistoryTikDatas } from '@/services/go/quote';
|
|
|
import { formatTime } from '@/common/methods';
|
|
import { formatTime } from '@/common/methods';
|
|
|
import { changeUnit } from '@/utils/qt/common';
|
|
import { changeUnit } from '@/utils/qt/common';
|
|
@@ -171,11 +179,36 @@ export default defineComponent({
|
|
|
{ name: '日 K', type: CycleType.days },
|
|
{ name: '日 K', type: CycleType.days },
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
- const { list: tradedList } = useQueryData(QueryHistoryTikDatas, {
|
|
|
|
|
|
|
+ // Tik列表
|
|
|
|
|
+ const { list: tradedList } = useQueryData<QueryHistoryTikDatasRsp>(QueryHistoryTikDatas, {
|
|
|
goodsCode: goodscode,
|
|
goodsCode: goodscode,
|
|
|
- count: 10,
|
|
|
|
|
|
|
+ count: 20,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ // 监听行情变化刷Tik列表
|
|
|
|
|
+ watch(
|
|
|
|
|
+ () => props.selectedRow.last,
|
|
|
|
|
+ () => {
|
|
|
|
|
+ // 移除列表最后一条记录
|
|
|
|
|
+ tradedList.value.pop();
|
|
|
|
|
+ // 向列表开头添加新纪录
|
|
|
|
|
+ tradedList.value.unshift({
|
|
|
|
|
+ AV: 0,
|
|
|
|
|
+ Ask: 0,
|
|
|
|
|
+ BV: 0,
|
|
|
|
|
+ Bid: 0,
|
|
|
|
|
+ HI: 0,
|
|
|
|
|
+ HV: 0,
|
|
|
|
|
+ PE: props.selectedRow.last,
|
|
|
|
|
+ TDR: 0,
|
|
|
|
|
+ TK: 0,
|
|
|
|
|
+ TS: props.selectedRow.lasttime,
|
|
|
|
|
+ TT: 0,
|
|
|
|
|
+ Vol: props.selectedRow.lastvolume,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
cancel,
|
|
cancel,
|
|
|
visible,
|
|
visible,
|