NEZ-3286 fix:Data Centers中经纬度坐标为负数时,列表页中没有显示

This commit is contained in:
zhangyu
2023-10-27 15:04:05 +08:00
parent 19dabef1ab
commit a00adcf2fc

View File

@@ -153,7 +153,7 @@ export default {
},
data () {
return {
regNum: /^[0-9]+.?[0-9]*/,
regNum: /^-[0-9]+(\\.[0-9]+)?|[0-9]+(\\.[0-9]+)?$/,
needAlertDaysData: true,
trendKey: 'dcId',
tableTitle: [
@@ -227,7 +227,7 @@ export default {
showTableTooltip,
hideTableTooltip,
regNumTest (val) { // 校验是否是数字
return this.regNum.test(val)
return !isNaN(val)
},
messageStyle (title, row) {
if (title.prop === 'alertNum') {