fix: Fix download csv
1. Fix download security goup rule 2. Fix export for SetGateway && RouterPortDetail Change-Id: I07ea1f8aa683c64116fbb6da373b1d52a25bff60
This commit is contained in:
parent
bbef970619
commit
4767477cd6
@ -553,7 +553,8 @@ export default class BaseTable extends React.Component {
|
||||
const downloadColumns = columns
|
||||
.filter((it) => !it.hidden)
|
||||
.map((it) => {
|
||||
if (it.title.includes('/')) {
|
||||
const { title, splitColumnForDownload = true } = it;
|
||||
if (title.includes('/') && splitColumnForDownload) {
|
||||
const [fTitle, sTitle] = it.title.split('/');
|
||||
let sName = sTitle;
|
||||
if (fTitle.length > 2) {
|
||||
|
@ -18,9 +18,7 @@ import Base from 'containers/TabDetail';
|
||||
import { portStatus } from 'resources/port';
|
||||
import BaseDetail from './BaseDetail';
|
||||
|
||||
@inject('rootStore')
|
||||
@observer
|
||||
export default class PortDetail extends Base {
|
||||
export class PortDetail extends Base {
|
||||
get name() {
|
||||
return t('port');
|
||||
}
|
||||
@ -80,3 +78,5 @@ export default class PortDetail extends Base {
|
||||
this.store = new PortStore();
|
||||
}
|
||||
}
|
||||
|
||||
export default inject('rootStore')(observer(PortDetail));
|
||||
|
@ -18,9 +18,7 @@ import { NetworkStore } from 'stores/neutron/network';
|
||||
import { ModalAction } from 'containers/Action';
|
||||
import { networkStatus, networkSortProps } from 'resources/network';
|
||||
|
||||
@inject('rootStore')
|
||||
@observer
|
||||
export default class SetGateway extends ModalAction {
|
||||
export class SetGateway extends ModalAction {
|
||||
static id = 'set-gateway';
|
||||
|
||||
static title = t('Open External Gateway');
|
||||
@ -100,3 +98,5 @@ export default class SetGateway extends ModalAction {
|
||||
return this.store.edit({ id }, body);
|
||||
};
|
||||
}
|
||||
|
||||
export default inject('rootStore')(observer(SetGateway));
|
||||
|
@ -108,6 +108,7 @@ export const getSelfColumns = (self) => [
|
||||
dataIndex: 'icmpTypeCode',
|
||||
valueRender: 'noValue',
|
||||
isHideable: true,
|
||||
splitColumnForDownload: false,
|
||||
},
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user