Riku
2025-09-20 32eedf2857255cf29985ffc0cc73e75eccda39bf
src/api/fysp/sceneApi.js
@@ -19,8 +19,8 @@
    return $fysp
      .get(`scense/detail`, {
        params: {
          sceneId: sId,
        },
          sceneId: sId
        }
      })
      .then((res) => res.data);
  },
@@ -33,7 +33,7 @@
    const rb = {
      scense: scene ? scene : null,
      subScene: subScene ? JSON.stringify(subScene) : null,
      sceneDevice: sceneDevice ? sceneDevice : null,
      sceneDevice: sceneDevice ? sceneDevice : null
    };
    return $fysp
      .post(`scense/detail/update?${params}`, rb)
@@ -73,4 +73,30 @@
  updateScene(scene) {
    return $fysp.post('scense', scene).then((res) => res.data);
  },
  /**
   * 批量更新场景
   */
  updateSceneList(sceneList) {
    return $fysp.post('scense/update/list', sceneList).then((res) => res.data);
  },
  /**
   * 获取所有场景类型
   */
  getAllScene() {
    return $fysp.get('scense/alltype').then((res) => res.data);
  },
  /**
   * 查找场景
   */
  findScene(scene) {
    return $fysp.post('scense/search', scene).then((res) => res.data);
  },
  importScene(file) {
    return $fysp.post('scense/import', file).then((res) => res.data);
  }
};