gaosp
2024-02-07 784e6182d02076a508ba7c6086eeacdffadcd942
src/container/maintenance/index.vue
@@ -1,13 +1,13 @@
<!--
 * @Date: 2024-01-06 17:40:19
 * @LastEditors: Sneed
 * @LastEditTime: 2024-01-30 21:05:16
 * @LastEditTime: 2024-02-03 23:27:34
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/maintenance/index.vue
-->
<template>
    <div class="maintenance">
        <Nav :name="`设备保养 / ${navName}`"></Nav>
        <List ref="list" url="/maintain/pageQuery">
        <List ref="list" url="/maintain/pageQuery" :data="{style: $route.params.style - 1}">
            <template slot="search">
                <div class="item">
                    <span>统一编号</span>
@@ -137,9 +137,15 @@
        },
    },
    watch: {
        $route () {
            this.queryInfo.style = this.$route.params.style
            this.query()
        $route: {
            handler () {
                this.queryInfo.style = this.$route.params.style
                this.$nextTick(() => {
                    this.$refs.list && this.query()
                })
            },
            immediate:  true
        }
    },
    data() {
@@ -163,7 +169,7 @@
    },
    mounted() {
        this.init()
        this.query()
        // this.query()
    },
    methods: {
        init () {