修改指标定义的新增以及新增日期的格式化

main
于阔 9 months ago
parent 3de3bb49a5
commit 4a10a84ab6

@ -346,7 +346,7 @@ const exportExcel = async () => {
/>
<RuleConfig ref="ruleConfigRef" v-if="actionType === 'ruleconfig'" />
<template #footer>
<ElButton v-if="actionType == 'edit'" type="primary" :loading="saveLoading" @click="save">
<ElButton v-if="actionType == 'edit' || actionType == 'add'" type="primary" :loading="saveLoading" @click="save">
{{ t('dialogDemo.save') }}
</ElButton>
<ElButton v-if="actionType == 'ruleconfig'" type="primary" :loading="saveLoading" @click="addRuleConfig">

@ -45,17 +45,17 @@ const formSchema = reactive<FormSchema[]>([
{
field: 'beginDate',
label: '开始日期',
component: 'Input',
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYYMMDD',
},
},
{
field: 'endDate',
label: '结束日期',
component: 'Input',
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYYMMDD',
},
},
{

Loading…
Cancel
Save