fix(性能测试): 性能测试的定时任务消息接收人被覆盖 --bug=1005105 --user=刘瑞斌 【github#4621】性能测... https://www.tapd.cn/55049933/s/1025376
Closes #4621
This commit is contained in:
parent
32313df96b
commit
ff6796828f
|
@ -50,7 +50,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCurrentUser, listenGoBack, removeGoBackListener} from "@/common/js/utils";
|
import {getCurrentOrganizationId, getCurrentUser, listenGoBack, removeGoBackListener} from "@/common/js/utils";
|
||||||
import Crontab from "@/business/components/common/cron/Crontab";
|
import Crontab from "@/business/components/common/cron/Crontab";
|
||||||
import CrontabResult from "@/business/components/common/cron/CrontabResult";
|
import CrontabResult from "@/business/components/common/cron/CrontabResult";
|
||||||
import {cronValidate} from "@/common/js/cron";
|
import {cronValidate} from "@/common/js/cron";
|
||||||
|
@ -171,7 +171,7 @@ export default {
|
||||||
initUserList() {
|
initUserList() {
|
||||||
let param = {
|
let param = {
|
||||||
name: '',
|
name: '',
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
organizationId: getCurrentOrganizationId()
|
||||||
};
|
};
|
||||||
|
|
||||||
this.result = this.$post('user/org/member/list/all', param, response => {
|
this.result = this.$post('user/org/member/list/all', param, response => {
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCurrentUser, listenGoBack, removeGoBackListener} from "@/common/js/utils";
|
import {getCurrentOrganizationId, getCurrentUser, listenGoBack, removeGoBackListener} from "@/common/js/utils";
|
||||||
import Crontab from "../cron/Crontab";
|
import Crontab from "../cron/Crontab";
|
||||||
import CrontabResult from "../cron/CrontabResult";
|
import CrontabResult from "../cron/CrontabResult";
|
||||||
import {cronValidate} from "@/common/js/cron";
|
import {cronValidate} from "@/common/js/cron";
|
||||||
|
@ -112,7 +112,7 @@ export default {
|
||||||
initUserList() {
|
initUserList() {
|
||||||
let param = {
|
let param = {
|
||||||
name: '',
|
name: '',
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
organizationId: getCurrentOrganizationId()
|
||||||
};
|
};
|
||||||
|
|
||||||
this.result = this.$post('user/org/member/list/all', param, response => {
|
this.result = this.$post('user/org/member/list/all', param, response => {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCurrentUser} from "@/common/js/utils";
|
import {getCurrentOrganizationId, getCurrentUser} from "@/common/js/utils";
|
||||||
import JenkinsNotification from "@/business/components/settings/organization/components/JenkinsNotification";
|
import JenkinsNotification from "@/business/components/settings/organization/components/JenkinsNotification";
|
||||||
import TestPlanTaskNotification from "@/business/components/settings/organization/components/TestPlanTaskNotification";
|
import TestPlanTaskNotification from "@/business/components/settings/organization/components/TestPlanTaskNotification";
|
||||||
import TestReviewNotification from "@/business/components/settings/organization/components/TestReviewNotification";
|
import TestReviewNotification from "@/business/components/settings/organization/components/TestReviewNotification";
|
||||||
|
@ -60,7 +60,7 @@ export default {
|
||||||
initUserList() {
|
initUserList() {
|
||||||
let param = {
|
let param = {
|
||||||
name: '',
|
name: '',
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
organizationId: getCurrentOrganizationId()
|
||||||
};
|
};
|
||||||
this.result = this.$post('user/org/member/list/all', param, response => {
|
this.result = this.$post('user/org/member/list/all', param, response => {
|
||||||
this.jenkinsReceiverOptions = response.data
|
this.jenkinsReceiverOptions = response.data
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="10">
|
<el-col :span="20">
|
||||||
<el-button icon="el-icon-circle-plus-outline" plain size="mini"
|
<el-button icon="el-icon-circle-plus-outline" plain size="mini"
|
||||||
@click="handleAddTaskModel">
|
@click="handleAddTaskModel">
|
||||||
{{ $t('organization.message.create_new_notification') }}
|
{{ $t('organization.message.create_new_notification') }}
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
width="600"
|
width="600"
|
||||||
trigger="click">
|
trigger="click">
|
||||||
<ms-code-edit :read-only="true" height="400px" :data.sync="title" :modes="modes" :mode="'html'"/>
|
<ms-code-edit :read-only="true" height="400px" :data.sync="title" :modes="modes" :mode="'html'"/>
|
||||||
<el-button icon="el-icon-warning" plain size="mini" slot="reference">
|
<el-button icon="el-icon-warning" plain size="mini" slot="reference" style="margin-left: 10px">
|
||||||
{{ $t('organization.message.mail_template_example') }}
|
{{ $t('organization.message.mail_template_example') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
@ -20,9 +20,9 @@
|
||||||
placement="right-end"
|
placement="right-end"
|
||||||
title="示例"
|
title="示例"
|
||||||
width="200"
|
width="200"
|
||||||
trigger="click" >
|
trigger="click">
|
||||||
<ms-code-edit :read-only="true" height="200px" :data.sync="robotTitle" :modes="modes" :mode="'text'"/>
|
<ms-code-edit :read-only="true" height="200px" :data.sync="robotTitle" :modes="modes" :mode="'text'"/>
|
||||||
<el-button icon="el-icon-warning" plain size="mini" slot="reference">
|
<el-button icon="el-icon-warning" plain size="mini" slot="reference" style="margin-left: 10px">
|
||||||
{{ $t('organization.message.robot_template') }}
|
{{ $t('organization.message.robot_template') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
@ -209,7 +209,7 @@ export default {
|
||||||
{value: 'WECHAT_ROBOT', label: this.$t('organization.message.enterprise_wechat_robot')},
|
{value: 'WECHAT_ROBOT', label: this.$t('organization.message.enterprise_wechat_robot')},
|
||||||
{value: 'LARK', label: this.$t('organization.message.lark')}
|
{value: 'LARK', label: this.$t('organization.message.lark')}
|
||||||
],
|
],
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initForm()
|
this.initForm()
|
||||||
|
@ -219,7 +219,7 @@ export default {
|
||||||
this.result = this.$get('/notice/search/message/' + this.testId, response => {
|
this.result = this.$get('/notice/search/message/' + this.testId, response => {
|
||||||
// console.log(response.data);
|
// console.log(response.data);
|
||||||
this.scheduleTask = response.data;
|
this.scheduleTask = response.data;
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
handleEdit(index, data) {
|
handleEdit(index, data) {
|
||||||
data.isReadOnly = true;
|
data.isReadOnly = true;
|
||||||
|
@ -268,13 +268,13 @@ export default {
|
||||||
},
|
},
|
||||||
addTask(data) {
|
addTask(data) {
|
||||||
this.result = this.$post("/notice/save/message/task", data, () => {
|
this.result = this.$post("/notice/save/message/task", data, () => {
|
||||||
this.initForm()
|
this.initForm();
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
removeRowTask(index, data) { //移除
|
removeRowTask(index, data) { //移除
|
||||||
if (!data[index].identification) {
|
if (!data[index].identification) {
|
||||||
data.splice(index, 1)
|
data.splice(index, 1);
|
||||||
} else {
|
} else {
|
||||||
data[index].isSet = false;
|
data[index].isSet = false;
|
||||||
}
|
}
|
||||||
|
@ -282,22 +282,27 @@ export default {
|
||||||
deleteRowTask(index, data) { //删除
|
deleteRowTask(index, data) { //删除
|
||||||
this.result = this.$get("/notice/delete/message/" + data.identification, response => {
|
this.result = this.$get("/notice/delete/message/" + data.identification, response => {
|
||||||
this.$success(this.$t('commons.delete_success'));
|
this.$success(this.$t('commons.delete_success'));
|
||||||
this.initForm()
|
this.initForm();
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
rowClass() {
|
rowClass() {
|
||||||
return "text-align:center"
|
return "text-align:center";
|
||||||
},
|
},
|
||||||
headClass() {
|
headClass() {
|
||||||
return "text-align:center;background:'#ededed'"
|
return "text-align:center;background:'#ededed'";
|
||||||
},
|
},
|
||||||
handleTemplate(index, row) {
|
handleTemplate(index, row) {
|
||||||
if (hasLicense()) {
|
if (hasLicense()) {
|
||||||
this.$refs.noticeTemplate.open(row);
|
this.$refs.noticeTemplate.open(row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
testId() {
|
||||||
|
this.initForm();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCurrentUser, listenGoBack, removeGoBackListener} from "@/common/js/utils";
|
import {getCurrentOrganizationId, getCurrentUser, listenGoBack, removeGoBackListener} from "@/common/js/utils";
|
||||||
import Crontab from "@/business/components/common/cron/Crontab";
|
import Crontab from "@/business/components/common/cron/Crontab";
|
||||||
import CrontabResult from "@/business/components/common/cron/CrontabResult";
|
import CrontabResult from "@/business/components/common/cron/CrontabResult";
|
||||||
import {cronValidate} from "@/common/js/cron";
|
import {cronValidate} from "@/common/js/cron";
|
||||||
|
@ -225,7 +225,7 @@ export default {
|
||||||
initUserList() {
|
initUserList() {
|
||||||
let param = {
|
let param = {
|
||||||
name: '',
|
name: '',
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
organizationId: getCurrentOrganizationId()
|
||||||
};
|
};
|
||||||
|
|
||||||
this.result = this.$post('user/org/member/list/all', param, response => {
|
this.result = this.$post('user/org/member/list/all', param, response => {
|
||||||
|
|
Loading…
Reference in New Issue