import { ref } from "vue"
import { reviewManageTaskTypeMsg } from "@/components/statusDict"
export const formDialogItmList = ref([
    {
        key: 'evaluationName',
        label: '评价名称',
        type: 'input',
        placeholder: '请输入评价名称',
        rules: [
            { required: true, message: '请输入评价名称', trigger: 'blur' }
        ],
        style: { }
    },
    {
        key: 'evaluationType',
        label: '评价方式',
        type: 'radio',
        selectList:reviewManageTaskTypeMsg,
        rules: [
            { required: true, message: '请选择评价方式', trigger: 'change' }
        ]
    },
    {
        key: 'evaluationStartDatetime',
        label: '开始时间',
        type: 'dateTimePickerNoRange',
        placeholder: '请选择日期',
        rules: [
            { required: true, message: '请选择开始时间', trigger: 'change' }
        ],
        disabledDate:null,
    },
    {
        key: 'evaluationEndDatetime',
        label: '结束时间',
        type: 'dateTimePickerNoRange',
        placeholder: '请选择日期',
        rules: [
            { required: true, message: '请选择结束时间', trigger: 'change' }
        ],
        disabledDate:null,
    },
    {
        key: 'evaluationGrade',
        label: '评价年级',
        type: 'checkbox',
        selectList: [],
        style: { }, 
        rules: [
            { required: true, message: '请至少选择一个年级', trigger: 'change' }
        ]
    }
])