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
|
const downloadColumns = columns
|
||||||
.filter((it) => !it.hidden)
|
.filter((it) => !it.hidden)
|
||||||
.map((it) => {
|
.map((it) => {
|
||||||
if (it.title.includes('/')) {
|
const { title, splitColumnForDownload = true } = it;
|
||||||
|
if (title.includes('/') && splitColumnForDownload) {
|
||||||
const [fTitle, sTitle] = it.title.split('/');
|
const [fTitle, sTitle] = it.title.split('/');
|
||||||
let sName = sTitle;
|
let sName = sTitle;
|
||||||
if (fTitle.length > 2) {
|
if (fTitle.length > 2) {
|
||||||
|
@ -18,9 +18,7 @@ import Base from 'containers/TabDetail';
|
|||||||
import { portStatus } from 'resources/port';
|
import { portStatus } from 'resources/port';
|
||||||
import BaseDetail from './BaseDetail';
|
import BaseDetail from './BaseDetail';
|
||||||
|
|
||||||
@inject('rootStore')
|
export class PortDetail extends Base {
|
||||||
@observer
|
|
||||||
export default class PortDetail extends Base {
|
|
||||||
get name() {
|
get name() {
|
||||||
return t('port');
|
return t('port');
|
||||||
}
|
}
|
||||||
@ -80,3 +78,5 @@ export default class PortDetail extends Base {
|
|||||||
this.store = new PortStore();
|
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 { ModalAction } from 'containers/Action';
|
||||||
import { networkStatus, networkSortProps } from 'resources/network';
|
import { networkStatus, networkSortProps } from 'resources/network';
|
||||||
|
|
||||||
@inject('rootStore')
|
export class SetGateway extends ModalAction {
|
||||||
@observer
|
|
||||||
export default class SetGateway extends ModalAction {
|
|
||||||
static id = 'set-gateway';
|
static id = 'set-gateway';
|
||||||
|
|
||||||
static title = t('Open External Gateway');
|
static title = t('Open External Gateway');
|
||||||
@ -100,3 +98,5 @@ export default class SetGateway extends ModalAction {
|
|||||||
return this.store.edit({ id }, body);
|
return this.store.edit({ id }, body);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default inject('rootStore')(observer(SetGateway));
|
||||||
|
@ -108,6 +108,7 @@ export const getSelfColumns = (self) => [
|
|||||||
dataIndex: 'icmpTypeCode',
|
dataIndex: 'icmpTypeCode',
|
||||||
valueRender: 'noValue',
|
valueRender: 'noValue',
|
||||||
isHideable: true,
|
isHideable: true,
|
||||||
|
splitColumnForDownload: false,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user