feat 增加得物历史价格
All checks were successful
Build image / build (push) Successful in 9m18s

This commit is contained in:
timerzz 2024-05-16 15:23:21 +08:00
parent d9a0770be5
commit 8ac08ece08

View File

@ -80,6 +80,13 @@
<div>{{moment(h.createdAt).format('YYYY-MM-DD HH:mm:ss')}}</div>
<div>${{h.usPrice}}</div>
</div>
<div class="text-xl mt-4">得物价格CNY</div>
<div v-if="record.dwHistoryPrices?.length>0" class="flex space-x-16 my-2 text-lg" v-for="h in record.dwHistoryPrices">
<div>{{moment(h.createdAt).format('YYYY-MM-DD HH:mm:ss')}}</div>
<div>{{h.dwPrice}}</div>
</div>
<div class="text-lg" v-else >暂无</div>
</div>
</a-spin>
</template>
@ -353,6 +360,7 @@ const expand = (expanded, record)=>{
if(expanded && !record.historyPrices){
GetProduct(record.pid).then(res=>{
record.historyPrices = res.historyPrices
record.dwHistoryPrices = res.dwHistoryPrices
}).catch(err=>{
message.error("获取历史价格失败")
console.log(err)