|
@@ -116,6 +116,8 @@ import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import { i18n } from '@/stores'
|
|
import { i18n } from '@/stores'
|
|
|
|
|
|
|
|
const feetypeEnum = useEnum('feetype')
|
|
const feetypeEnum = useEnum('feetype')
|
|
|
|
|
+const traderule = useEnum('traderule')
|
|
|
|
|
+const tradefee = useEnum('tradefee')
|
|
|
|
|
|
|
|
const { global: { t } } = i18n
|
|
const { global: { t } } = i18n
|
|
|
const formRef = ref<FormInstance>()
|
|
const formRef = ref<FormInstance>()
|
|
@@ -168,14 +170,14 @@ const { data: resultData, run: getResultList } = useRequest(initInvestorPerson,
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const ruleColumns = computed<Model.TableColumn[]>(() => [
|
|
const ruleColumns = computed<Model.TableColumn[]>(() => [
|
|
|
- { field: 'rulename', label: 'investor.custom.tradecfg.edit.rulename' },
|
|
|
|
|
|
|
+ { field: 'ruleid', label: 'investor.custom.tradecfg.edit.rulename', formatValue: (val) => traderule.getEnumTypeName(val) },
|
|
|
{ field: 'paramvalue', label: 'investor.custom.tradecfg.edit.paramvalue' },
|
|
{ field: 'paramvalue', label: 'investor.custom.tradecfg.edit.paramvalue' },
|
|
|
{ field: 'dvalue', label: 'investor.custom.tradecfg.edit.dvalue', show: formData.usergroupid !== 0 },
|
|
{ field: 'dvalue', label: 'investor.custom.tradecfg.edit.dvalue', show: formData.usergroupid !== 0 },
|
|
|
{ field: 'cvalue', label: 'investor.custom.tradecfg.edit.cvalue' },
|
|
{ field: 'cvalue', label: 'investor.custom.tradecfg.edit.cvalue' },
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
const feeColumns = computed<Model.TableColumn[]>(() => [
|
|
const feeColumns = computed<Model.TableColumn[]>(() => [
|
|
|
- { field: 'tradefeename', label: 'investor.custom.tradecfg.edit.tradefeename' },
|
|
|
|
|
|
|
+ { field: 'tradefeeid', label: 'investor.custom.tradecfg.edit.tradefeename', formatValue: (val) => tradefee.getEnumTypeName(val) },
|
|
|
{ field: 'feealgorithm', label: 'investor.custom.tradecfg.edit.feealgorithm', formatValue: (val) => getFeeAlgorithmName(val) },
|
|
{ field: 'feealgorithm', label: 'investor.custom.tradecfg.edit.feealgorithm', formatValue: (val) => getFeeAlgorithmName(val) },
|
|
|
{ field: 'exchangevalue', label: 'investor.custom.tradecfg.edit.exchangevalue' },
|
|
{ field: 'exchangevalue', label: 'investor.custom.tradecfg.edit.exchangevalue' },
|
|
|
{ field: 'dvalue', label: 'investor.custom.tradecfg.edit.dvalue', show: formData.usergroupid !== 0 },
|
|
{ field: 'dvalue', label: 'investor.custom.tradecfg.edit.dvalue', show: formData.usergroupid !== 0 },
|