Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
578cd10143
|
@ -156,7 +156,7 @@
|
||||||
initTableData() {
|
initTableData() {
|
||||||
let param = {
|
let param = {
|
||||||
name: this.condition.name,
|
name: this.condition.name,
|
||||||
organizationId: this.currentUser().lastOrganionIdzati
|
organizationId: this.currentUser().lastOrganizationId
|
||||||
};
|
};
|
||||||
this.result = this.$post(this.buildPagePath(this.queryPath), param, response => {
|
this.result = this.$post(this.buildPagePath(this.queryPath), param, response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
|
|
|
@ -45,8 +45,7 @@
|
||||||
<el-table-column :label="$t('schedule.receiver')" prop="userIds" min-width="20%">
|
<el-table-column :label="$t('schedule.receiver')" prop="userIds" min-width="20%">
|
||||||
<template v-slot:default="{row}">
|
<template v-slot:default="{row}">
|
||||||
<el-select v-model="row.userIds" filterable multiple
|
<el-select v-model="row.userIds" filterable multiple
|
||||||
:placeholder="$t('commons.please_select')"
|
:placeholder="$t('commons.please_select')" style="width: 100%;" :disabled="!row.isSet">
|
||||||
@click.native="userList()" style="width: 100%;" :disabled="!row.isSet">
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in jenkinsReceiverOptions"
|
v-for="item in jenkinsReceiverOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
|
@ -144,8 +143,7 @@
|
||||||
<el-table-column :label="$t('schedule.receiver')" prop="userIds" min-width="20%">
|
<el-table-column :label="$t('schedule.receiver')" prop="userIds" min-width="20%">
|
||||||
<template v-slot:default="{row}">
|
<template v-slot:default="{row}">
|
||||||
<el-select v-model="row.userIds" filterable multiple
|
<el-select v-model="row.userIds" filterable multiple
|
||||||
:placeholder="$t('commons.please_select')"
|
:placeholder="$t('commons.please_select')" style="width: 100%;" :disabled="!row.isSet">
|
||||||
@click.native="testPlanUserList()" style="width: 100%;" :disabled="!row.isSet">
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in row.testPlanReceiverOptions"
|
v-for="item in row.testPlanReceiverOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
|
@ -241,7 +239,7 @@
|
||||||
<template v-slot:default="{row}">
|
<template v-slot:default="{row}">
|
||||||
<el-select v-model="row.userIds" filterable multiple
|
<el-select v-model="row.userIds" filterable multiple
|
||||||
:placeholder="$t('commons.please_select')"
|
:placeholder="$t('commons.please_select')"
|
||||||
@click.native="reviewUerList()" style="width: 100%;" :disabled="!row.isSet">
|
style="width: 100%;" :disabled="!row.isSet">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in row.reviewReceiverOptions"
|
v-for="item in row.reviewReceiverOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
|
@ -336,7 +334,7 @@
|
||||||
<template v-slot:default="{row}">
|
<template v-slot:default="{row}">
|
||||||
<el-select v-model="row.userIds" filterable multiple
|
<el-select v-model="row.userIds" filterable multiple
|
||||||
:placeholder="$t('commons.please_select')"
|
:placeholder="$t('commons.please_select')"
|
||||||
@click.native="defectUserList()" style="width: 100%;" :disabled="!row.isSet">
|
style="width: 100%;" :disabled="!row.isSet">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in defectReceiverOptions"
|
v-for="item in defectReceiverOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
|
@ -397,7 +395,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCurrentUser} from "../../../../common/js/utils";
|
import {getCurrentUser} from "@/common/js/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TaskNotification",
|
name: "TaskNotification",
|
||||||
|
@ -482,11 +480,9 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
activated() {
|
activated() {
|
||||||
this.initForm()
|
this.initUserList(() => {
|
||||||
this.userList()
|
this.initForm()
|
||||||
this.testPlanUserList()
|
});
|
||||||
this.defectUserList()
|
|
||||||
this.reviewUerList()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleEdit(index, data) {
|
handleEdit(index, data) {
|
||||||
|
@ -500,8 +496,8 @@ export default {
|
||||||
},
|
},
|
||||||
initForm() {
|
initForm() {
|
||||||
this.result = this.$get('/notice/search/message', response => {
|
this.result = this.$get('/notice/search/message', response => {
|
||||||
console.log(response.data)
|
|
||||||
this.form = response.data
|
this.form = response.data
|
||||||
|
|
||||||
this.form.testCasePlanTask.forEach(planTask => {
|
this.form.testCasePlanTask.forEach(planTask => {
|
||||||
this.handleTestPlanReceivers(planTask);
|
this.handleTestPlanReceivers(planTask);
|
||||||
});
|
});
|
||||||
|
@ -511,42 +507,20 @@ export default {
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
userList() {
|
initUserList(after) {
|
||||||
let param = {
|
let param = {
|
||||||
name: '',
|
name: '',
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
organizationId: this.currentUser().lastOrganizationId
|
||||||
};
|
};
|
||||||
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
|
||||||
})
|
|
||||||
},
|
|
||||||
reviewUerList() {
|
|
||||||
let param = {
|
|
||||||
name: '',
|
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
|
||||||
};
|
|
||||||
this.result = this.$post('user/org/member/list/all', param, response => {
|
|
||||||
this.reviewReceiverOptions = response.data
|
this.reviewReceiverOptions = response.data
|
||||||
})
|
|
||||||
|
|
||||||
},
|
|
||||||
defectUserList() {
|
|
||||||
let param = {
|
|
||||||
name: '',
|
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
|
||||||
};
|
|
||||||
this.result = this.$post('user/org/member/list/all', param, response => {
|
|
||||||
this.defectReceiverOptions = response.data
|
this.defectReceiverOptions = response.data
|
||||||
})
|
|
||||||
},
|
|
||||||
testPlanUserList() {
|
|
||||||
let param = {
|
|
||||||
name: '',
|
|
||||||
organizationId: this.currentUser().lastOrganizationId
|
|
||||||
};
|
|
||||||
this.result = this.$post('user/org/member/list/all', param, response => {
|
|
||||||
this.testPlanReceiverOptions = response.data
|
this.testPlanReceiverOptions = response.data
|
||||||
})
|
|
||||||
|
after();
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
handleAddTaskModel(type) {
|
handleAddTaskModel(type) {
|
||||||
let Task = {};
|
let Task = {};
|
||||||
|
@ -617,7 +591,6 @@ export default {
|
||||||
return "text-align:center;background:'#ededed'"
|
return "text-align:center;background:'#ededed'"
|
||||||
},
|
},
|
||||||
handleTestPlanReceivers(row) {
|
handleTestPlanReceivers(row) {
|
||||||
console.log(row);
|
|
||||||
let testPlanReceivers = JSON.parse(JSON.stringify(this.testPlanReceiverOptions));
|
let testPlanReceivers = JSON.parse(JSON.stringify(this.testPlanReceiverOptions));
|
||||||
switch (row.event) {
|
switch (row.event) {
|
||||||
case "CREATE":
|
case "CREATE":
|
||||||
|
@ -634,7 +607,6 @@ export default {
|
||||||
row.testPlanReceiverOptions = testPlanReceivers;
|
row.testPlanReceiverOptions = testPlanReceivers;
|
||||||
},
|
},
|
||||||
handleReviewReceivers(row) {
|
handleReviewReceivers(row) {
|
||||||
console.log(row);
|
|
||||||
let reviewReceiverOptions = JSON.parse(JSON.stringify(this.reviewReceiverOptions));
|
let reviewReceiverOptions = JSON.parse(JSON.stringify(this.reviewReceiverOptions));
|
||||||
|
|
||||||
switch (row.event) {
|
switch (row.event) {
|
||||||
|
|
Loading…
Reference in New Issue