|
@@ -121,7 +121,10 @@ const rules = computed<EpFormRules>(() => {
|
|
|
category: [{ required: false, message: '请选择成绩表对应字段' }],
|
|
|
intervalScore: [{ required: true, message: '请输入小题间隔分' }],
|
|
|
mainNumber: [{ required: true, message: '请输入大题号' }],
|
|
|
- mainTitle: [{ required: true, message: '请输入大题名称' }],
|
|
|
+ mainTitle: [
|
|
|
+ { required: true, message: '请输入大题名称' },
|
|
|
+ { type: 'string', message: '大题名称限制50字以内' },
|
|
|
+ ],
|
|
|
minMarkTime: [{ required: true, message: '请输入最小阅卷时长' }],
|
|
|
questionCount: [{ required: true, message: '请输入小题数量' }],
|
|
|
questionScore: [{ required: true, message: '请输入小题满分' }],
|
|
@@ -188,7 +191,7 @@ const items = computed<EpFormItem[]>(() => [
|
|
|
label: '小题起始号',
|
|
|
slotType: 'inputNumber',
|
|
|
prop: 'startNumber',
|
|
|
- slot: { placeholder: '小题起始号', disabled: isEdit, stepStrictly: true, step: 1 },
|
|
|
+ slot: { placeholder: '小题起始号', disabled: isEdit, stepStrictly: true, step: 1, min: 0, max: 999999 },
|
|
|
},
|
|
|
'row-3'
|
|
|
),
|
|
@@ -197,7 +200,7 @@ const items = computed<EpFormItem[]>(() => [
|
|
|
label: '小题数量',
|
|
|
slotType: 'inputNumber',
|
|
|
prop: 'questionCount',
|
|
|
- slot: { placeholder: '小题数量', stepStrictly: true, step: 1 },
|
|
|
+ slot: { placeholder: '小题数量', stepStrictly: true, step: 1, min: 0, max: 999999 },
|
|
|
},
|
|
|
'row-4'
|
|
|
),
|
|
@@ -206,7 +209,7 @@ const items = computed<EpFormItem[]>(() => [
|
|
|
label: '小题满分',
|
|
|
slotType: 'inputNumber',
|
|
|
prop: 'questionScore',
|
|
|
- slot: { placeholder: '小题满分', stepStrictly: true, step: 1 },
|
|
|
+ slot: { placeholder: '小题满分', stepStrictly: true, step: 1, min: 0, max: 999999 },
|
|
|
},
|
|
|
'row-5'
|
|
|
),
|
|
@@ -215,7 +218,7 @@ const items = computed<EpFormItem[]>(() => [
|
|
|
label: '间隔分',
|
|
|
slotType: 'inputNumber',
|
|
|
prop: 'intervalScore',
|
|
|
- slot: { placeholder: '间隔分', stepStrictly: true, step: 1 },
|
|
|
+ slot: { placeholder: '间隔分', stepStrictly: true, step: 1, min: 0, max: 999999 },
|
|
|
},
|
|
|
'row-6'
|
|
|
),
|
|
@@ -224,7 +227,7 @@ const items = computed<EpFormItem[]>(() => [
|
|
|
label: '最小阅卷时长(秒)',
|
|
|
slotType: 'inputNumber',
|
|
|
prop: 'minMarkTime',
|
|
|
- slot: { placeholder: '最小阅卷时长(秒)', stepStrictly: true, step: 1 },
|
|
|
+ slot: { placeholder: '最小阅卷时长(秒)', stepStrictly: true, step: 1, min: 0, max: 9999999 },
|
|
|
},
|
|
|
'row-7'
|
|
|
),
|
|
@@ -233,7 +236,7 @@ const items = computed<EpFormItem[]>(() => [
|
|
|
label: '评卷小组数量',
|
|
|
slotType: 'inputNumber',
|
|
|
prop: 'groupNumber',
|
|
|
- slot: { placeholder: '评卷小组数量', stepStrictly: true, step: 1 },
|
|
|
+ slot: { placeholder: '评卷小组数量', stepStrictly: true, step: 1, min: 0, max: 999999 },
|
|
|
},
|
|
|
'row-8'
|
|
|
),
|
|
@@ -260,6 +263,8 @@ const items = computed<EpFormItem[]>(() => [
|
|
|
slot: {
|
|
|
stepStrictly: true,
|
|
|
step: 1,
|
|
|
+ min: 0,
|
|
|
+ max: 999999999,
|
|
|
},
|
|
|
},
|
|
|
'row-10'
|