| | |
| | | <!-- |
| | | * @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> |
| | |
| | | }, |
| | | }, |
| | | 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() { |
| | |
| | | }, |
| | | mounted() { |
| | | this.init() |
| | | this.query() |
| | | // this.query() |
| | | }, |
| | | methods: { |
| | | init () { |