Blame view

src/components/inspection/pointPlanDemo.vue 578 Bytes
b25b036d   wuxw   v1.9 优化日期
1
  <template>
1d73dc48   wuxw   继续晚上巡检功能
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
    <div>
      <point-plan ref="pointPlan" :inspection-id="currentInspectionId" />
    </div>
  </template>
  
  <script>
  import PointPlan from '@/components/inspection/pointPlan'
  
  export default {
    components: {
      PointPlan
    },
    data() {
      return {
        currentInspectionId: '123456' // 示例巡检点ID
      }
    },
    mounted() {
      // 模拟切换巡检点
      this.$refs.pointPlan.refresh()
      
      // 示例:设置筛选条件
      this.$refs.pointPlan.setPlanUserName('张三')
      this.$refs.pointPlan.setDateRange('2023-01-01', '2023-12-31')
    }
  }
  </script>