|
@@ -105,6 +105,7 @@ const model = reactive<ExtractApiParams<'importMarkingData'>>({
|
|
|
subjectCode: dataModel.subject || '',
|
|
|
separator: '',
|
|
|
mainNumber: dataModel.question,
|
|
|
+ packageTaskCount: 5,
|
|
|
dayNumber: void 0,
|
|
|
file: void 0,
|
|
|
})
|
|
@@ -136,6 +137,7 @@ watch(
|
|
|
const rules: EpFormRules = {
|
|
|
subjectCode: [{ required: true, message: '请选择科目' }],
|
|
|
mainNumber: [{ required: true, message: '请选择大题' }],
|
|
|
+ packageTaskCount: [{ required: true, message: '请设置每包打包人数' }],
|
|
|
dayNumber: [{ required: true, message: '请设置计划评卷天数' }],
|
|
|
separator: [{ required: true, message: '请设置分隔符' }],
|
|
|
file: [{ required: true, message: '请选择导入文件' }],
|
|
@@ -147,53 +149,59 @@ const groups: FormGroup[] = [
|
|
|
{ groupTitle: '选择文件', rowKeys: ['row-5'] },
|
|
|
]
|
|
|
|
|
|
-const span8 = defineColumn(_, '', { span: 8 })
|
|
|
+const span7 = defineColumn(_, '', { span: 7 })
|
|
|
|
|
|
const items = computed<EpFormItem[]>(() => {
|
|
|
return [
|
|
|
- span8({
|
|
|
+ span7({
|
|
|
rowKey: 'row-1',
|
|
|
label: '科目',
|
|
|
prop: 'subjectCode',
|
|
|
slotType: 'select',
|
|
|
slot: { placeholder: '选择科目', options: subjectList.value, onChange: changeModelValue('subject') },
|
|
|
}),
|
|
|
- span8({
|
|
|
+ span7({
|
|
|
rowKey: 'row-1',
|
|
|
label: '大题',
|
|
|
- labelWidth: useVW(90),
|
|
|
prop: 'mainNumber',
|
|
|
slotType: 'select',
|
|
|
slot: { placeholder: '选择大题', options: mainQuestionList.value, onChange: changeModelValue('question') },
|
|
|
}),
|
|
|
- span8({
|
|
|
+ span7({
|
|
|
rowKey: 'row-2',
|
|
|
label: '分隔符',
|
|
|
prop: 'separator',
|
|
|
slotType: 'input',
|
|
|
slot: { placeholder: '分隔符' },
|
|
|
}),
|
|
|
- span8({
|
|
|
+ span7({
|
|
|
+ rowKey: 'row-3',
|
|
|
+ label: '每包打包人数',
|
|
|
+ prop: 'packageTaskCount',
|
|
|
+ slotType: 'inputNumber',
|
|
|
+ slot: { placeholder: '每包打包人数' },
|
|
|
+ }),
|
|
|
+ span7({
|
|
|
rowKey: 'row-3',
|
|
|
label: '计划评卷天数',
|
|
|
prop: 'dayNumber',
|
|
|
- slotType: 'input',
|
|
|
+ slotType: 'inputNumber',
|
|
|
slot: { placeholder: '计划评卷天数' },
|
|
|
itemDescription: { description: '系统将按各省考生平均分配到计划评卷天数中,确保各天的评卷进度一致' },
|
|
|
}),
|
|
|
- span8({
|
|
|
+ span7({
|
|
|
rowKey: 'row-4',
|
|
|
label: '图片路径',
|
|
|
slotName: 'address',
|
|
|
itemDescription: { description: '试卷图片请按路径存放' },
|
|
|
}),
|
|
|
- span8({
|
|
|
+ span7({
|
|
|
rowKey: 'row-5',
|
|
|
label: '导入文件',
|
|
|
prop: 'file',
|
|
|
slotName: 'import',
|
|
|
}),
|
|
|
- span8({
|
|
|
+ span7({
|
|
|
rowKey: 'row-6',
|
|
|
slotName: 'progress',
|
|
|
}),
|