diff --git a/pages/aqjc/index.vue b/pages/aqjc/index.vue index 9bfef32..03d309f 100644 --- a/pages/aqjc/index.vue +++ b/pages/aqjc/index.vue @@ -1,399 +1,444 @@ \ No newline at end of file diff --git a/pages/homeIndex/index.vue b/pages/homeIndex/index.vue index 2a5d111..10ce9ac 100644 --- a/pages/homeIndex/index.vue +++ b/pages/homeIndex/index.vue @@ -40,10 +40,9 @@ - + - @@ -56,7 +55,7 @@ import moment from 'moment' const stm = moment().startOf('year').format("YYYY-MM-DD HH:mm:ss"); const etm = moment().format("YYYY-MM-DD HH:mm:ss"); - const warnStm = moment().subtract(1,"days").format("YYYY-MM-DD HH:mm:ss") + const warnStm = moment().subtract(1, "days").format("YYYY-MM-DD HH:mm:ss") const warnetm = moment().format("YYYY-MM-DD HH:mm:ss") import SkInfo from '../skInfo/index.vue' import YlzList from '../ylzList/index.vue' @@ -134,7 +133,7 @@ } }, methods: { - + getYlzList() { uni.$http.post('/gunshiApp/xyt/stPptnRReal/list').then(res => { if (res.data.code == 200) { @@ -207,8 +206,8 @@ "pageNumber": 1 }, "dateTimeRangeSo": { - start:stm, - end:etm + start: stm, + end: etm }, "isHandle": 0, "inspectUserId": uni.getStorageSync('value').userId @@ -226,12 +225,17 @@ async getYjData() { const params = { start: warnStm, - end:warnetm + end: warnetm } try { const res = await uni.$http.post("/gunshiApp/xyt/stQxWarnR/home/warn", params) - const {flowWarn,pressWarn,qxWarn,shiftWarn} = res.data.data - const arr = [...flowWarn,...pressWarn,...qxWarn,...shiftWarn] + const { + flowWarn, + pressWarn, + qxWarn, + shiftWarn + } = res.data.data + const arr = [...flowWarn, ...pressWarn, ...qxWarn, ...shiftWarn] if (arr.length > 0) { this.warnStatus = true } @@ -259,6 +263,7 @@