perf(ticket): 优化授权工单,支持填写系统用户,审批时系统用户支持选多个

This commit is contained in:
jym503558564
2020-09-21 15:48:00 +08:00
committed by 老广
parent 30143f833a
commit a8e7ea9c80
4 changed files with 23 additions and 7 deletions

View File

@@ -761,7 +761,11 @@
"Pending": "待处理",
"Approved": "已同意",
"Rejected": "已拒绝",
"Closed": "已完成"
"Closed": "已完成",
"helpText": {
"ips": "请输入逗号分割的IP地址组",
"fuzzySearch": "支持模糊搜索"
}
},
"tree": {
"AddAssetToNode": "添加资产到节点",

View File

@@ -758,7 +758,11 @@
"Pending": "Open",
"Approved": "Approved",
"Rejected": "Rejected",
"Closed": "Closed"
"Closed": "Closed",
"helpText": {
"ips": "Enter the IP address group, separated by commas",
"fuzzySearch": "Support for fuzzy search"
}
},
"tree": {
"AddAssetToNode": "Add asset to node",

View File

@@ -50,7 +50,7 @@ export default {
statusMap: this.object.status === 'open' ? STATUS_MAP[this.object.status] : STATUS_MAP[this.object.action],
requestForm: {
asset: this.object.confirmed_assets,
systemuser: '',
systemuser: this.object.confirmed_system_user,
actions: this.object.actions
},
comments: '',
@@ -66,7 +66,8 @@ export default {
}
},
systemuser_select2: {
multiple: false,
multiple: true,
value: this.object.confirmed_system_user,
ajax: {
url: this.object.system_user_waitlist_url,
transformOption: (item) => {
@@ -126,6 +127,10 @@ export default {
key: this.$t('tickets.Hostname'),
value: this.object.hostname
},
{
key: this.$t('tickets.SystemUser'),
value: this.object.system_user
},
{
key: this.$t('common.dateStart'),
value: toSafeLocalDateStr(this.object.date_start)

View File

@@ -26,15 +26,18 @@ export default {
},
fields: [
[this.$t('common.Basic'), ['title', 'org_id', 'assignees', 'comment']],
[this.$t('tickets.RequestPerm'), ['ips', 'hostname', 'actions', 'date_start', 'date_expired']]
[this.$t('tickets.RequestPerm'), ['ips', 'hostname', 'system_user', 'actions', 'date_start', 'date_expired']]
],
fieldsMeta: {
ips: {
helpText: '请输入逗号分割的IP地址组'
helpText: this.$t('tickets.helpText.ips')
},
hostname: {
helpText: '支持模糊匹配'
helpText: this.$t('tickets.helpText.fuzzySearch')
},
system_user: {
helpText: this.$t('tickets.helpText.fuzzySearch')
},
actions: {
label: this.$t('perms.Actions'),