fix(测试跟踪):新建/编辑测试计划页面,新增开始/结束时间校验,责任人样式调整,保存一直loading问题修复

--bug=1026417 --user=王旭 【测试计划】计划结束时间小于开始时间-规划&执行-可以保存成功 https://www.tapd.cn/55049933/s/1374319

--bug=1026416 --user=王旭 【测试计划】编辑测试计划-责任人-用户名后面的叉号错位 https://www.tapd.cn/55049933/s/1374320

--bug=1026415 --user=王旭 【测试跟踪】测试计划-创建重名的测试计划保存时页面一直转圈无法恢复 https://www.tapd.cn/55049933/s/1374321
This commit is contained in:
WangXu10 2023-05-23 13:41:39 +08:00 committed by fit2-zhao
parent a86c6e3b8b
commit c0d244003b
1 changed files with 7 additions and 2 deletions

View File

@ -248,8 +248,7 @@ export default {
let param = {}; let param = {};
Object.assign(param, this.form); Object.assign(param, this.form);
param.name = param.name.trim(); param.name = param.name.trim();
if (param.name === '') { if (!this.validate(param)) {
this.$warning(this.$t('test_track.plan.input_plan_name'));
return; return;
} }
param.workspaceId = getCurrentWorkspaceId(); param.workspaceId = getCurrentWorkspaceId();
@ -270,6 +269,8 @@ export default {
} }
this.dialogFormVisible = false; this.dialogFormVisible = false;
this.$router.push('/track/plan/view/' + response.data.id); this.$router.push('/track/plan/view/' + response.data.id);
}).catch(() => {
this.loading = false;
}); });
} else { } else {
return false; return false;
@ -376,4 +377,8 @@ export default {
-ms-flex-align: center; -ms-flex-align: center;
align-items: center; align-items: center;
} }
.el-select :deep(.el-tag__close.el-icon-close:before) {
display: block;
transform: translateY(9.5px);
}
</style> </style>