Merge branch 'pam' of github.com:jumpserver/lina into pam

This commit is contained in:
ibuler 2025-03-03 10:01:34 +08:00
commit f5bd0f0533
7 changed files with 18 additions and 15 deletions

View File

@ -40,10 +40,9 @@ export default {
'ssh_key', 'passphrase' 'ssh_key', 'passphrase'
] ]
], ],
[this.$t('Automations'), ['params']], [this.$t('Params'), ['params']],
[this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']], [this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']],
[this.$t('Notification'), ['recipients']], [this.$t('Other'), ['check_conn_after_change', 'is_active', 'recipients', 'comment']]
[this.$t('Other'), ['check_conn_after_change', 'is_active', 'comment']]
], ],
fieldsMeta: { fieldsMeta: {
...getChangeSecretFields(), ...getChangeSecretFields(),

View File

@ -3,7 +3,7 @@
:create-drawer="createDrawer" :create-drawer="createDrawer"
:detail-drawer="detailDrawer" :detail-drawer="detailDrawer"
:header-actions="headerActions" :header-actions="headerActions"
:resource="$tc('AccountChangeSecret')" :resource="$tc('ChangeSecret')"
:table-config="tableConfig" :table-config="tableConfig"
/> />
</template> </template>

View File

@ -42,7 +42,7 @@ export default {
] ]
], ],
[ [
this.$t('Automations'), ['params'] this.$t('Params'), ['params']
], ],
[this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']], [this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']],
[this.$t('Other'), ['check_conn_after_change', 'is_active', 'comment']] [this.$t('Other'), ['check_conn_after_change', 'is_active', 'comment']]

View File

@ -112,7 +112,7 @@ export default {
let filteredData = [] let filteredData = []
// //
if (data.some(item => item.value > 0).length > 0) { if (data.some(item => item.value > 0)) {
filteredData = data filteredData = data
} else { } else {
filteredData = data.slice(0, 7) filteredData = data.slice(0, 7)
@ -135,7 +135,6 @@ export default {
show: true, show: true,
min: 0, min: 0,
max: max, max: max,
interval: 1,
position: 'top', position: 'top',
axisLine: { show: false }, axisLine: { show: false },
axisTick: { show: false }, axisTick: { show: false },

View File

@ -22,6 +22,7 @@ export default {
currentTemplate: null, currentTemplate: null,
tableConfig: { tableConfig: {
url: '/api/v1/accounts/integration-applications/', url: '/api/v1/accounts/integration-applications/',
columnsExclude: ['accounts'],
columnsMeta: { columnsMeta: {
id: { id: {
width: '300px', width: '300px',
@ -37,7 +38,7 @@ export default {
) )
} }
}, },
accounts: { accounts_amount: {
width: '100px', width: '100px',
formatter: (row) => { formatter: (row) => {
return row.accounts_amount return row.accounts_amount
@ -74,7 +75,7 @@ export default {
columnsExtra: ['secret'], columnsExtra: ['secret'],
columnsShow: { columnsShow: {
default: [ default: [
'logo', 'name', 'id', 'secret', 'accounts', 'date_last_used', 'active' 'logo', 'name', 'id', 'secret', 'accounts_amount', 'date_last_used', 'active'
] ]
}, },
permissions: { app: 'accounts', resource: 'integrationapplication' } permissions: { app: 'accounts', resource: 'integrationapplication' }

View File

@ -14,13 +14,17 @@
</two-col> </two-col>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div class="copy-btn"> <div class="copy-btn">
<i <el-tooltip :content="$t('Copy')" placement="top">
class="copy-btn el-icon-copy-document" <i
@click="copyContent" class="copy-btn el-icon-copy-document"
/> @click="copyContent"
/>
</el-tooltip>
</div> </div>
</div> </div>
</IBox> </IBox>
</div> </div>
</template> </template>
@ -129,5 +133,6 @@ export default {
position: absolute; position: absolute;
top: 8px; top: 8px;
right: 5px; right: 5px;
cursor: pointer;
} }
</style> </style>

View File

@ -26,7 +26,7 @@ export default {
fields: [ fields: [
[this.$t('Basic'), ['name']], [this.$t('Basic'), ['name']],
[this.$t('Asset'), ['assets', 'nodes']], [this.$t('Asset'), ['assets', 'nodes']],
[this.$t('Check config'), ['engines', 'recipients']], [this.$t('Config'), ['engines', 'recipients']],
[this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']], [this.$t('Periodic'), ['is_periodic', 'interval', 'crontab']],
[this.$t('Other'), ['is_active', 'comment']] [this.$t('Other'), ['is_active', 'comment']]
], ],
@ -65,7 +65,6 @@ export default {
} }
}, },
recipients: { recipients: {
label: i18n.t('Recipients'),
helpText: i18n.t('OnlyMailSend'), helpText: i18n.t('OnlyMailSend'),
el: { el: {
value: [], value: [],