detail.js 2.64 KB
/**
 * 差异工单列表
 * @author: qi.li <qi.li@yoho.cn>
 * @date: 2017/06/08
 */
export default function() {
    return {
        columns: [
            {
                title: '工单号',
                align: 'center',
                key: 'id'
            },
            {
                title: '紧急程度',
                align: 'center',
                key: 'emergencyDegreeName'
            },
            {
                title: '品牌',
                align: 'center',
                key: 'brandName'
            },
            {
                title: '主题',
                align: 'center',
                key: 'subject'
            },
            {
                title: '品牌经理',
                align: 'center',
                key: 'claimName'
            },
            {
                title: '状态',
                align: 'center',
                key: 'statusName'
            },
            {
                title: '操作',
                align: 'center',
                render: () => {
                    return (
                        <i-button type="success" size="small">查看</i-button>
                    );
                }
            }
        ],
        dataList: [],
        page: {
            total: 0,
            current: 1
        },
        filters: {
            subject: {
                label: '主题',
                model: ''
            },
            emergency: {
                label: '紧急程度',
                model: '',
                options: [
                    {
                        value: 1,
                        label: '一般'
                    },
                    {
                        value: 2,
                        label: '特别紧急'
                    },
                    {
                        value: 3,
                        label: '紧急'
                    },
                    {
                        value: 4,
                        label: '不紧急'
                    }
                ]
            },
            brand: {
                label: '选择品牌',
                model: ''
            },
            status: {
                label: '状态',
                model: '',
                options: [
                    {
                        value: 1,
                        label: '完成'
                    },
                    {
                        value: 2,
                        label: '处理中-待确认'
                    },
                    {
                        value: 3,
                        label: '处理中-已确认'
                    }
                ]
            },
        }
    };
}