|
|
@@ -2,17 +2,11 @@
|
|
|
<template>
|
|
|
<app-drawer :title="t('member.institution.broker.details.title')" width="900" v-model:show="show" :loading="loading" :refresh="refresh">
|
|
|
<app-table-details :title="t('member.institution.broker.details.subtitle')" :data="data?.organ" :label-width="160" :cell-props="detailProps1" :column="2" />
|
|
|
- <span>
|
|
|
- <span>{{ t('member.institution.broker.details.market') }}</span>
|
|
|
- <span>{{ t('member.institution.broker.details.markets') }}</span>
|
|
|
- <span v-for="item in goodslimit" v-bind:key="item.id">
|
|
|
- <span>{{ item.title }}: </span>
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- <span>
|
|
|
- <span>{{ t('member.institution.broker.details.market') }}</span>
|
|
|
- <span>{{ t('member.institution.broker.details.transurl') }} {{ data?.transurl }}</span>
|
|
|
- </span>
|
|
|
+ <app-table-details :title="t('member.institution.broker.details.market')" :data="data?.organ" :label-width="160" :cell-props="detailProps2">
|
|
|
+ <template #market>
|
|
|
+ {{ goodslimit.join(',') }}
|
|
|
+ </template>
|
|
|
+ </app-table-details>
|
|
|
<template #footer>
|
|
|
<el-button @click="onCancel(false)">{{ t('operation.close') }}</el-button>
|
|
|
</template>
|
|
|
@@ -53,6 +47,12 @@ const { data } = useRequest(queryRoleDetail, {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const goodslimit = computed(() => data.value?.markets.map(e => `${e.marketname+': '+goodsinfo(e.marketid)}`) ?? [])
|
|
|
+
|
|
|
+const goodsinfo = (marketid: number) => {
|
|
|
+ return ((data.value?.operategoodsinfo ?? []).filter(e => e.marketid === marketid).map(e => e.goodsname) ?? []).join(',') ?? ''
|
|
|
+}
|
|
|
+
|
|
|
const detailProps1: CellProp[] = [
|
|
|
{ prop: 'accountname', label: 'member.institution.broker.details.accountname' },
|
|
|
{ prop: 'userName', label: 'member.institution.broker.details.userName', formatValue: () => {
|
|
|
@@ -61,15 +61,10 @@ const detailProps1: CellProp[] = [
|
|
|
{ prop: 'reckonaccountid', label: 'member.institution.broker.details.reckonaccountid' }
|
|
|
]
|
|
|
|
|
|
-const goodslimit = computed(() => {
|
|
|
- return data.value?.markets.map(e => {
|
|
|
- return {
|
|
|
- id: e.marketid,
|
|
|
- title: e.marketname,
|
|
|
- value: data.value?.operategoodsinfo?.filter(g => g.marketid === e.marketid).map(e => e.goodsname).join(','),
|
|
|
- }
|
|
|
- }) ?? []
|
|
|
-})
|
|
|
+const detailProps2: CellProp[] = [
|
|
|
+ { prop: 'market', label: 'member.institution.broker.details.markets' },
|
|
|
+ { prop: 'transurl', label: 'member.institution.broker.details.transurl' }
|
|
|
+]
|
|
|
|
|
|
const onCancel = (isRefresh = false) => {
|
|
|
show.value = false
|