Handy_Cao 8 months ago
parent
commit
1ab1d1527b

+ 2 - 2
src/packages/pc/views/member/institution/riskcfg/components/details/index.vue

@@ -55,9 +55,9 @@ const detailProps1: CellProp[] = [
 const detailProps2 = computed<CellProp[]>(() => {
     const { notesaferatio } = data.value ?? {}
     return [
-        { prop: 'riskcontrolmode', label: 'member.institution.riskcfg.details.riskcontrolmode', formatValue: (val) => val === 1 ? 'member.institution.riskcfg.details.riskcontrolmode1' : 'member.institution.riskcfg.details.riskcontrolmode2' },
+        { prop: 'riskcontrolmode', label: 'member.institution.riskcfg.details.riskcontrolmode', formatValue: (val) => val === 1 ? t('member.institution.riskcfg.details.riskcontrolmode1') : t('member.institution.riskcfg.details.riskcontrolmode2') },
         { prop: 'customertype', label: 'member.institution.riskcfg.details.customertype1', formatValue: (val) => marketerTypeEnum.getEnumTypeName(val) },
-        { prop: 'riskratiocalcmode', label: 'member.institution.riskcfg.details.riskratiocalcmode', formatValue: (val) => val === 1 ? 'member.institution.riskcfg.details.riskratiocalcmode1' : 'member.institution.riskcfg.details.riskratiocalcmode2' },
+        { prop: 'riskratiocalcmode', label: 'member.institution.riskcfg.details.riskratiocalcmode', formatValue: (val) => val === 1 ? t('member.institution.riskcfg.details.riskratiocalcmode1') : t('member.institution.riskcfg.details.riskratiocalcmode2') },
         { prop: 'notemarginriskratio', label: 'member.institution.riskcfg.details.notemarginriskratio', formatValue: (val) => val + '%', show: !notesaferatio },
         { prop: 'addmarginriskratio', label: 'member.institution.riskcfg.details.addmarginriskratio', formatValue: (val) => val + '%', show: !notesaferatio },
         { prop: 'cutriskratio', label: 'member.institution.riskcfg.details.cutriskratio', formatValue: (val) => val + '%', show: !notesaferatio },

+ 2 - 2
src/packages/pc/views/member/institution/riskcfg/components/edit/index.vue

@@ -107,9 +107,9 @@ const formRules: FormRules = {
 const detailProps = computed<CellProp[]>(() => {
     const { notesaferatio } = selectedItem.value ?? {}
     return [
-        { prop: 'riskcontrolmode', label: 'member.institution.riskcfg.edit.riskcontrolmode', formatValue: (val) => val === 1 ? 'member.institution.riskcfg.edit.riskcontrolmode1' : 'member.institution.riskcfg.edit.riskcontrolmode2' },
+        { prop: 'riskcontrolmode', label: 'member.institution.riskcfg.edit.riskcontrolmode', formatValue: (val) => val === 1 ? t('member.institution.riskcfg.edit.riskcontrolmode1') : t('member.institution.riskcfg.edit.riskcontrolmode2') },
         { prop: 'customertype', label: 'member.institution.riskcfg.edit.customertype', formatValue: (val) => marketerTypeEnum.getEnumTypeName(val) },
-        { prop: 'riskratiocalcmode', label: 'member.institution.riskcfg.edit.riskratiocalcmode', formatValue: (val) => val === 1 ? 'member.institution.riskcfg.edit.riskratiocalcmode1' : 'member.institution.riskcfg.edit.riskratiocalcmode2' },
+        { prop: 'riskratiocalcmode', label: 'member.institution.riskcfg.edit.riskratiocalcmode', formatValue: (val) => val === 1 ? t('member.institution.riskcfg.edit.riskratiocalcmode1') : t('member.institution.riskcfg.edit.riskratiocalcmode2') },
         { prop: 'notemarginriskratio', label: 'member.institution.riskcfg.edit.notemarginriskratio', formatValue: (val) => val + '%', show: !notesaferatio },
         { prop: 'addmarginriskratio', label: 'member.institution.riskcfg.edit.addmarginriskratio', formatValue: (val) => val + '%', show: !notesaferatio },
         { prop: 'cutriskratio', label: 'member.institution.riskcfg.edit.cutriskratio', formatValue: (val) => val + '%', show: !notesaferatio },