|
@@ -46,6 +46,10 @@
|
|
|
@click="handleEdit(record)"
|
|
|
id="supplierInfoList-edit-btn">编辑</a-button>
|
|
|
</template>
|
|
|
+ <!-- 状态 -->
|
|
|
+ <template slot="status" slot-scope="text, record">
|
|
|
+ <span :style="{color:(record.enabledFlag==1?'#00aa00':'#999')}">{{ record.enabledFlagDictValue }}</span>
|
|
|
+ </template>
|
|
|
</s-table>
|
|
|
</a-card>
|
|
|
</template>
|
|
@@ -70,7 +74,7 @@ export default {
|
|
|
{ title: '联系电话', dataIndex: 'contactTel', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '主营内容', dataIndex: 'businessScope', width: 200, align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '状态', dataIndex: 'enabledFlagDictValue', width: 100, align: 'center' },
|
|
|
+ { title: '状态', scopedSlots: { customRender: 'status' }, width: 100, align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|