mutations.js 955 Bytes
import state from "./state";

export default {
  //更新全局baseURL
  updateBaseURL(state, newBaseURL) {
    state.baseURL = newBaseURL;
  },

  // 更新车型数据
  updateVehicleTree(state, list) {
    state.vehicleTree = list;
  },

  // 更新车型数据
  updateVehicleCarTree(state, list) {
    state.vehicleCarTree = list;
  },

  // 更新定制后的车型数据
  updateVehicleCustomTree(state, list) {
    state.vehicleCustomTree = list;
  },

  // 更新设备组合数据
  updateDeviceAssembly(state, list) {
    state.deviceAssembly = list;
  },

  // 更新组织树数据
  updateOrganizationTree(state, list) {
    state.organizationTree = list;
  },

  // 更新用户组织树数据
  updateUserOrganizationTree(state, list) {
    state.userVehicleTree = list;
  },

  // 系统管理-用户管理-指定数据-按组织授权-更新组织树
  updateTreeByOrganization(state,list){
    state.organizationUserTree = list
  }

};