From c57f75664da5f522e6824023af7e5c8fbe8ed38b Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Wed, 15 May 2024 17:54:50 +0800
Subject: [PATCH] 修改:客户反馈问题
---
src/page/user/Warehouse/data.list.vue | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/page/user/Warehouse/data.list.vue b/src/page/user/Warehouse/data.list.vue
index 443097d..38952e3 100644
--- a/src/page/user/Warehouse/data.list.vue
+++ b/src/page/user/Warehouse/data.list.vue
@@ -108,13 +108,13 @@
</div>
</div>
</van-col>
- <van-col span="8">
+ <!-- <van-col span="8">
<div style="text-align: center">
<div class="sport-content-title2">
{{ $t("止損價") }} ({{ activeObj.symbolCode }})
</div>
<div class="sport-content-text2">
- {{ item.profitTargetPrice | _toLocaleString }}
+ {{ item.stopTargetPrice | _toLocaleString }}
</div>
</div>
</van-col>
@@ -124,10 +124,10 @@
{{ $t("止盈價") }} ({{ activeObj.symbolCode }})
</div>
<div class="sport-content-text2">
- {{ item.stopTargetPrice | _toLocaleString }}
+ {{ item.profitTargetPrice | _toLocaleString }}
</div>
</div>
- </van-col>
+ </van-col> -->
</van-row>
<van-row>
<van-col span="12">
@@ -207,6 +207,7 @@
show: false,
actives: 0,
dataList: [],
+ timer: null,
tabsList: [
{
title: this.$t("持倉"),
@@ -220,7 +221,14 @@
],
};
},
-
+ created(){
+ this.timer = setInterval(() => {
+ this.getList();
+ }, 1000);
+ },
+ beforeDestroy() {
+ clearInterval(this.timer); // 在组件销毁前清除定时器
+ },
methods: {
pushRouter(item) {
const obj = {
@@ -245,7 +253,7 @@
});
},
onLoad() {
- this.pageNum++;
+ // this.pageNum++;
this.loading = true;
},
async confirm() {
@@ -273,13 +281,14 @@
const res = await getchicang({
state: this.actives,
stockType: laber || this.activeObj.laber,
- pageNum: this.pageNum,
- pageSize: this.pageSize,
+ pageNum: 1,
+ pageSize: 100,
});
this.loading = false;
if (res.status === 0) {
this.dataList = res.data.list;
+ this.$forceUpdate(); // 强制Vue重新渲染
// if (res.data.total <= this.dataList.length) {
this.finished = true;
// }
--
Gitblit v1.9.3