Browse Source

Merge pull request #61 in DEC/decision-webui-dcm from ~ALAN/decision-webui-dcm:feature/10.0 to feature/10.0

* commit '7ec796db454faa5e39bea3499d3a8f8f675b8444':
  fix: DEC-9998 && DEC-9996 未适配的插件连接不显示操作按钮
qufenxi
alan 5 years ago
parent
commit
540ccc8c32
  1. 10
      src/modules/pages/connection/list/list_item/list_item.ts

10
src/modules/pages/connection/list/list_item/list_item.ts

@ -1,5 +1,5 @@
import { shortcut, store } from '@core/core';
import { Label, LeftRightVerticalAdapt, IconLabel, IconButton, DownListCombo, SignEditor } from 'ui';
import { Label, LeftRightVerticalAdapt, IconLabel, IconButton, DownListCombo, SignEditor, Layout } from 'ui';
import './list_item.less';
import { ListItemModel, ListItemModelXtype } from './list_item.model';
import { PAGE_INDEX, DATA_BASE_DRIVER_LINK } from '@constants/constant';
@ -41,7 +41,7 @@ export class ListItem extends BI.BasicButton {
}
render() {
const { name } = this.options;
const { name, databaseType } = this.options;
return {
type: LeftRightVerticalAdapt,
@ -87,7 +87,7 @@ export class ListItem extends BI.BasicButton {
},
],
right: [
{
databaseType ? {
type: DownListCombo,
cls: 'link-item-icon',
stopPropagation: true,
@ -112,6 +112,8 @@ export class ListItem extends BI.BasicButton {
},
}],
} : {
type: Layout,
},
],
},
@ -125,11 +127,13 @@ export class ListItem extends BI.BasicButton {
const otherIcons = [
{
text: BI.i18nText('Dec-Dcm_Type', databaseType),
disabled: true,
cls: 'dcm-info-font',
value: 12,
},
{
text: BI.i18nText('Dec-Dcm_Creator', creator),
disabled: true,
value: 12,
},
];

Loading…
Cancel
Save