|
@@ -12,7 +12,8 @@
|
|
|
</a-table>
|
|
</a-table>
|
|
|
</template>
|
|
</template>
|
|
|
</mtp-table-scroll>
|
|
</mtp-table-scroll>
|
|
|
- <component :is="componentId" v-if="componentId" :selectedRow="selectedRow" @cancel="closeComponent"></component>
|
|
|
|
|
|
|
+ <component :is="componentId" v-if="componentId" v-bind="{ selectedRow, accountId: tradeAccount?.accountid }"
|
|
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -40,7 +41,7 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup(props) {
|
|
setup(props) {
|
|
|
const { auth } = props.parentComponent;
|
|
const { auth } = props.parentComponent;
|
|
|
- const { loading, tradePositionList } = useTradeAccount();
|
|
|
|
|
|
|
+ const { loading, tradePositionList, tradeAccount } = useTradeAccount();
|
|
|
|
|
|
|
|
// 表格通用逻辑
|
|
// 表格通用逻辑
|
|
|
const param: ComposeOrderTableParam = {
|
|
const param: ComposeOrderTableParam = {
|
|
@@ -54,6 +55,7 @@ export default defineComponent({
|
|
|
expandIcon,
|
|
expandIcon,
|
|
|
tradePositionList,
|
|
tradePositionList,
|
|
|
auth,
|
|
auth,
|
|
|
|
|
+ tradeAccount,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|