diff --git a/src/views/energy/monitoring/energyLimit/components/TimePickerArea.vue b/src/views/energy/monitoring/energyLimit/components/TimePickerArea.vue
index d3b6810b..25a5984b 100644
--- a/src/views/energy/monitoring/energyLimit/components/TimePickerArea.vue
+++ b/src/views/energy/monitoring/energyLimit/components/TimePickerArea.vue
@@ -1,3 +1,10 @@
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
diff --git a/src/views/energy/monitoring/energyLimit/index.vue b/src/views/energy/monitoring/energyLimit/index.vue
index a04e43f2..ba8a31c6 100644
--- a/src/views/energy/monitoring/energyLimit/index.vue
+++ b/src/views/energy/monitoring/energyLimit/index.vue
@@ -49,15 +49,33 @@ import { getEnergyTypeListAll } from "@/api/base/energyType";
import { getTree } from '@/api/base/factory'
import { publicFormatter } from '@/utils/dict'
import EnergyLimitAdd from './components/energyLimitAdd'
+import codeFilter from '@/filter/code-filter';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
const tableProps = [
+ {
+ prop: 'manual',
+ label: '抄表方式',
+ filter: codeFilter('manual'),
+ },
{
prop: 'objName',
label: '监控对象'
},
{
- prop: 'objectType',
- label: '对象备注',
- filter: publicFormatter('object_type')
+ prop: 'objCode',
+ label: '对象编码',
+ minWidth: 140,
+ showOverflowtooltip: true,
+ },
+ // {
+ // prop: 'objectType',
+ // label: '对象备注',
+ // filter: publicFormatter('object_type')
+ // },
+ {
+ prop: 'meter',
+ label: '能源表名',
+ filter: publicFormatter('meter'),
},
{
prop: 'energyType',
@@ -85,6 +103,7 @@ const tableProps = [
export default {
name: "EnergyLimit",
components: { EnergyLimitAdd },
+ mixins: [tableHeightMixin],
data() {
return {
formConfig: [
@@ -159,9 +178,6 @@ export default {
};
},
created() {
- window.addEventListener('resize', () => {
- this.tableH = this.tableHeight(260)
- })
this.getList();
this.getTypeList()
// 获取对象树形结构
@@ -200,6 +216,15 @@ export default {
item.type = i.label
}
})
+ if (item.downValue && item.upValue) {
+ item.limitValue = item.downValue + '-' + item.upValue;
+ } else if (item.downValue) {
+ item.limitValue = '最小值' + item.downValue;
+ } else if (item.upValue) {
+ item.limitValue = '最大值' + item.upValue;
+ } else {
+ item.limitValue = '-';
+ }
})
this.list = arr
this.total = response.data.total;
@@ -232,7 +257,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- this.$modal.confirm('是否确认删除监控对象为"' + row.objName + '"的数据项?').then(function() {
+ this.$modal.confirm('是否确认删除第"' + row._pageInde + '"的数据项?').then(function() {
return deleteEnergyLimit(row.id);
}).then(() => {
this.queryParams.pageNo = 1;
diff --git a/src/views/energy/monitoring/energyOverlimitLog/index.vue b/src/views/energy/monitoring/energyOverlimitLog/index.vue
index d16aff6b..6b389cce 100644
--- a/src/views/energy/monitoring/energyOverlimitLog/index.vue
+++ b/src/views/energy/monitoring/energyOverlimitLog/index.vue
@@ -1,152 +1,268 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+