|
|
@ -16,7 +16,7 @@ export class ListItem extends BI.BasicButton { |
|
|
|
creator: '', |
|
|
|
creator: '', |
|
|
|
databaseType: '', |
|
|
|
databaseType: '', |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
baseCls: 'dec-dcm-connection-list-item bi-list-item-active', |
|
|
|
baseCls: 'dec-dcm-connection-list-item bi-list-item-active2', |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
store: ListItemModel['store']; |
|
|
|
store: ListItemModel['store']; |
|
|
@ -39,7 +39,7 @@ export class ListItem extends BI.BasicButton { |
|
|
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
render() { |
|
|
|
const { name, databaseType } = this.options; |
|
|
|
const { name, databaseType } = this.options; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: Htape, |
|
|
|
type: Htape, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
@ -80,7 +80,7 @@ export class ListItem extends BI.BasicButton { |
|
|
|
this.store.setIsEdit(false, name); |
|
|
|
this.store.setIsEdit(false, name); |
|
|
|
this.nameLabel.setText(name); |
|
|
|
this.nameLabel.setText(name); |
|
|
|
this.nameEditor.setValue(name); |
|
|
|
this.nameEditor.setValue(name); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.store.changeName(name, newName).then(re => { |
|
|
|
this.store.changeName(name, newName).then(re => { |
|
|
@ -124,10 +124,10 @@ export class ListItem extends BI.BasicButton { |
|
|
|
this.downListCombo.setValue(''); |
|
|
|
this.downListCombo.setValue(''); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}], |
|
|
|
}], |
|
|
|
|
|
|
|
|
|
|
|
} : { |
|
|
|
} : { |
|
|
|
type: Layout, |
|
|
|
type: Layout, |
|
|
|
}, |
|
|
|
}, |
|
|
|
width: 25, |
|
|
|
width: 25, |
|
|
|
}], |
|
|
|
}], |
|
|
|
}; |
|
|
|
}; |
|
|
@ -153,7 +153,7 @@ export class ListItem extends BI.BasicButton { |
|
|
|
if (!isRegistered) { |
|
|
|
if (!isRegistered) { |
|
|
|
return [otherIcons]; |
|
|
|
return [otherIcons]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return [ |
|
|
|
return [ |
|
|
|
[ |
|
|
|
[ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -211,7 +211,7 @@ export class ListItem extends BI.BasicButton { |
|
|
|
this.store.setPageIndex(PAGE_INDEX.MAINTAIN); |
|
|
|
this.store.setPageIndex(PAGE_INDEX.MAINTAIN); |
|
|
|
this.store.setDatebaseTypeSelected(''); |
|
|
|
this.store.setDatebaseTypeSelected(''); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
.catch(() => { }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeName: () => { |
|
|
|
changeName: () => { |
|
|
|
this.store.setIsEdit(true, name); |
|
|
|
this.store.setIsEdit(true, name); |
|
|
|