|
@@ -47,7 +47,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, defineAsyncComponent } from 'vue'
|
|
|
|
|
|
|
+import { shallowRef, defineAsyncComponent, onUnmounted } from 'vue'
|
|
|
import { parsePercent, formatDecimal } from '@/filters'
|
|
import { parsePercent, formatDecimal } from '@/filters'
|
|
|
import { useRequest } from '@/hooks/request'
|
|
import { useRequest } from '@/hooks/request'
|
|
|
import { queryMineTradePositionExs } from '@/services/api/transfer'
|
|
import { queryMineTradePositionExs } from '@/services/api/transfer'
|
|
@@ -55,6 +55,7 @@ import { getPayStatusName, PayStatus } from '@/constants/order'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { useComposeTable } from '@pc/components/base/table'
|
|
import { useComposeTable } from '@pc/components/base/table'
|
|
|
import { useTableColumnsStore, i18n } from '@/stores'
|
|
import { useTableColumnsStore, i18n } from '@/stores'
|
|
|
|
|
+import eventBus from '@/services/bus'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
|
|
|
|
|
const componentMap = new Map<string, unknown>([
|
|
const componentMap = new Map<string, unknown>([
|
|
@@ -83,4 +84,14 @@ const showComponent = (componentName: string, row?: Model.MineTradePositionExsRs
|
|
|
getTableColumns('transfer-position').then((res) => {
|
|
getTableColumns('transfer-position').then((res) => {
|
|
|
tableColumns.value = res
|
|
tableColumns.value = res
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+// 接收委托回应通知
|
|
|
|
|
+const orderRspNotify = eventBus.$on('OrderRsp', () => {
|
|
|
|
|
+ run()
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+onUnmounted(() => {
|
|
|
|
|
+ orderRspNotify.cancel()
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|