zhangzengfei
2021-02-01 3a5d29e6dffa18e5e44579360e4c278acc3b8423
完善bhomebus 的 api 接口
1个文件已删除
9个文件已修改
805 ■■■■■ 已修改文件
src/api/baseLibrary.ts 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/camera.ts 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/localVedio.ts 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/scene.ts 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cameraAccess/components/CameraInfo.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cameraAccess/components/localSeparate.vue 729 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cameraAccess/index/App.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/library/components/baseList.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/library/components/carList.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/library/components/personList.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/baseLibrary.ts
@@ -6,9 +6,9 @@
 */
export const getSyncTables = (query: any) => {
  return request({
    url: "/data/api-v/dbtable/queryDbTables/1",
    url: "/data/api-v/dbtable/queryDbTables",
    method: "post",
    data: query
    data: { isSync: 1 }
  });
};
@@ -18,9 +18,9 @@
 */
export const getLocalTables = (query: any) => {
  return request({
    url: "/data/api-v/dbtable/queryDbTables/2",
    url: "/data/api-v/dbtable/queryDbTables",
    method: "post",
    data: query
    data: { isSync: 2 }
  });
};
src/api/camera.ts
@@ -29,36 +29,15 @@
  return request({
    url: "/data/api-v/camera/show",
    method: "get",
    params: { cid: id }
    params: { id: id }
  });
};
export const delCamera = (id: string) => {
  return request({
    url: "/data/api-v/camera/del/" + id,
    method: "delete"
  });
};
export const fetchCameraTasks = (id: string) => {
  return request({
    url: "/data/api-v/camera/task/" + id,
    method: "get"
  });
};
export const fetchCameraRulesByTask = (query: any) => {
  return request({
    url: "/data/api-v/camera/getRulesByCameraAndTask",
    url: "/data/api-v/camera/del",
    method: "get",
    params: query
  });
};
export const deleteCameraTask = (cameraId, taskId) => {
  return request({
    url: "/data/api-v/camera/delTask/" + cameraId + "/" + taskId,
    method: "delete"
    params: { id: id }
  });
};
@@ -96,8 +75,9 @@
export const updateSnapshot = (cameraId: string) => {
  return request({
    url: "/data/api-v/camera/updateSnapshotUrl/" + cameraId,
    method: "get"
    url: "/data/api-v/camera/updateSnapshotUrl",
    method: "get",
    params: { cameraId: cameraId }
  });
};
src/api/localVedio.ts
@@ -74,8 +74,9 @@
export const getDirDetails = (id: string) => {
  return request({
    url: "/data/api-v/fileStack/show/" + id,
    method: "get"
    url: "/data/api-v/fileStack/show",
    method: "get",
    params: { id: id }
  });
};
@@ -89,8 +90,9 @@
export const delDir = (id: string) => {
  return request({
    url: "/data/api-v/fileStack/delete/" + id,
    method: "delete"
    url: "/data/api-v/fileStack/delete",
    method: "delete",
    params: { id: id }
  });
};
src/api/scene.ts
@@ -57,7 +57,8 @@
export const deleteCameraScene = (id: any) => {
  return request({
    url: "/data/api-v/camera/rule/deleteGroup/" + id,
    method: "delete"
    url: "/data/api-v/camera/rule/deleteGroup",
    method: "get",
    params: { groupId: id }
  });
};
src/pages/cameraAccess/components/CameraInfo.vue
@@ -258,7 +258,6 @@
    document.addEventListener("visibilitychange", () => {
      this.visibilitychange();
    });
    debugger
    this.getSounds();
    this.eventAudio.addEventListener("ended", () => {
@@ -269,7 +268,7 @@
    getSounds() {
      getSoundList().then(res => {
        if (res.success) {
          this.soundList = res.data.list
          this.soundList = res.data;
        }
      }).catch(
        e => console.log(e)
@@ -337,8 +336,9 @@
              this.resolutionList = list
              this.sensors = res.data.sensors
            }
            this.$nextTick(() => {
              this.initFormData()
              this.initFormData();
              Object.assign(this.form, res.data)
              this.soundList.forEach(element => {
src/pages/cameraAccess/components/localSeparate.vue
File was deleted
src/pages/cameraAccess/index/App.vue
@@ -47,7 +47,6 @@
    this.TreeDataPool.readonly = false;
    this.TreeDataPool.gbReadonly = false;
    this.DataStackPool.readonly = false;
    debugger
  },
  methods: {
    getUrlKey() {
src/pages/library/components/baseList.vue
@@ -246,8 +246,8 @@
        cancelButtonClass: 'comfirm-class-cancle',
        confirmButtonClass: 'comfirm-class-sure'
      }).then(() => {
        fetch(`/data/api-v/dbtable/deleteDBtablesById/${id}`, {
          method: 'POST',
        fetch(`/data/api-v/dbtable/deleteDBtablesById?id=${id}`, {
          method: 'GET',
          headers: {
            'Content-Type': 'application/json',
            'Authorization': token
src/pages/library/components/carList.vue
@@ -694,8 +694,8 @@
        confirmButtonClass: "comfirm-class-sure"
      })
        .then(_ => {
          fetch(`/data/api-v/dbperson/deleteDbPersonById/${id}`, {
            method: "POST",
          fetch(`/data/api-v/dbperson/deleteDbPersonById?id=${id}`, {
            method: "GET",
            headers: {
              "Content-Type": "application/json",
              Authorization: token
src/pages/library/components/personList.vue
@@ -664,8 +664,8 @@
        confirmButtonClass: "comfirm-class-sure"
      })
        .then(_ => {
          fetch(`/data/api-v/dbperson/deleteDbPersonById/${id}`, {
            method: "POST",
          fetch(`/data/api-v/dbperson/deleteDbPersonById?id=${id}`, {
            method: "GET",
            headers: {
              "Content-Type": "application/json",
              Authorization: token
@@ -728,7 +728,7 @@
      this.BaseManageData.page = current;
      this.getPersonList();
    },
    handleSizeChange(val){
    handleSizeChange(val) {
      //this.pageSize = val;
      this.BaseManageData.size = val;
      this.getPersonList();