|
@@ -51,6 +51,7 @@ import { useLoginStore, useUserStore } from '@/stores'
|
|
|
import AppList from '@mobile/components/base/list/index.vue'
|
|
import AppList from '@mobile/components/base/list/index.vue'
|
|
|
import { getUserId } from '@/services/methods/user'
|
|
import { getUserId } from '@/services/methods/user'
|
|
|
import { formatDecimal } from '@/filters'
|
|
import { formatDecimal } from '@/filters'
|
|
|
|
|
+import { onActivated } from 'vue'
|
|
|
|
|
|
|
|
const Price = defineAsyncComponent(() => import('@mobile/components/modules/quote/price/index.vue'))
|
|
const Price = defineAsyncComponent(() => import('@mobile/components/modules/quote/price/index.vue'))
|
|
|
const Chart = defineAsyncComponent(() => import('@mobile/components/modules/hqchart/index.vue'))
|
|
const Chart = defineAsyncComponent(() => import('@mobile/components/modules/hqchart/index.vue'))
|
|
@@ -74,7 +75,8 @@ const userStore = useUserStore()
|
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent(() => onRefresh())
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent(() => onRefresh())
|
|
|
|
|
|
|
|
/// 查询用户掉期协议签署表
|
|
/// 查询用户掉期协议签署表
|
|
|
-const { dataList: protocolList } = useRequest(queryMdUserSwapProtocol, {
|
|
|
|
|
|
|
+const { dataList: protocolList, run: runMdUserSwapProtocol } = useRequest(queryMdUserSwapProtocol, {
|
|
|
|
|
+ manual: true,
|
|
|
params: {
|
|
params: {
|
|
|
userId: getUserId()
|
|
userId: getUserId()
|
|
|
}
|
|
}
|
|
@@ -163,4 +165,9 @@ const onListing = () => {
|
|
|
openComponent('listing')
|
|
openComponent('listing')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+onActivated(() => {
|
|
|
|
|
+ /// 查询
|
|
|
|
|
+ runMdUserSwapProtocol()
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|