|
|
@@ -1,8 +1,8 @@
|
|
|
<!-- 会员机构管理-机构管理-做市会员管理-详情 -->
|
|
|
<template>
|
|
|
<app-drawer title="详情" width="900" v-model:show="show" :loading="loading" :refresh="refresh">
|
|
|
- <app-table-details :title="t('member.institution.marketer.details.subtitle')" :data="data?.organ" :label-width="160" :cell-props="detailProps1" :column="2" />
|
|
|
- <app-table-details :title="t('member.institution.marketer.details.subtitle3')" :data="data?.roleNight[0]" :label-width="160" :cell-props="detailProps2" :column="1" />
|
|
|
+ <app-table-details v-if="data" :title="t('member.institution.marketer.details.subtitle')" :data="data?.organ" :label-width="160" :cell-props="detailProps1" :column="2" />
|
|
|
+ <app-table-details v-if="data" :title="t('member.institution.marketer.details.subtitle3')" :data="data?.roleNight[0]" :label-width="160" :cell-props="detailProps2" :column="1" />
|
|
|
<app-table-details v-if="marker" :title="t('member.institution.marketer.details.subtitle4')" :data="marker" :label-width="160" :cell-props="detailProps3" :column="2" />
|
|
|
<template #footer>
|
|
|
<el-button @click="onCancel(false)">{{ t('operation.close') }}</el-button>
|
|
|
@@ -49,29 +49,35 @@ const { data } = useRequest(queryRoleDetail, {
|
|
|
ElMessage.error(err)
|
|
|
},
|
|
|
onSuccess: (res) => {
|
|
|
- getRiskRatioTypeForMarketer({
|
|
|
- data: {
|
|
|
- riskcontrolmode: 2,
|
|
|
- customertype: res.data.customertype.customertype
|
|
|
- }
|
|
|
- }).then((data) => {
|
|
|
- marker.value = data.data
|
|
|
- })
|
|
|
+ if (res.data.customertype) {
|
|
|
+ const { customertype } = res.data.customertype
|
|
|
+ getRiskRatioTypeForMarketer({
|
|
|
+ data: {
|
|
|
+ riskcontrolmode: 2,
|
|
|
+ customertype: customertype
|
|
|
+ }
|
|
|
+ }).then((data) => {
|
|
|
+ marker.value = data.data
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-const detailProps1: CellProp[] = [
|
|
|
- { prop: 'accountname', label: 'member.institution.marketer.details.accountname' },
|
|
|
- { prop: 'userName', label: 'member.institution.marketer.details.userName', formatValue: () => {
|
|
|
- return data.value?.users.username
|
|
|
- } },
|
|
|
- { prop: 'customertype', label: 'member.institution.marketer.details.customertype', formatValue: () => customerTypeEnum.getEnumTypeName(data.value?.customertype.customertype) }
|
|
|
-]
|
|
|
+const detailProps1 = computed<CellProp[]>(() => {
|
|
|
+ const { customertype } = data.value?.customertype ?? {}
|
|
|
+ return [
|
|
|
+ { prop: 'accountname', label: 'member.institution.marketer.details.accountname' },
|
|
|
+ { prop: 'userName', label: 'member.institution.marketer.details.userName', formatValue: () => {
|
|
|
+ return data.value?.users.username
|
|
|
+ } },
|
|
|
+ { prop: 'customertype', label: 'member.institution.marketer.details.customertype', formatValue: () => customerTypeEnum.getEnumTypeName(customertype), show: !!customertype }
|
|
|
+ ]
|
|
|
+})
|
|
|
|
|
|
const detailProps2: CellProp[] = [
|
|
|
{ prop: 'enumdicname', label: 'member.institution.marketer.details.enumdicname'},
|
|
|
{ prop: 'reckonaccountid', label: 'member.institution.marketer.details.reckonaccountid1' }
|
|
|
-]
|
|
|
+]
|
|
|
|
|
|
const detailProps3 = computed<CellProp[]>(() => {
|
|
|
const { notesaferatio } = marker.value ?? {}
|