Merge remote-tracking branch 'origin/0.8.X' into 0.8.X
This commit is contained in:
@@ -124,7 +124,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
/** 表单验证 */
|
/** 表单验证 */
|
||||||
validate(callback) {
|
validate(callback) {
|
||||||
if (this.formData.startPosition > this.formData.endPosition) {
|
if (parseInt(this.formData.startPosition) > parseInt(this.formData.endPosition)) {
|
||||||
this.$message.error('开始位置必须小于结束位置');
|
this.$message.error('开始位置必须小于结束位置');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -258,7 +258,8 @@ export default {
|
|||||||
this.$message.error(`第${rowIndex}行:请填写开始位置和结束位置`)
|
this.$message.error(`第${rowIndex}行:请填写开始位置和结束位置`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (row.startPosition > row.endPosition) {
|
if (parseInt(row.startPosition) > parseInt(row.endPosition)) {
|
||||||
|
console.log(row, row.startPosition, row.endPosition)
|
||||||
this.$message.error(`第${rowIndex}行:开始位置必须小于结束位置`)
|
this.$message.error(`第${rowIndex}行:开始位置必须小于结束位置`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user