import {SET_TIP_VAL,GET_ASSIST_SEARCH_LIST,GET_ASSIST_LABEL,CHECK_OFF_ON,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 = (item,sign) => ({         //添加数据
    type:GET_ASSIST_LABEL,
    item,
    sign
})
export const addAssistLabel = (lis) => ({         //右侧推送交到左侧
    type:ADD_ASSIST_LABEL,
    lis
})
export const delAssistLabel = (idx,name,flg) => ({         //删除数据
    type:DEL_ASSIST_LABEL,
    idx,
    name,
    flg
})
export const changeAssistVal = (val,idx) => ({         //更改数据
    type:CHANGE_ASSIST_VAL,
    val,
    idx
})
export const changeDate = (date,idx) => ({         //更改时间
    type:CHANGE_DATE,
    date,
    idx
})
export const checkOffOn = (item,tip) => ({
    type:CHECK_OFF_ON,
    item,tip
})
export const setTipVal = (item,val,idx) => ({
    type:SET_TIP_VAL,
    item,
    val,
    idx
})
export const clearAssistData = (data,saveText,checkedListImport) => ({         //清空回读
    type:CLEAR_ASSIST_DATA,
    data,
    saveText,
    checkedListImport
})