|
|
|
@ -72,7 +72,7 @@ |
|
|
|
<view class="history-main" @click="itemClick(item)"> |
|
|
|
<text class="history-query">{{ item.stockName }}</text> |
|
|
|
<text class="history-query">({{ item.stockCode }})</text> |
|
|
|
<text class="history-query">({{ item.stockCode }})</text> |
|
|
|
<text class="history-query">{{ modelType(item.model) }} </text> |
|
|
|
</view> |
|
|
|
<text class="history-time">{{ |
|
|
|
formatTimeForHistory(item.createdTime) |
|
|
|
@ -99,12 +99,23 @@ const props = defineProps({ |
|
|
|
}, |
|
|
|
}); |
|
|
|
const showHistoryDrawer = ref(false); |
|
|
|
const modelType = ref(''); |
|
|
|
const drawerOffsetY = ref(0); |
|
|
|
// const handleHistory = () => { |
|
|
|
// showHistoryDrawer.value = true; |
|
|
|
// }; |
|
|
|
|
|
|
|
function modelType(model) { |
|
|
|
switch (model) { |
|
|
|
case 1: |
|
|
|
return "主力追踪"; |
|
|
|
case 2: |
|
|
|
return "主力雷达"; |
|
|
|
case 3: |
|
|
|
return "主力解码"; |
|
|
|
case 4: |
|
|
|
return "主力资金流"; |
|
|
|
} |
|
|
|
} |
|
|
|
// 历史记录 |
|
|
|
const openHistoryDrawer = async () => { |
|
|
|
const res = await RecordListApi({ |
|
|
|
@ -161,7 +172,6 @@ async function itemClick(item) { |
|
|
|
deepExplorationStore.setDeepExplorationInfo(message); |
|
|
|
onDrawerBackClick(); |
|
|
|
console.log(deepExplorationStore.deepExplorationInfo); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
const historyList = ref([]); |
|
|
|
|