mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-19 06:29:54 +00:00
Compare commits
1 Commits
pr@dev@k8s
...
revert-508
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0de9220714 |
@@ -20,18 +20,18 @@ export class TableColumnsGenerator {
|
|||||||
this.vm = vm
|
this.vm = vm
|
||||||
}
|
}
|
||||||
|
|
||||||
// dynamicActionWidth() {
|
dynamicActionWidth() {
|
||||||
// console.log(i18n.locale)
|
console.log(i18n.locale)
|
||||||
// if (i18n.locale === 'zh-hans' || i18n.locale === 'zh-hant') {
|
if (i18n.locale === 'zh-hans' || i18n.locale === 'zh-hant') {
|
||||||
// return '100px'
|
return '100px'
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if (i18n.locale === 'ja' || i18n.locale === 'ko') {
|
if (i18n.locale === 'ja' || i18n.locale === 'ko') {
|
||||||
// return '120px'
|
return '120px'
|
||||||
// }
|
}
|
||||||
|
|
||||||
// return '160px'
|
return '160px'
|
||||||
// }
|
}
|
||||||
|
|
||||||
generateColumns() {
|
generateColumns() {
|
||||||
const config = _.cloneDeep(this.config)
|
const config = _.cloneDeep(this.config)
|
||||||
@@ -135,7 +135,7 @@ export class TableColumnsGenerator {
|
|||||||
prop: 'actions',
|
prop: 'actions',
|
||||||
label: i18n.t('Actions'),
|
label: i18n.t('Actions'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: '120px',
|
width: this.dynamicActionWidth(),
|
||||||
formatter: ActionsFormatter,
|
formatter: ActionsFormatter,
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
formatterArgs: {}
|
formatterArgs: {}
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ export default {
|
|||||||
asset=${assetId}
|
asset=${assetId}
|
||||||
&account=${row.id}
|
&account=${row.id}
|
||||||
&protocol=${protocol}
|
&protocol=${protocol}
|
||||||
&org_id=${this.$store.getters.currentOrg.id}
|
|
||||||
`.replace(/\s+/g, '')
|
`.replace(/\s+/g, '')
|
||||||
},
|
},
|
||||||
asset: null,
|
asset: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user