import React, { Component } from 'react'; import {observer} from 'mobx-react'; import {WeaAlertPage,WeaLocaleProvider,WeaRadioGroup} from 'ecCom'; import {WeaTableNew} from 'comsMobx'; import isEmpty from 'lodash/isEmpty'; const WeaTable = WeaTableNew.WeaTable; const getLabel = WeaLocaleProvider.getLabel; @observer export default class DataListView extends Component{ reRenderColumns = columns => { const {store: {handleViewClick}} = this.props; columns.map(c => { if (c.dataIndex === 'canViewSignImg') { c.render = function(text, record) { const { randomFieldId, canViewSignImgspan } = record; if (canViewSignImgspan === '1') { return handleViewClick(randomFieldId)}>{getLabel(33564,'查看')} } else { return } } } }); } render(){ const {store: {radioGroupProps, hasRight, table}} = this.props; const {config} = radioGroupProps; if(isEmpty(config)) return null; return (