提交 6db8c621 编写于 作者: C chenjianxing

测试计划备注长度校验

上级 6554685c
...@@ -132,7 +132,8 @@ ...@@ -132,7 +132,8 @@
], ],
projectId :[{required: true, message: this.$t('test_track.plan.input_plan_project'), trigger: 'change'}], projectId :[{required: true, message: this.$t('test_track.plan.input_plan_project'), trigger: 'change'}],
principal :[{required: true, message: this.$t('test_track.plan.input_plan_principal'), trigger: 'change'}], principal :[{required: true, message: this.$t('test_track.plan.input_plan_principal'), trigger: 'change'}],
stage :[{required: true, message: this.$t('test_track.plan.input_plan_stage'), trigger: 'change'}] stage :[{required: true, message: this.$t('test_track.plan.input_plan_stage'), trigger: 'change'}],
description :[{ max: 200, message: this.$t('test_track.length_less_than') + '200', trigger: 'blur'}]
}, },
formLabelWidth: "120px", formLabelWidth: "120px",
operationType: '', operationType: '',
......
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
} }
result.loading = false; result.loading = false;
window.console.error(error.response || error.message); window.console.error(error.response || error.message);
if (!error.response.data) { if (error.response.data) {
Message.error({message: error.response.data.message, showClose: true}); Message.error({message: error.response.data.message, showClose: true});
} else { } else {
Message.error({message: error.message, showClose: true}); Message.error({message: error.message, showClose: true});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册