南昌市物联网技防平台-前端
shuishen
2021-04-21 2de3b42e64456650740bd4ce9a013f196b3e693e
视频录取开始位置更换
1 files modified
53 ■■■■ changed files
src/page/index/logo.vue 53 ●●●● patch | view | raw | blame | history
src/page/index/logo.vue
@@ -385,31 +385,7 @@
          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) => {
                    axios({
                      method: "post",
                      url: `/api/blade-jfpts/rvideo/rVoids`,
                      params: {
                        url: result.data.data.flv,
                      },
                    }).then((resdata) => {});
                  });
              });
            if (
              response.data.data[0].waringType == "紧急求救" &&
              response.data.data[0].alarmId == userId
@@ -866,8 +842,35 @@
    },
    onDialogTableVisible() {
      var that = this;
      Recorder.getPermission().then(() => {});
      this.videoConversationReal = true;
      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/rVoids`,
                params: {
                  url: result.data.data.flv,
                },
              }).then((resdata) => {});
            });
        });
    },
  },
};