南昌市物联网技防平台-前端
zengh
2021-03-26 847d39af8b11a4c1f22e52ab3eb6bdcb82c8dc1a
src/page/index/logo.vue
@@ -384,12 +384,41 @@
          if (response.data.data.length > 0) {
            that.deviceId = response.data.data[0].id;
            that.form = response.data.data[0];
            newAxios
              .post(
                "/api_control",
                {},
                {
                  params: {
                    param: JSON.stringify({ PktType: "GetAccessToken" }),
                  },
                }
              )
              .then((res) => {
                newAxios
                  .get(
                    `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${that.form.serialNumber}&chl=${that.form.channelNumber}`
                  )
                  .then((result) => {
                    console.log(result)
                    axios({
                      method: "post",
                      url: `/api/blade-jfpts/rvideo/rVoid`,
                      timeout: 600000,
                      params: {
                        sourcePath: result.data.data.flv,
                        jid: that.form.id,
                      },
                    }).then((resdata) => {});
                  });
              });
            if (
              response.data.data[0].waringType == "紧急求救" &&
              response.data.data[0].alarmId == userId
            ) {
              response.data.data[0].waringType = "一键求助";
              that.form = response.data.data[0];
              that.peopleList = [
                { label: that.form.oneContacts, value: that.form.onePhone },
                { label: that.form.twoContacts, value: that.form.twoPhone },
@@ -399,34 +428,6 @@
              that.peoplePhone = that.form.onePhone;
              that.dialogTableVisible = true;
              // Recorder.getPermiRecorderssion().then(() => {});
              newAxios
                .post(
                  "/api_control",
                  {},
                  {
                    params: {
                      param: JSON.stringify({ PktType: "GetAccessToken" }),
                    },
                  }
                )
                .then((res) => {
                  newAxios
                    .get(
                      `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${that.form.serialNumber}&chl=${that.form.channelNumber}`
                    )
                    .then((result) => {
                      axios({
                        method: "post",
                        url: `/api/blade-jfpts/rvideo/rVoid`,
                        timeout: 600000,
                        params: {
                          sourcePath: result.data.data.flv,
                          jid: that.form.id,
                        },
                      }).then((resdata) => {});
                    });
                });
              that.ofX = null;
              that.ofY = null;