73 lines
2.6 KiB
TypeScript
73 lines
2.6 KiB
TypeScript
type FormItemProps = {
|
|
label: string
|
|
name: string
|
|
type: "input" | "select" | "radio"
|
|
options?: Array<{ label: any; value: any }>
|
|
}
|
|
|
|
const monthOpt = Array.from({ length: 12 }).map((_, idx) => {
|
|
const n = idx + 1
|
|
return { label: n, value: n }
|
|
})
|
|
|
|
export const confirmOpt = [
|
|
{ label: "否", value: false },
|
|
{ label: "是", value: true },
|
|
]
|
|
|
|
export const labelStageConfig: FormItemProps[] = [
|
|
{ label: "可领取最多任务条数", name: "max_size", type: "input" },
|
|
{ label: "单次可领取任务条数", name: "acquire_size", type: "input" },
|
|
{ label: "标注配置更新月份", name: "label_update_month", type: "select", options: monthOpt },
|
|
{ label: "动态标注倍速", name: "dynamic_label_speed", type: "input" },
|
|
{ label: "静态标注倍速", name: "static_label_speed", type: "input" },
|
|
{ label: "标注准确率", name: "label_accuracy_rate", type: "input" },
|
|
{ label: "标注结果数量倍数", name: "avg_remind_threshold", type: "input" },
|
|
{ label: "标注结果数量告警阈值", name: "fix_remind_threshold", type: "input" },
|
|
{
|
|
label: "领取顺序",
|
|
name: "acquire_mode",
|
|
type: "radio",
|
|
options: [
|
|
{ label: "顺序领取", value: 0 },
|
|
{ label: "乱序领取", value: 1 },
|
|
],
|
|
},
|
|
]
|
|
|
|
export const reviewStageConfig: FormItemProps[] = [
|
|
{ label: "可领取最多任务条数", name: "max_size", type: "input" },
|
|
{ label: "单次可领取任务条数", name: "acquire_size", type: "input" },
|
|
{ label: "审核配置更新月份", name: "review1_update_month", type: "select", options: monthOpt },
|
|
{ label: "动态审核倍速", name: "dynamic_review1_speed", type: "input" },
|
|
{ label: "静态审核倍速", name: "static_review1_speed", type: "input" },
|
|
{ label: "审核准确率", name: "review1_accuracy_rate", type: "input" },
|
|
{
|
|
label: "领取顺序",
|
|
name: "acquire_mode",
|
|
type: "radio",
|
|
options: [
|
|
{ label: "顺序领取", value: 0 },
|
|
{ label: "乱序领取", value: 1 },
|
|
],
|
|
},
|
|
]
|
|
|
|
export const recheckStageConfig: FormItemProps[] = [
|
|
{ label: "可领取最多任务条数", name: "max_size", type: "input" },
|
|
{ label: "单次可领取任务条数", name: "acquire_size", type: "input" },
|
|
{ label: "复审配置更新月份", name: "review2_update_month", type: "select", options: monthOpt },
|
|
{ label: "动态复审倍速", name: "dynamic_review2_speed", type: "input" },
|
|
{ label: "静态复审倍速", name: "static_review2_speed", type: "input" },
|
|
{
|
|
label: "领取顺序",
|
|
name: "acquire_mode",
|
|
type: "radio",
|
|
options: [
|
|
{ label: "顺序领取", value: 0 },
|
|
{ label: "乱序领取", value: 1 },
|
|
],
|
|
},
|
|
]
|
|
|