feat_测试跟踪_评审添加关注人
This commit is contained in:
parent
54e7241715
commit
9d85bf20a7
|
@ -46,8 +46,22 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12" :offset="1">
|
<el-col :span="12" :offset="1">
|
||||||
|
<el-form-item :label="$t('api_test.automation.follow_people')" :label-width="formLabelWidth"
|
||||||
|
prop="followPeople">
|
||||||
|
<el-select v-model="form.followPeople"
|
||||||
|
clearable
|
||||||
|
:placeholder="$t('api_test.automation.follow_people')" filterable size="small">
|
||||||
|
<el-option
|
||||||
|
v-for="item in maintainerOptions"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.id + ' (' + item.name + ')'"
|
||||||
|
:value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
<el-form-item :label="$t('test_track.review.end_time')" :label-width="formLabelWidth" prop="endTime">
|
<el-form-item :label="$t('test_track.review.end_time')" :label-width="formLabelWidth" prop="endTime">
|
||||||
<el-date-picker @change="endTimeChange" type="datetime" :placeholder="$t('commons.select_date')"
|
<el-date-picker @change="endTimeChange" type="datetime" :placeholder="$t('commons.select_date')"
|
||||||
v-model="form.endTime" style="width: 100%"/>
|
v-model="form.endTime" style="width: 100%"/>
|
||||||
|
@ -119,7 +133,8 @@ export default {
|
||||||
userIds: [],
|
userIds: [],
|
||||||
stage: '',
|
stage: '',
|
||||||
description: '',
|
description: '',
|
||||||
endTime: ''
|
endTime: '',
|
||||||
|
followPeople: '',
|
||||||
},
|
},
|
||||||
dbProjectIds: [],
|
dbProjectIds: [],
|
||||||
rules: {
|
rules: {
|
||||||
|
@ -135,7 +150,8 @@ export default {
|
||||||
},
|
},
|
||||||
formLabelWidth: "100px",
|
formLabelWidth: "100px",
|
||||||
operationType: '',
|
operationType: '',
|
||||||
reviewerOptions: []
|
reviewerOptions: [],
|
||||||
|
maintainerOptions: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -143,7 +159,18 @@ export default {
|
||||||
return getCurrentProjectID();
|
return getCurrentProjectID();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getSelectOptions();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getSelectOptions(){
|
||||||
|
this.getMaintainerOptions();
|
||||||
|
},
|
||||||
|
getMaintainerOptions() {
|
||||||
|
this.$post('/user/project/member/tester/list', {projectId: getCurrentProjectID()}, response => {
|
||||||
|
this.maintainerOptions = response.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
reload() {
|
reload() {
|
||||||
this.isStepTableAlive = false;
|
this.isStepTableAlive = false;
|
||||||
this.$nextTick(() => (this.isStepTableAlive = true));
|
this.$nextTick(() => (this.isStepTableAlive = true));
|
||||||
|
@ -162,6 +189,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.form.tags = [];
|
this.form.tags = [];
|
||||||
}
|
}
|
||||||
|
this.getSelectOptions();
|
||||||
listenGoBack(this.close);
|
listenGoBack(this.close);
|
||||||
this.dialogFormVisible = true;
|
this.dialogFormVisible = true;
|
||||||
this.reload();
|
this.reload();
|
||||||
|
|
Loading…
Reference in New Issue