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

This commit is contained in:
ibuler
2024-06-24 14:54:58 +08:00
11 changed files with 15 additions and 34 deletions

View File

@@ -186,7 +186,3 @@ export default {
}
}
</script>
<style lang='scss' scoped>
</style>

View File

@@ -1,6 +1,7 @@
import { CronTab } from '@/components'
import i18n from '@/i18n/i18n'
import InputWithUnit from '@/components/Form/FormFields/InputWithUnit.vue'
import store from '@/store'
const validatorInterval = (rule, value, callback) => {
if (parseInt(value) < 1) {
@@ -35,7 +36,10 @@ export const interval = {
}
export const is_periodic = {
type: 'switch'
type: 'switch',
hidden: (formValue) => {
return !store.getters.hasValidLicense
}
}
export default {

View File

@@ -52,7 +52,3 @@ export default {
}
}
</script>
<style scoped>
</style>

View File

@@ -98,6 +98,3 @@ export default {
}
}
</script>
<style lang="scss" scoped>
</style>

View File

@@ -104,6 +104,7 @@ export default {
this.$log.debug('Select value', that.select2.value)
that.iHasObjects = [...that.iHasObjects, ...objects]
this.$store.commit('common/reload')
// this.$refs.ListTable.reloadTable()
}
},
groupRelationConfig: {

View File

@@ -63,21 +63,11 @@ export default {
},
methods: {
handleTabClick(tab) {
const query = _.cloneDeep(this.$route.query)
const newQuery = {
...query,
tab: tab.name
}
if (tab.name !== 'AssetPermissionDetail') {
this.$set(this.config, 'hasRightSide', false)
} else {
this.$set(this.config, 'hasRightSide', true)
}
this.$nextTick(() => {
this.$router.replace({ query: newQuery })
})
}
}
}

View File

@@ -108,6 +108,11 @@ export default {
computed: {
...mapGetters(['currentOrgIsRoot'])
},
activated() {
setTimeout(() => {
this.$refs.AssetTreeTable.$refs.TreeList.reloadTable()
}, 300)
},
methods: {
handlePermBulkUpdate() {
this.updateSelectedDialogSetting.visible = false

View File

@@ -35,10 +35,7 @@ export const AssetPermissionTableMeta = {
name: {
minWidth: '120px',
formatterArgs: {
route: 'AssetPermissionDetail',
routeQuery: {
tab: 'AssetPermissionDetail'
}
route: 'AssetPermissionDetail'
}
},
action: {

View File

@@ -91,7 +91,7 @@ export default {
reload()
}).catch(error => {
this.$message.error({
message: error.response.data.error,
message: error.response.data.detail,
duration: 3000
})
})

View File

@@ -13,9 +13,7 @@ export default {
BaseRoleList
},
activated() {
setTimeout(() => {
this.$refs.roleList.reloadTable()
}, 300)
this.$refs.roleList.reloadTable()
}
}
</script>

View File

@@ -61,10 +61,7 @@ export default {
columnsMeta: {
name: {
formatterArgs: {
route: 'UserDetail',
routeQuery: {
tab: 'UserInfo'
}
route: 'UserDetail'
}
},
mfa_level: {