mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 11:38:11 +08:00
refactor: 轴线自定义刻度数限制不超过100
This commit is contained in:
@@ -160,7 +160,7 @@ export default {
|
||||
if (!this.axisForm.show) {
|
||||
this.isSetting = false
|
||||
}
|
||||
if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) {
|
||||
if (this.axisForm.axisValue.splitCount && (parseInt(this.axisForm.axisValue.splitCount) > 100 || parseInt(this.axisForm.axisValue.splitCount) < 0)) {
|
||||
this.$message({
|
||||
message: this.$t('chart.splitCount_less_100'),
|
||||
type: 'error'
|
||||
|
||||
@@ -163,7 +163,7 @@ export default {
|
||||
if (!this.axisForm.show) {
|
||||
this.isSetting = false
|
||||
}
|
||||
if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) {
|
||||
if (this.axisForm.axisValue.splitCount && (parseInt(this.axisForm.axisValue.splitCount) > 100 || parseInt(this.axisForm.axisValue.splitCount) < 0)) {
|
||||
this.$message({
|
||||
message: this.$t('chart.splitCount_less_100'),
|
||||
type: 'error'
|
||||
|
||||
@@ -171,7 +171,7 @@ export default {
|
||||
if (!this.axisForm.show) {
|
||||
this.isSetting = false
|
||||
}
|
||||
if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) {
|
||||
if (this.axisForm.axisValue.splitCount && (parseInt(this.axisForm.axisValue.splitCount) > 100 || parseInt(this.axisForm.axisValue.splitCount) < 0)) {
|
||||
this.$message({
|
||||
message: this.$t('chart.splitCount_less_100'),
|
||||
type: 'error'
|
||||
|
||||
Reference in New Issue
Block a user