import request from '@/utils/request';
export const tj_stu_list = (data = {}) =>
    request({
        url: '/xddy/dygl_cjxt_tjdj/index',
        data: {
            grade_id: data.grade_id,
            class_id: data.class_id,
            xdct_xsxm: data.xdct_xsxm,
            xdct_xsxh: data.xdct_xsxh,
            xdct_tjjg: data.xdct_tjjg,
            xdct_xslx: data.xdct_xslx,
            xdct_tjrq: data.xdct_tjrq,
            xdct_qtzz: data.xdct_qtzz,
            page: data.page,
            limit: data.limit,
        }
    })

export const tj_stu_edit = (data = {}) =>
    request({
        url: '/xddy/dygl_cjxt_tjdj/edit',
        data: {
            issubmit:'1',
            xdct_id:data.xdct_id,
            xddy_dygl_cjxt_tjdj:{
                xdct_xslx:data.xdct_xslx,
                grade_id:data.grade_id,
                grade_name:data.grade_name,
                class_id:data.class_id,
                class_name:data.class_name,
                xdct_xsxm:data.xdct_xsxm,
                xdct_xsxh:data.xdct_xsxh,
                xdct_sffb:data.xdct_sffb,
                xdct_tjxx_tl:data.xdct_tjxx_tl,
                xdct_tjxx_sg:data.xdct_tjxx_sg,
                xdct_tjxx_tz:data.xdct_tjxx_tz,
                xdct_tjxx_xw:data.xdct_tjxx_xw,
                xdct_tjxx_fhl:data.xdct_tjxx_fhl,
                xdct_tjxx_xy:data.xdct_tjxx_xy,
                xdct_tjxx_mb:data.xdct_tjxx_mb,
                xdct_tjxx_sl:data.xdct_tjxx_sl,
                xdct_qtzz:data.xdct_qtzz
            }
        }
    })
export const tj_stu_sign =  (data = {}) =>
    request({
        url: '/xddy/dygl_cjxt_tjdj/edit',
        data: {
            issubmit:'1',
            xdct_id:data.xdct_id,
            xddy_dygl_cjxt_tjdj:{
                xdct_sfqd:data.xdct_sfqd
            }
        }
    })
export const tj_stu_detail =  (data = {}) =>
    request({
        url: '/xddy/dygl_cjxt_tjdj/detail',
        data: {
            issubmit:'1',
            xdct_id:data.xdct_id
        }
    })