<a-card>
<div slot="title"><a-icon type="edit" />节点详情</div>//此处为添加icon代码
</a-card>
必须去掉 <a-card title=“节点详情”>中的title属性,不然icon不生效
<a-card>
<div slot="title"><a-icon type="edit" />节点详情</div>//此处为添加icon代码
<a-table
:pagination="false"
bordered
:columns="columns"
:data-source="tableData"
>
<!-- 发送短信状态 -->
<template slot="isSendsms" slot-scope="text, record, index">
<!-- <span v-if="record.editable">
<a @click="() => save(record.key)">Save</a>
<a-popconfirm
title="Sure to cancel?"
@confirm="() => cancel(record.key)"
>
<a>Cancel</a>
</a-popconfirm>
</span> -->
<span>
<a-tag
:color="record.isSendsms == 0 ? 'orange' : 'green'"
>
{{ record.isSendsms == 0 ? "已发送" : "未发送" }}
</a-tag>
</span>
</template>
<!-- 是否处理状态 -->
<template
slot="taskDetailStatus"
slot-scope="text, record, index"
>
<span>
<a-tag
:color="
record.taskDetailStatus == 0 ? 'orange' : 'green'
"
>
{{ record.taskDetailStatus == 0 ? "已拒绝" : "已同意" }}
</a-tag>
</span>
</template>
</a-table>
</a-card>