mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
Merge branch 'v4' of github.com:jumpserver/lina into v4
This commit is contained in:
@@ -186,7 +186,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang='scss' scoped>
|
||||
|
||||
</style>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -52,7 +52,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
@@ -98,6 +98,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
</style>
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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 })
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,6 +108,11 @@ export default {
|
||||
computed: {
|
||||
...mapGetters(['currentOrgIsRoot'])
|
||||
},
|
||||
activated() {
|
||||
setTimeout(() => {
|
||||
this.$refs.AssetTreeTable.$refs.TreeList.reloadTable()
|
||||
}, 300)
|
||||
},
|
||||
methods: {
|
||||
handlePermBulkUpdate() {
|
||||
this.updateSelectedDialogSetting.visible = false
|
||||
|
||||
@@ -35,10 +35,7 @@ export const AssetPermissionTableMeta = {
|
||||
name: {
|
||||
minWidth: '120px',
|
||||
formatterArgs: {
|
||||
route: 'AssetPermissionDetail',
|
||||
routeQuery: {
|
||||
tab: 'AssetPermissionDetail'
|
||||
}
|
||||
route: 'AssetPermissionDetail'
|
||||
}
|
||||
},
|
||||
action: {
|
||||
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
reload()
|
||||
}).catch(error => {
|
||||
this.$message.error({
|
||||
message: error.response.data.error,
|
||||
message: error.response.data.detail,
|
||||
duration: 3000
|
||||
})
|
||||
})
|
||||
|
||||
@@ -13,9 +13,7 @@ export default {
|
||||
BaseRoleList
|
||||
},
|
||||
activated() {
|
||||
setTimeout(() => {
|
||||
this.$refs.roleList.reloadTable()
|
||||
}, 300)
|
||||
this.$refs.roleList.reloadTable()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -61,10 +61,7 @@ export default {
|
||||
columnsMeta: {
|
||||
name: {
|
||||
formatterArgs: {
|
||||
route: 'UserDetail',
|
||||
routeQuery: {
|
||||
tab: 'UserInfo'
|
||||
}
|
||||
route: 'UserDetail'
|
||||
}
|
||||
},
|
||||
mfa_level: {
|
||||
|
||||
Reference in New Issue
Block a user