import {GET_ASSIST_SEARCH_LIST,GET_ASSIST_LABEL,DEL_ASSIST_LABEL,CHANGE_ASSIST_VAL,CHANGE_DATE,CLEAR_ASSIST_DATA,ADD_ASSIST_LABEL} from '../types/assistCheck';

export const searchList = (list,val) => ({         //获取搜索数据
    type:GET_ASSIST_SEARCH_LIST,
    list,
    val
})
export const assistLable = (id,idx,sign) => ({         //添加数据
    type:GET_ASSIST_LABEL,
    id,
    idx,
    sign
})
export const addAssistLabel = (lis) => ({         //右侧推送交到左侧
    type:ADD_ASSIST_LABEL,
    lis
})
export const delAssistLabel = (idx) => ({         //删除数据
    type:DEL_ASSIST_LABEL,
    idx
})
export const changeAssistVal = (val,idx) => ({         //更改数据
    type:CHANGE_ASSIST_VAL,
    val,
    idx
})
export const changeDate = (date,idx) => ({         //更改时间
    type:CHANGE_DATE,
    date,
    idx
})
export const clearAssistData = (data,saveText) => ({         //清空
    type:CLEAR_ASSIST_DATA,
    data,
    saveText
})