feat : issue 编辑页面开发

This commit is contained in:
likexuan
2022-08-16 17:14:50 +08:00
parent 5c6695a126
commit fcce0fd743
2 changed files with 48 additions and 3 deletions

View File

@@ -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
}
}
}
}

View File

@@ -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')
}
]
}