<el-table-column slot="state" align='center' label="状态">
<template slot-scope="scope">
{{ stateContent(scope.row.state) }}
</template>
</el-table-column>
computed: {
stateContent(){
return (state) =>{
switch(state) {
case 1 : return '待接单'; break;
case 2 : return '待预约'; break;
default : return ''
}
}
}
}