1
jhzh
2026-01-09 26e85aa1441ca246970694681ce2ba39e0a68979
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<template>
    <page-header-wrapper>
        <a-card>
            <a-tabs default-active-key="1" @tabClick="gettabchange">
                <a-tab-pane key="1" tab="股票持仓单" forceRender>
                    <financingHold ref="financingHold"></financingHold>
                </a-tab-pane>
                <a-tab-pane key="2" tab="股票平仓单" forceRender>
                    <financingFlat ref="financingFlats"></financingFlat>
                </a-tab-pane>
                <!-- <a-tab-pane key="3" tab="指数持仓单" forceRender>
                    <indexHold ref="indexHold"></indexHold>
                </a-tab-pane>
                <a-tab-pane key="4" tab="指数平仓单" forceRender>
                    <indexFlat ref="indexFlat"></indexFlat>
                </a-tab-pane> -->
                <!-- <a-tab-pane key="5" tab="期货持仓单" forceRender>
                    <futuresHold ref="futuresHold"></futuresHold>
                </a-tab-pane>
                <a-tab-pane key="6" tab="期货平仓单" forceRender>
                    <futuresFlat ref="futuresFlat"></futuresFlat>
                </a-tab-pane> -->
                <a-tab-pane key="7" tab="股票委托单" forceRender>
                    <financingEntrust ref="financingEntrust"></financingEntrust>
                </a-tab-pane>
            </a-tabs>
        </a-card>
    </page-header-wrapper>
</template>
  
<script>
import financingHold from './components/financing-hold'
import financingFlat from './components/financing-flat'
import financingEntrust from './components/financing-entrust'
import indexHold from './components/index-hold'
import indexFlat from './components/index-flat'
import futuresHold from './components/futures-hold'
import futuresFlat from './components/futures-flat'
export default {
    name: 'financing',
    components: {
        financingHold,
        financingFlat,
        financingEntrust,
        indexHold,
        indexFlat,
        futuresHold,
        futuresFlat
    },
    data() {
        return {
        }
    },
    methods: {
        gettabchange(val) {
            if (val == 1) {
                this.$refs.financingHold.getinit()
            } else if (val == 2) {
                this.$refs.financingFlats.getinit()
            } else if (val == 3) {
                this.$refs.indexHold.getinit()
            } else if (val == 4) {
                this.$refs.indexFlat.getinit()
            } else if (val == 5) {
                this.$refs.futuresHold.getinit()
            } else if (val == 6) {
                this.$refs.financingEntrust.getinit()
            }
        }
    }
}
</script>
  
<style lang="less" scoped>
/deep/ .ant-tabs-nav-scroll {
    display: flex;
    justify-content: center;
}
</style>