fix(测试跟踪):使得创建测试计划的对话框更加人性化 (#1878)
* fix(测试跟踪):使得创建测试计划的对话框更加人性化 * style(测试跟踪):删除一行额外代码
This commit is contained in:
parent
d26ddfe070
commit
f96a323678
|
@ -33,7 +33,7 @@
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in principalOptions"
|
v-for="item in principalOptions"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name + '(' + item.id + ')'"
|
||||||
:value="item.id">
|
:value="item.id">
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -158,6 +158,12 @@ export default {
|
||||||
principalOptions: []
|
principalOptions: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
//设置“测试阶段”和“负责人”的默认值
|
||||||
|
this.form.stage = 'smoke';
|
||||||
|
const adminToken = JSON.parse(localStorage.getItem("Admin-Token"));
|
||||||
|
this.form.principal = adminToken.name + "(" + adminToken.id + ")";
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openTestPlanEditDialog(testPlan) {
|
openTestPlanEditDialog(testPlan) {
|
||||||
this.resetForm();
|
this.resetForm();
|
||||||
|
@ -259,8 +265,9 @@ export default {
|
||||||
this.$refs['planFrom'].resetFields();
|
this.$refs['planFrom'].resetFields();
|
||||||
this.form.name = '';
|
this.form.name = '';
|
||||||
this.form.projectIds = [];
|
this.form.projectIds = [];
|
||||||
this.form.principal = '';
|
const adminToken = JSON.parse(localStorage.getItem("Admin-Token"));
|
||||||
this.form.stage = '';
|
this.form.principal = adminToken.name + "(" + adminToken.id + ")";
|
||||||
|
this.form.stage = 'smoke';
|
||||||
this.form.description = '';
|
this.form.description = '';
|
||||||
this.form.status = null;
|
this.form.status = null;
|
||||||
this.form.plannedStartTime = null;
|
this.form.plannedStartTime = null;
|
||||||
|
|
Loading…
Reference in New Issue