export default {
    data() {
        return {
            statusOptions: [
                // { label: '草稿', value: 'DRAFT' },
                { label: '等待初审', value: 'FIRST_REVIEW_PENDING' },
                { label: '正在受理', value: 'ACCEPT' },
                { label: '审核完成', value: 'FIRST_REVIEW_COMPLETED' },
                { label: '初审驳回', value: 'FIRST_REVIEW_DENY' },
                { label: '区县已上报', value: 'ASSIGN_EXPERT' },
                { label: '复审驳回', value: 'REVIEW_DENY' },
                { label: '待线下考察', value: 'REVIEW_PENDING' },
                { label: '待最终评审', value: 'SUBMIT_GRADE' },
                { label: '待承办单位提交材料', value: 'SUBMIT_PAPER_MATERIALS' },
                { label: '待区县提交材料', value: 'COLLECT_PAPER_MATERIALS' },
                { label: '完成', value: 'COMPLETE' },
                { label: '撤回', value: 'CANCEL' }
            ],
            statusOptions1: [
                { label: '草稿', value: 'DRAFT' },
                { label: '等待初审', value: 'FIRST_REVIEW_PENDING' },
                { label: '正在受理', value: 'ACCEPT' },
                { label: '审核完成', value: 'FIRST_REVIEW_COMPLETED' },
                { label: '初审驳回', value: 'FIRST_REVIEW_DENY' },
                { label: '区县已上报', value: 'ASSIGN_EXPERT' },
                { label: '复审驳回', value: 'REVIEW_DENY' },
                { label: '待线下考察', value: 'REVIEW_PENDING' },
                { label: '待最终评审', value: 'SUBMIT_GRADE' },
                { label: '待承办单位提交材料', value: 'SUBMIT_PAPER_MATERIALS' },
                { label: '待区县提交材料', value: 'COLLECT_PAPER_MATERIALS' },
                { label: '完成', value: 'COMPLETE' },
                { label: '撤回', value: 'CANCEL' }
            ],
            statusOptions2: [
                { label: '区县已上报', value: 'ASSIGN_EXPERT' },
                { label: '待线下考察', value: 'REVIEW_PENDING' },
                { label: '待最终评审', value: 'SUBMIT_GRADE' },
                { label: '待承办单位提交材料', value: 'SUBMIT_PAPER_MATERIALS' },
                { label: '待区县提交材料', value: 'COLLECT_PAPER_MATERIALS' },
                { label: '完成', value: 'COMPLETE' }
            ]
        };
    },
    methods: {
        statusFormatter(row, column, cellValue, index) {
            let selectedOption = this.statusOptions.find(i => i.value === cellValue);
            if (selectedOption) {
                return selectedOption.label;
            }
            return '';
        },
        statusFormatter1(row, column, cellValue, index) {
            let selectedOption = this.statusOptions1.find(i => i.value === cellValue);
            if (selectedOption) {
                return selectedOption.label;
            }
            return '';
        }
    }
};
