<template slot="welfare" slot-scope="text">{{
text === "0" ? "未启用" : "已启用"
}}</template>
//插槽
{
title: "福利模块",
dataIndex: "welfare",
key: "welfare",
scopedSlots: { customRender: "welfare" },//添加
width: i,
},