gaoshp
2024-05-14 db06bf2b2956472ecbd745f861a7713bd76f3bec
update
已修改2个文件
21 ■■■■■ 文件已修改
src/views/mdc/alarm-statistics.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/components/ShiftAlarm.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/alarm-statistics.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-04-09 22:11:21
 * @LastEditors: Sneed
 * @LastEditTime: 2024-04-21 18:58:16
 * @LastEditTime: 2024-05-14 20:40:54
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/alarm-statistics.vue
 * 效率分析
-->
@@ -26,7 +26,7 @@
                        </el-main>
                        <el-footer>
                            <el-button @click="query()">查询</el-button>
                            <el-button>导出</el-button>
                            <!-- <el-button>导出</el-button> -->
                        </el-footer>
                    </el-container>
                </el-aside>
@@ -101,12 +101,16 @@
    },
    methods: {
        query(firstWorkKey) {
            console.log('------')
            let workstationId = firstWorkKey ? [firstWorkKey] : [...this.treeChecked]
            this.$refs[this.activeName].init({
                endDate: this.time[1],
                startDate: this.time[0],
                workstationId
            this.$nextTick(() => {
                this.$refs[this.activeName].init({
                    endDate: this.time[1],
                    startDate: this.time[0],
                    workstationId
                })
            })
        }
    }
}
src/views/mdc/components/ShiftAlarm.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-04-18 21:52:18
 * @LastEditors: Sneed
 * @LastEditTime: 2024-04-23 19:45:00
 * @LastEditTime: 2024-05-14 20:42:32
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/ShiftAlarm.vue
-->
<template>
@@ -89,9 +89,10 @@
    },
    methods: {
        init(params) {
            this.btnListActive = ''
            console.log('++++++')
            this.params = {
                ...this.params,
                ...params,
                workstationId: params.workstationId.toString()
            }
            this.getTime({