diff --git a/src/views/smartAnalysis/components/listGasLeakage.vue b/src/views/smartAnalysis/components/listGasLeakage.vue index 7a84031..bdc8f62 100644 --- a/src/views/smartAnalysis/components/listGasLeakage.vue +++ b/src/views/smartAnalysis/components/listGasLeakage.vue @@ -34,7 +34,7 @@ @@ -93,7 +93,8 @@ { text: '影响面积', value: 'area', - align: 'center' + align: 'center', + checkCell: true }, { text: '关阀编号', @@ -212,10 +213,8 @@ }) }, checkCell(value) { - var cell = parseFloat(value) - if (cell < 10) { - return 'warning-state' - } + const cell = value.substring(0, value.indexOf('.') + 4) + return cell }, indexMethod(index) { return this.listQuery.limit * (this.listQuery.offset - 1) + index + 1 diff --git a/src/views/smartAnalysis/components/listGasLeakage.vue b/src/views/smartAnalysis/components/listGasLeakage.vue index 7a84031..bdc8f62 100644 --- a/src/views/smartAnalysis/components/listGasLeakage.vue +++ b/src/views/smartAnalysis/components/listGasLeakage.vue @@ -34,7 +34,7 @@ @@ -93,7 +93,8 @@ { text: '影响面积', value: 'area', - align: 'center' + align: 'center', + checkCell: true }, { text: '关阀编号', @@ -212,10 +213,8 @@ }) }, checkCell(value) { - var cell = parseFloat(value) - if (cell < 10) { - return 'warning-state' - } + const cell = value.substring(0, value.indexOf('.') + 4) + return cell }, indexMethod(index) { return this.listQuery.limit * (this.listQuery.offset - 1) + index + 1 diff --git a/src/views/smartAnalysis/components/listHotLeakage.vue b/src/views/smartAnalysis/components/listHotLeakage.vue index cdd46cc..8ae4516 100644 --- a/src/views/smartAnalysis/components/listHotLeakage.vue +++ b/src/views/smartAnalysis/components/listHotLeakage.vue @@ -34,7 +34,7 @@ @@ -88,7 +88,8 @@ { text: '影响面积', value: 'area', - align: 'center' + align: 'center', + checkCell: true }, { text: '噪声值(mg)', @@ -210,10 +211,8 @@ }) }, checkCell(value) { - var cell = parseFloat(value) - if (cell < 10) { - return 'warning-state' - } + const cell = value.substring(0, value.indexOf('.') + 4) + return cell }, indexMethod(index) { return this.listQuery.limit * (this.listQuery.offset - 1) + index + 1 diff --git a/src/views/smartAnalysis/components/listGasLeakage.vue b/src/views/smartAnalysis/components/listGasLeakage.vue index 7a84031..bdc8f62 100644 --- a/src/views/smartAnalysis/components/listGasLeakage.vue +++ b/src/views/smartAnalysis/components/listGasLeakage.vue @@ -34,7 +34,7 @@ @@ -93,7 +93,8 @@ { text: '影响面积', value: 'area', - align: 'center' + align: 'center', + checkCell: true }, { text: '关阀编号', @@ -212,10 +213,8 @@ }) }, checkCell(value) { - var cell = parseFloat(value) - if (cell < 10) { - return 'warning-state' - } + const cell = value.substring(0, value.indexOf('.') + 4) + return cell }, indexMethod(index) { return this.listQuery.limit * (this.listQuery.offset - 1) + index + 1 diff --git a/src/views/smartAnalysis/components/listHotLeakage.vue b/src/views/smartAnalysis/components/listHotLeakage.vue index cdd46cc..8ae4516 100644 --- a/src/views/smartAnalysis/components/listHotLeakage.vue +++ b/src/views/smartAnalysis/components/listHotLeakage.vue @@ -34,7 +34,7 @@ @@ -88,7 +88,8 @@ { text: '影响面积', value: 'area', - align: 'center' + align: 'center', + checkCell: true }, { text: '噪声值(mg)', @@ -210,10 +211,8 @@ }) }, checkCell(value) { - var cell = parseFloat(value) - if (cell < 10) { - return 'warning-state' - } + const cell = value.substring(0, value.indexOf('.') + 4) + return cell }, indexMethod(index) { return this.listQuery.limit * (this.listQuery.offset - 1) + index + 1 diff --git a/src/views/smartAnalysis/components/listWater.vue b/src/views/smartAnalysis/components/listWater.vue index 9a23b12..c4357a7 100644 --- a/src/views/smartAnalysis/components/listWater.vue +++ b/src/views/smartAnalysis/components/listWater.vue @@ -34,7 +34,7 @@ @@ -126,9 +126,10 @@ align: 'center' }, { - text: '影响面积', + text: '影响面积(m²)', value: 'area', - align: 'center' + align: 'center', + checkCell: true }, { text: '记录创建时间', @@ -240,10 +241,8 @@ }) }, checkCell(value) { - var cell = parseFloat(value) - if (cell < 10) { - return 'warning-state' - } + const cell = value.substring(0, value.indexOf('.') + 4) + return cell }, indexMethod(index) { return this.listQuery.limit * (this.listQuery.offset - 1) + index + 1