wuqun 2 years ago
parent
commit
a8b6d992a2
  1. 2
      api/app/lib/controllers/control/toolLink.js
  2. 4
      web/client/src/layout/containers/layout/index.jsx
  3. 3
      web/client/src/sections/control/containers/control.jsx

2
api/app/lib/controllers/control/toolLink.js

@ -164,8 +164,6 @@ async function count (ctx) {
alarms.StructureId IN (${anxinStrucIds.join(",")})
AND
StartTime BETWEEN '${moment().startOf('day').format('YYYY-MM-DD HH:mm:ss')}' AND '${moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')}'
AND
State < 3
GROUP BY AlarmGroup
`).toPromise()
//今日新增数据告警

4
web/client/src/layout/containers/layout/index.jsx

@ -189,15 +189,17 @@ const LayoutContainer = props => {
}
}
const dom = document.getElementById('page-content');
setTimeout(() => {
if (dom) {
if (!scrollbar) {
scrollbar = new PerfectScrollbar('#page-content', { suppressScrollX: true });
scrollbar.update();
// scrollbar.update();
} else {
scrollbar.update();
dom.scrollTop = 0;
}
}
}, 300)
})

3
web/client/src/sections/control/containers/control.jsx

@ -235,6 +235,7 @@ const Control = (props) => {
let webtop = 0
let webId = document.getElementById('web');
if (web) clearInterval(web)
let memberId = document.getElementById('member');
if (memberId) {
function webstart () {
member = setInterval(() => {
@ -1058,7 +1059,7 @@ const Control = (props) => {
text: v.name,
},
grid: {
left: '5%',
left: '10%',
// right: '4%',
// bottom: '3%',
// containLabel: true

Loading…
Cancel
Save