fix(消息通知): 配置消息通知时查询备选人是项目范围

This commit is contained in:
CaptainB 2022-03-17 13:21:48 +08:00 committed by 刘瑞斌
parent a141b702f7
commit c5cf4b8fe9
6 changed files with 14 additions and 8 deletions

View File

@ -185,7 +185,7 @@ export default {
});
},
initUserList() {
this.result = this.$get('user/ws/member/list/' + getCurrentWorkspaceId(), response => {
this.result = this.$post('/user/project/member/list', {projectId: getCurrentProjectID()}, response => {
this.scheduleReceiverOptions = response.data;
});

View File

@ -248,7 +248,7 @@ export default {
},
initUserList() {
this.result = this.$get('user/ws/member/list/' + getCurrentWorkspaceId(), response => {
this.result = this.$post('/user/project/member/list', {projectId: getCurrentProjectID()},response => {
this.scheduleReceiverOptions = response.data;
});
},

View File

@ -41,7 +41,13 @@
</template>
<script>
import {getCurrentUser, getCurrentWorkspaceId, listenGoBack, removeGoBackListener} from "@/common/js/utils";
import {
getCurrentProjectID,
getCurrentUser,
getCurrentWorkspaceId,
listenGoBack,
removeGoBackListener
} from "@/common/js/utils";
import Crontab from "../cron/Crontab";
import CrontabResult from "../cron/CrontabResult";
import {cronValidate} from "@/common/js/cron";
@ -112,7 +118,7 @@ export default {
initUserList() {
this.result = this.$get('user/ws/member/list/' + getCurrentWorkspaceId(), response => {
this.result = this.$post('/user/project/member/list', {projectId: getCurrentProjectID()}, response => {
this.scheduleReceiverOptions = response.data;
});

View File

@ -77,7 +77,7 @@
</template>
<script>
import {getCurrentUser, getCurrentWorkspaceId} from "@/common/js/utils";
import {getCurrentProjectID, getCurrentUser} from "@/common/js/utils";
import JenkinsNotification from "@/business/components/project/notification/jenkins/JenkinsNotification";
import TestPlanTaskNotification from "@/business/components/project/notification/track/TestPlanTaskNotification";
import TestReviewNotification from "@/business/components/project/notification/track/TestReviewNotification";
@ -160,7 +160,7 @@ export default {
},
initUserList() {
this.result = this.$get('user/ws/member/list/' + getCurrentWorkspaceId(), response => {
this.result = this.$post('/user/project/member/list', {projectId: getCurrentProjectID()}, response => {
this.jenkinsReceiverOptions = response.data;
this.reviewReceiverOptions = response.data;
this.defectReceiverOptions = response.data;

View File

@ -265,7 +265,7 @@ export default {
});
},
initUserList() {
this.result = this.$get('user/ws/member/list/' + getCurrentWorkspaceId(), response => {
this.result = this.$post('/user/project/member/list', {projectId: getCurrentProjectID()}, response => {
this.scheduleReceiverOptions = response.data;
});
},

@ -1 +1 @@
Subproject commit ed3f0a6630c6f986fba4f9817f51310a6d37f5aa
Subproject commit 8add0b0a2cc869390734c0a04590f6a945e61cda