zhangzengfei
2023-08-30 b2d0ac2db80c08783fd848933230618cc30d76a2
src/views/dataPush/components/point.vue
@@ -171,52 +171,7 @@
      query: {},
      inputText: "", //输入框内容
      cameraOptions: [],
      scene_nameOptions: [
        {
          value: "明火",
          label: "明火"
        },
        {
          value: "烟雾",
          label: "烟雾"
        },
        {
          value: "翻越围栏",
          label: "翻越围栏"
        },
        {
          value: "区域入侵",
          label: "区域入侵"
        },
        {
          value: "人员离岗",
          label: "人员离岗"
        },
        {
          value: "人员聚集",
          label: "人员聚集"
        },
        {
          value: "打电话",
          label: "打电话"
        },
        {
          value: "抽烟",
          label: "抽烟"
        },
        {
          value: "未佩戴安全帽",
          label: "未佩戴安全帽"
        },
        {
          value: "未穿工装",
          label: "未穿工装"
        },
        {
          value: "睡岗",
          label: "睡岗"
        }
      ],
      scene_nameOptions: [],
      isShowAdd: false, //是否展示新增弹窗
      ruleForm: {
        CameraName: "", // 摄像机名称
@@ -263,6 +218,10 @@
        {
          value: "370300480",
          label: "370300480/中汇"
        },
        {
          value: "370380545",
          label: "370380545/锦汇"
        }
      ]
    }
@@ -273,7 +232,8 @@
    let res = await camerasList(query)
    this.dataList = res.data
    this.total = res.total
    this.aaaaa()
    this.scene_nameOptions = this.Constants.sceneNameOptions
    this.pageInit()
  },
  methods: {
@@ -330,7 +290,7 @@
      this.ruleForm.updatedAt = row.updatedAt
      this.ruleForm.id = row.id
    },
    async aaaaa() {
    async pageInit() {
      // 进入页面前的初始化
      let res = await camerasConfig()
      // 总开关