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

This commit is contained in:
ibuler
2024-06-12 19:29:44 +08:00
3 changed files with 10 additions and 8 deletions

View File

@@ -10,10 +10,6 @@ export default {
components: {
ListTable
},
computed: {
},
created() {
},
methods: {
reloadTable() {
this.$refs.ListTable.reloadTable()
@@ -22,9 +18,8 @@ export default {
}
</script>
<style scoped>
<style scoped lang="scss">
.list-table {
margin-bottom: 20px;
}
</style>

View File

@@ -7,7 +7,7 @@
@tab-click="changeMoreCreates"
>
<keep-alive>
<GenericListTable :header-actions="headerActions" :table-config="tableConfig" />
<GenericListTable ref="genericListTable" :header-actions="headerActions" :table-config="tableConfig" />
</keep-alive>
</TabPage>
</template>
@@ -124,6 +124,9 @@ export default {
return `/api/v1/assets/platforms/?category=${this.tab.activeMenu}`
}
},
activated() {
this.$refs.genericListTable.reloadTable()
},
async mounted() {
try {
await this.setCategoriesTab()

View File

@@ -20,7 +20,8 @@ export const platformFieldsMeta = (vm) => {
'change_secret_enabled', 'change_secret_method', 'change_secret_params',
'push_account_enabled', 'push_account_method', 'push_account_params',
'verify_account_enabled', 'verify_account_method', 'verify_account_params',
'gather_accounts_enabled', 'gather_accounts_method', 'gather_accounts_params'
'gather_accounts_enabled', 'gather_accounts_method', 'gather_accounts_params',
'remove_account_enabled', 'remove_account_method', 'remove_account_params'
],
fieldsMeta: {
ansible_config: {
@@ -28,12 +29,15 @@ export const platformFieldsMeta = (vm) => {
hidden: (formValue) => !formValue['ansible_enabled']
},
gather_facts_enabled: {},
remove_account_enabled: {},
ping_method: {},
ping_params: {
label: ''
},
gather_facts_method: {},
push_account_method: {},
remove_account_method: {},
remove_account_params: {},
push_account_params: {
label: ''
},