fix:解决冲突
This commit is contained in:
@@ -154,7 +154,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
viewPermission: 'dc_view',
|
||||
regNum: /^[0-9]+.?[0-9]*/,
|
||||
regNum: /^-[0-9]+(\\.[0-9]+)?|[0-9]+(\\.[0-9]+)?$/,
|
||||
needAlertDaysData: true,
|
||||
trendKey: 'dcId',
|
||||
tableTitle: [
|
||||
@@ -228,7 +228,7 @@ export default {
|
||||
showTableTooltip,
|
||||
hideTableTooltip,
|
||||
regNumTest (val) { // 校验是否是数字
|
||||
return this.regNum.test(val)
|
||||
return !isNaN(val)
|
||||
},
|
||||
messageStyle (title, row) {
|
||||
if (title.prop === 'alertNum') {
|
||||
|
||||
Reference in New Issue
Block a user