{
field: 'HasSpec',
title: '规格',
slots: {
default: ({ row }) => {
switch (row.State) {
case -1:
return [<el-tag type="danger">已驳回</el-tag>];
break;
case 0:
return [<el-tag type="warning">待审核</el-tag>];
break;
case 1:
return [<el-tag type="success">待付款</el-tag>];
break;
case 2:
return [
<el-tag type="success" effect="dark">
已付款
</el-tag>,
];
break;
default:
return [<span style="color: red">未知状态</span>];
break;
}
},
},
},
}
Last modification:April 11, 2024
© Allow specification reprint