update 增加了查询分析详情页的文件
This commit is contained in:
@@ -78,28 +78,26 @@ function renderItem(data) {
|
||||
}
|
||||
|
||||
function renderCheckbox(data) {
|
||||
return (
|
||||
const grid = (
|
||||
<label className="ant-card-grid ant-card-grid-hoverable">
|
||||
<Popover
|
||||
placement="topLeft"
|
||||
content={data.remark || <span className="text-normal">没有说明</span>}
|
||||
>
|
||||
<Checkbox
|
||||
value={data.id}
|
||||
checked={data.checked}
|
||||
onChange={e => this.onChange(e, data)}
|
||||
>
|
||||
{data.title}
|
||||
</Checkbox>
|
||||
{data.visibleParent && data.type == 2 && (
|
||||
<Tooltip placement="bottom" title="选中此项才会显示菜单">
|
||||
<AntIcon type="eye" style={{ color: '#1890ff' }} className="mr-xxs" />
|
||||
</Tooltip>
|
||||
)}
|
||||
<div className="text-gray">{data.permission}</div>
|
||||
</Popover>
|
||||
<Checkbox value={data.id} checked={data.checked} onChange={e => this.onChange(e, data)}>
|
||||
{data.title}
|
||||
</Checkbox>
|
||||
{data.visibleParent && data.type == 2 && (
|
||||
<Tooltip placement="bottom" title="选中此项才会显示菜单">
|
||||
<AntIcon type="eye" style={{ color: '#1890ff' }} className="mr-xxs" />
|
||||
</Tooltip>
|
||||
)}
|
||||
<div className="text-gray">{data.permission}</div>
|
||||
</label>
|
||||
)
|
||||
return data.remark ? (
|
||||
<Popover placement="topLeft" content={data.remark}>
|
||||
{grid}
|
||||
</Popover>
|
||||
) : (
|
||||
grid
|
||||
)
|
||||
}
|
||||
|
||||
export default class AuthorityView extends Component {
|
||||
|
||||
Reference in New Issue
Block a user