feat : issue 编辑页面开发
This commit is contained in:
@@ -364,9 +364,18 @@ export default {
|
||||
immediate: true,
|
||||
handler (n, o) {
|
||||
this.isEdit = true
|
||||
this.editIssue = {
|
||||
...n,
|
||||
assetIds: n.assetIds.join(',')
|
||||
if (n.assets.length >= 1 && n.assets[0] != null) {
|
||||
const assetIdData = n.assets.map(item => {
|
||||
return item.id
|
||||
})
|
||||
this.editIssue = {
|
||||
...n,
|
||||
assetIds: assetIdData.join(',')
|
||||
}
|
||||
} else {
|
||||
this.editIssue = {
|
||||
...n
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,6 +322,42 @@ export default {
|
||||
ipamType: [
|
||||
{ label: 'IPV4', value: 4 },
|
||||
{ label: 'IPV6', value: 6 }
|
||||
],
|
||||
issueState: [
|
||||
{
|
||||
value: 1,
|
||||
label: this.$t('issue.open')
|
||||
}, {
|
||||
value: 2,
|
||||
label: this.$t('issue.hasBeenAssigned')
|
||||
}, {
|
||||
value: 3,
|
||||
label: this.$t('issue.beingProcessed')
|
||||
}, {
|
||||
value: 4,
|
||||
label: this.$t('issue.hangUp')
|
||||
}, {
|
||||
value: 5,
|
||||
label: this.$t('issue.resolved')
|
||||
}, {
|
||||
value: 6,
|
||||
label: this.$t('overall.close')
|
||||
}, {
|
||||
value: 7,
|
||||
label: this.$t('overall.cancel')
|
||||
}
|
||||
],
|
||||
priority: [
|
||||
{
|
||||
value: 1,
|
||||
label: this.$t('dashboard.panel.chartForm.high')
|
||||
}, {
|
||||
value: 2,
|
||||
label: this.$t('issue.middle')
|
||||
}, {
|
||||
value: 3,
|
||||
label: this.$t('issue.low')
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user