fix(项目设置): 修复jenkins消息通知接受人回显问题
--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018894
This commit is contained in:
parent
8cc2a53d77
commit
8ae0002dda
|
@ -30,7 +30,7 @@ import {hasLicense} from "metersphere-frontend/src/utils/permission";
|
||||||
import MsCodeEdit from "metersphere-frontend/src/components/MsCodeEdit";
|
import MsCodeEdit from "metersphere-frontend/src/components/MsCodeEdit";
|
||||||
import MsTipButton from "metersphere-frontend/src/components/MsTipButton";
|
import MsTipButton from "metersphere-frontend/src/components/MsTipButton";
|
||||||
import NotificationTable from "metersphere-frontend/src/components/notification/NotificationTable";
|
import NotificationTable from "metersphere-frontend/src/components/notification/NotificationTable";
|
||||||
import {searchNoticeByType} from "../../../../api/notification";
|
import {searchNoticeByType} from "@/api/notification";
|
||||||
import MxNoticeTemplate from "metersphere-frontend/src/components/MxNoticeTemplate";
|
import MxNoticeTemplate from "metersphere-frontend/src/components/MxNoticeTemplate";
|
||||||
|
|
||||||
const TASK_TYPE = 'JENKINS_TASK';
|
const TASK_TYPE = 'JENKINS_TASK';
|
||||||
|
@ -82,10 +82,14 @@ export default {
|
||||||
this.jenkinsTask = response.data;
|
this.jenkinsTask = response.data;
|
||||||
// 上报通知数
|
// 上报通知数
|
||||||
this.$emit("noticeSize", {module: 'jenkins', data: this.jenkinsTask, taskType: TASK_TYPE});
|
this.$emit("noticeSize", {module: 'jenkins', data: this.jenkinsTask, taskType: TASK_TYPE});
|
||||||
|
this.jenkinsTask.forEach(jenkinsTask => {
|
||||||
|
this.handleReceivers(jenkinsTask);
|
||||||
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleAddTaskModel() {
|
handleAddTaskModel() {
|
||||||
let Task = {};
|
let Task = {};
|
||||||
|
Task.receiverOptions = this.jenkinsReceiverOptions;
|
||||||
Task.event = '';
|
Task.event = '';
|
||||||
Task.userIds = [];
|
Task.userIds = [];
|
||||||
Task.type = '';
|
Task.type = '';
|
||||||
|
@ -114,6 +118,13 @@ export default {
|
||||||
handleReceivers(row) {
|
handleReceivers(row) {
|
||||||
row.receiverOptions = JSON.parse(JSON.stringify(this.jenkinsReceiverOptions));
|
row.receiverOptions = JSON.parse(JSON.stringify(this.jenkinsReceiverOptions));
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
jenkinsReceiverOptions(value) {
|
||||||
|
if (value && value.length > 0) {
|
||||||
|
this.initForm();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue