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

View File

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

View File

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