Browse Source

添加历史记录模型名称

lihuilin/feature-20251024095243-我的
wangyi 4 weeks ago
parent
commit
32adc6067e
  1. 16
      components/deepExploration_header.vue

16
components/deepExploration_header.vue

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

Loading…
Cancel
Save