|
@@ -39,6 +39,11 @@
|
|
|
class="input-width"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item v-if="type === 'bug'" label="缺陷等级">
|
|
|
+ <el-select v-model="formData.noticeRange.priorityList" size="small" class="input-width" multiple :disabled="disabled" clearable filterable placeholder="请选择">
|
|
|
+ <el-option v-for="item in bugGrade" :key="item.code" :label="item.name" :value="item.code" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
<el-form ref="form" :model="formData" label-width="100px" label-position="left" :inline="true">
|
|
|
<el-form-item v-if="type === 'bug'" label="端类型">
|
|
@@ -241,6 +246,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
title: '',
|
|
|
+ bugGrade: [], // 缺陷option
|
|
|
requireProps: {
|
|
|
value: 'id',
|
|
|
label: 'rqmtOrntName',
|
|
@@ -259,6 +265,9 @@ export default {
|
|
|
type: this.type === 'bug' ? 2 : this.type === 'require' ? 0 : 1,
|
|
|
bizId: this.bizId,
|
|
|
requireOrientIdList: [], // 需求方向
|
|
|
+ noticeRange: {
|
|
|
+ priorityList: [] // 缺陷等级
|
|
|
+ },
|
|
|
techModuleIdList: [], // 技术模块
|
|
|
clientId: null, // 客户端
|
|
|
clientVersionId: null, // 版本
|
|
@@ -420,7 +429,10 @@ export default {
|
|
|
noticeConditionList: data.noticeConditionList || [], // 条件列表
|
|
|
noticeSetting: {}, // 通知方式
|
|
|
noticeTimeList: data.noticeTimeList, // 通知时刻
|
|
|
- noticeFrequency: data.noticeFrequency // 频次
|
|
|
+ noticeFrequency: data.noticeFrequency, // 频次
|
|
|
+ noticeRange: {
|
|
|
+ priorityList: data.noticeRange.priorityList // 缺陷等级
|
|
|
+ }
|
|
|
}
|
|
|
if (data.noticeSetting.email && data.noticeSetting.email.length > 0) {
|
|
|
this.EmailList = Array(data.noticeSetting.email.length).fill({ type: 0, member: true, teams: [], customStaffs: [] })
|
|
@@ -499,6 +511,7 @@ export default {
|
|
|
async showBugListEnum() {
|
|
|
const res = await bugGetEnum()
|
|
|
if (res.code === 200) {
|
|
|
+ this.bugGrade = res.data.priorityEnumList
|
|
|
this.statusList = res.data.bugEnumList.filter(item => {
|
|
|
item.msg = item.name
|
|
|
return item.name !== '已完成' && item.name !== 'Hold'
|