zzzz
2024-04-09 a2399ad792d2e5209d5803dcb6845684bf3e2b96
src/views/userlist/components/detailuserdialog.vue
@@ -1,7 +1,11 @@
<template>
  <div>
    <a-modal title="用户详情" :width="1000" :visible="userDialog" :footer="false" @cancel="userDialog = false">
      <a-descriptions bordered :title="currentDetails.realName ? currentDetails.realName : '未认证'" :column="{ xxl: 3, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }">
      <a-descriptions
        bordered
        :title="currentDetails.realName ? currentDetails.realName : '未认证'"
        :column="{ xxl: 3, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }"
      >
        <a-descriptions-item label="用户ID">
          {{ currentDetails.id ? currentDetails.id : '--' }}
        </a-descriptions-item>
@@ -39,16 +43,16 @@
          {{ currentDetails.bankNo ? currentDetails.bankNo : '--' }}
        </a-descriptions-item>
        <a-descriptions-item label="账户总资金">
          {{ (currentDetails.userAmt + currentDetails.userIndexAmt + currentDetails.userFuturesAmt).toFixed(2) }}
          {{ currentDetails.ALL }}{{ currentDetails.ALLsybol }}
        </a-descriptions-item>
        <a-descriptions-item label="融资总资金">
          {{ currentDetails.userAmt ? currentDetails.userAmt : '0' }}
        <a-descriptions-item label="马股总资金">
          {{ currentDetails.MAS }}{{ currentDetails.MASsybol }}
        </a-descriptions-item>
        <a-descriptions-item label="融资可用资金">
          {{ currentDetails.enableAmt ? currentDetails.enableAmt : '0' }}
        <a-descriptions-item label="美股总资金">
          {{ currentDetails.US }}{{ currentDetails.USsybol }}
        </a-descriptions-item>
        <a-descriptions-item label="融资冻结保证金">
          {{ currentDetails.allFreezAmt ? currentDetails.allFreezAmt : '0' }}
        <a-descriptions-item label="港股总资金">
          {{ currentDetails.HK || 0 }}{{ currentDetails.HKsybol || 'HK$' }}
        </a-descriptions-item>
        <a-descriptions-item label="融资平仓线">
          {{ currentDetails.forceLine ? currentDetails.forceLine : '0' }}
@@ -77,26 +81,31 @@
                <a-descriptions-item label="期货平仓线">
                    {{ currentDetails.futuresForceLine ? currentDetails.futuresForceLine : '0' }}
                </a-descriptions-item> -->
      </a-descriptions>
    </a-modal>
  </div>
</template>
<script>
export default {
    components: {},
    props: {
        currentDetails: {
            type: Object
        }
  components: {},
  props: {
    currentDetails: {
      type: Object,
    },
    data () {
        return {
            userDialog: false
        }
    },
    methods: {
  },
  data() {
    return {
      userDialog: false,
    }
  },
  watch: {
    currentDetails(v) {
      console.log(v)
    },
  },
  mounted() {
    console.log(this.currentDetails)
  },
  methods: {},
}
</script>