diff --git a/nezha-fronted/src/components/common/rightBox/issueBox.vue b/nezha-fronted/src/components/common/rightBox/issueBox.vue index ec410ccbe..2860fbadf 100644 --- a/nezha-fronted/src/components/common/rightBox/issueBox.vue +++ b/nezha-fronted/src/components/common/rightBox/issueBox.vue @@ -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 + } } } } diff --git a/nezha-fronted/src/components/common/searchSelectInfo.js b/nezha-fronted/src/components/common/searchSelectInfo.js index 6c45c760d..67f1d94a9 100644 --- a/nezha-fronted/src/components/common/searchSelectInfo.js +++ b/nezha-fronted/src/components/common/searchSelectInfo.js @@ -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') + } ] }