el-table-column渲染的每一项进行条件渲染

scope.row是固定写法

    <el-table-column prop="publishTime" label="定时发布时间" min-width="180">
      <template slot-scope="scope">
        <span v-if="scope.row.publishTime == '' || scope.row.publishTime == null">无定时发布任务</span>
        <span v-else>{{ scope.row.publishTime }}</span>
      </template>
    </el-table-column>
posted @ 2023-01-06 16:37  你笑的好瓜  阅读(299)  评论(0)    收藏  举报