|
|
|
@ -16,6 +16,8 @@ |
|
|
|
@size-change="sizeChange" |
|
|
|
@size-change="sizeChange" |
|
|
|
@refresh-change="refreshChange" |
|
|
|
@refresh-change="refreshChange" |
|
|
|
@on-load="onLoad" |
|
|
|
@on-load="onLoad" |
|
|
|
|
|
|
|
@sort-change="sortChange" |
|
|
|
|
|
|
|
:permission="permissionList" |
|
|
|
> |
|
|
|
> |
|
|
|
<template #menu-left> </template> |
|
|
|
<template #menu-left> </template> |
|
|
|
<template #menu-right> |
|
|
|
<template #menu-right> |
|
|
|
@ -58,6 +60,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { getList, remove, update, getdutyManList } from '@/api/safetyManagement/wasteGasRunRec.js'; |
|
|
|
import { getList, remove, update, getdutyManList } from '@/api/safetyManagement/wasteGasRunRec.js'; |
|
|
|
|
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -391,8 +394,18 @@ export default { |
|
|
|
currentPage: 1, |
|
|
|
currentPage: 1, |
|
|
|
total: 0, |
|
|
|
total: 0, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
query:{} |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
|
|
|
|
...mapGetters(['permission']), |
|
|
|
|
|
|
|
permissionList() { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
editBtn: this.validData(this.permission.processingRecord2_edit, false), |
|
|
|
|
|
|
|
delBtn: this.validData(this.permission.processingRecord2_del, false), |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.fetchdutyManList(); |
|
|
|
this.fetchdutyManList(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -513,60 +526,20 @@ export default { |
|
|
|
this.query = {}; |
|
|
|
this.query = {}; |
|
|
|
this.onLoad(this.page); |
|
|
|
this.onLoad(this.page); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// onLoad() { |
|
|
|
// 排序 |
|
|
|
// this.loading = true; |
|
|
|
sortChange({ prop, order }) { |
|
|
|
// this.data = [ |
|
|
|
if (!prop) { |
|
|
|
// { |
|
|
|
// 如果取消排序,清空排序参数 |
|
|
|
// alarm: false, |
|
|
|
this.query.orderByField = undefined; |
|
|
|
// code: "28", |
|
|
|
this.query.isAsc = undefined; |
|
|
|
// endTime: "2023-03-23 16:50:50", |
|
|
|
} else { |
|
|
|
// errorPoint: "东楼喷淋塔D", |
|
|
|
const orderByField = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase(); |
|
|
|
// key: "DPHL", |
|
|
|
this.query.orderByField = orderByField; |
|
|
|
// keyValue: 1, |
|
|
|
this.query.isAsc = order === 'ascending' ? true : false; |
|
|
|
// messText: "pH值低", |
|
|
|
} |
|
|
|
// startTime: "2023-03-23 16:50:40", |
|
|
|
// 重新加载数据 |
|
|
|
// torId: 1, |
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
// }, |
|
|
|
}, |
|
|
|
// { |
|
|
|
|
|
|
|
// alarm: false, |
|
|
|
|
|
|
|
// code: "29", |
|
|
|
|
|
|
|
// endTime: "2023-03-23 16:50:50", |
|
|
|
|
|
|
|
// errorPoint: "东楼喷淋塔E", |
|
|
|
|
|
|
|
// key: "EPHL", |
|
|
|
|
|
|
|
// keyValue: 2, |
|
|
|
|
|
|
|
// messText: "pH值低", |
|
|
|
|
|
|
|
// startTime: "2023-03-23 16:50:40", |
|
|
|
|
|
|
|
// torId: 2, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// alarm: false, |
|
|
|
|
|
|
|
// code: "25", |
|
|
|
|
|
|
|
// endTime: "2023-03-23 16:50:45", |
|
|
|
|
|
|
|
// errorPoint: "东楼喷淋塔A", |
|
|
|
|
|
|
|
// key: "APHL", |
|
|
|
|
|
|
|
// keyValue: 3, |
|
|
|
|
|
|
|
// messText: "pH值低", |
|
|
|
|
|
|
|
// startTime: "2023-03-23 16:50:41", |
|
|
|
|
|
|
|
// torId: 3, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// { |
|
|
|
|
|
|
|
// alarm: false, |
|
|
|
|
|
|
|
// code: "48", |
|
|
|
|
|
|
|
// endTime: "2023-03-24 08:54:11", |
|
|
|
|
|
|
|
// errorPoint: "西楼喷淋塔h", |
|
|
|
|
|
|
|
// key: "hhPHL", |
|
|
|
|
|
|
|
// keyValue: 4, |
|
|
|
|
|
|
|
// messText: "pH值低", |
|
|
|
|
|
|
|
// startTime: "2023-03-24 08:54:01", |
|
|
|
|
|
|
|
// torId: 4, |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// ]; |
|
|
|
|
|
|
|
// this.page.total = this.data.length; |
|
|
|
|
|
|
|
// this.loading = false; |
|
|
|
|
|
|
|
// setTimeout(() => { |
|
|
|
|
|
|
|
// this.selectionClear(); |
|
|
|
|
|
|
|
// }, 500); |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
// 加载页面数据 |
|
|
|
// 加载页面数据 |
|
|
|
onLoad(page, params = {}) { |
|
|
|
onLoad(page, params = {}) { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
|