|
|
@@ -21,7 +21,7 @@
|
|
|
</div>
|
|
|
<app-pull-refresh ref="pullRefreshRef" v-model:loading="loading" v-model:error="error" v-model:pageIndex="pageIndex"
|
|
|
:page-count="pageCount" @refresh="onTabChange">
|
|
|
- <Tabs v-model:active="tabIndex" @click="onTabChange">
|
|
|
+ <Tabs v-model:active="tabIndex" @click="onChange">
|
|
|
<Tab title="买大厅" />
|
|
|
<Tab title="卖大厅" />
|
|
|
</Tabs>
|
|
|
@@ -36,7 +36,7 @@
|
|
|
</app-list>
|
|
|
</div>
|
|
|
</app-pull-refresh>
|
|
|
- <component ref="componentRef" :is="componentMap.get(componentId)" v-bind="{ selectedRow, tabIndex, item }" @closed="closeComponent"
|
|
|
+ <component ref="componentRef" :is="componentMap.get(componentId)" v-bind="{ selectedRow, tabIndex, item, quote }" @closed="closeComponent"
|
|
|
v-if="componentId" />
|
|
|
</app-view>
|
|
|
</template>
|
|
|
@@ -61,8 +61,6 @@ const componentMap = new Map<string, unknown>([
|
|
|
['listing', defineAsyncComponent(() => import('./components/listing/Index.vue'))],
|
|
|
])
|
|
|
|
|
|
-
|
|
|
-
|
|
|
const loginStore = useLoginStore()
|
|
|
|
|
|
const { getParamString } = useNavigation()
|
|
|
@@ -82,6 +80,7 @@ const { pageIndex, loading, run, pageCount } = useRequest(queryWrTradeOrderDetai
|
|
|
buyorsell: tabIndex.value
|
|
|
},
|
|
|
onSuccess: (res) => {
|
|
|
+ console.log(pageIndex.value)
|
|
|
if (pageIndex.value === 1) {
|
|
|
dataList.value = []
|
|
|
}
|
|
|
@@ -95,6 +94,14 @@ const { pageIndex, loading, run, pageCount } = useRequest(queryWrTradeOrderDetai
|
|
|
const onTabChange = () => {
|
|
|
run({
|
|
|
buyorsell: tabIndex.value,
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+const onChange = () => {
|
|
|
+ /// 重置为1
|
|
|
+ pageIndex.value = 1
|
|
|
+ run({
|
|
|
+ buyorsell: tabIndex.value,
|
|
|
page: 1
|
|
|
})
|
|
|
}
|