Merge pull request #2679 from jumpserver/pr@dev@tocket

perf: ticket
This commit is contained in:
feng626
2023-02-17 14:34:35 +08:00
committed by GitHub
2 changed files with 9 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ export default {
apply_date_start: date_start,
apply_assets: [],
org_id: '',
apply_actions: ['all']
apply_actions: [this.$t('perms.all')]
},
fields: [
[this.$t('common.Basic'), ['title', 'org_id']],
@@ -118,6 +118,13 @@ export default {
}
},
cleanFormValue(value) {
const apply_actions = value['apply_actions'] || []
apply_actions.forEach((item, index) => {
if (item === this.$t('perms.all')) {
apply_actions[index] = 'all'
}
})
Object.keys(value).forEach((item, index, arr) => {
if (['apply_accounts', 'apply_assets', 'apply_nodes'].includes(item)) {
if (value[item].length < 1) {

View File

@@ -34,7 +34,7 @@
type="datetime"
/>
</el-form-item>
<el-form-item :label="$tc('assets.Action')" required>
<el-form-item :label="$tc('assets.Action')">
<BasicTree
v-model="requestForm.actions"
:tree="treeNodes"