|
@ -164,6 +164,9 @@ const formsSuccess = async (formType,data) => { |
|
|
} |
|
|
} |
|
|
if(data.activeTime==0)data.activeTime = null; |
|
|
if(data.activeTime==0)data.activeTime = null; |
|
|
if(data.expireTime==0)data.expireTime = null; |
|
|
if(data.expireTime==0)data.expireTime = null; |
|
|
|
|
|
|
|
|
|
|
|
basicFormRef.value.formLoading = true |
|
|
|
|
|
try { |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
await CurrencyexchangeApi.createCurrencyexchange(data) |
|
|
await CurrencyexchangeApi.createCurrencyexchange(data) |
|
|
message.success(t('common.createSuccess')) |
|
|
message.success(t('common.createSuccess')) |
|
@ -171,6 +174,9 @@ const formsSuccess = async (formType,data) => { |
|
|
await CurrencyexchangeApi.updateCurrencyexchange(data) |
|
|
await CurrencyexchangeApi.updateCurrencyexchange(data) |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
} |
|
|
} |
|
|
|
|
|
} finally { |
|
|
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
|
|
} |
|
|
basicFormRef.value.dialogVisible = false |
|
|
basicFormRef.value.dialogVisible = false |
|
|
getList() |
|
|
getList() |
|
|
} |
|
|
} |
|
|