yuan_yi
3 years ago
8 changed files with 425 additions and 113 deletions
After Width: | Height: | Size: 3.7 KiB |
@ -1,15 +1,63 @@ |
|||
'use strict'; |
|||
"use strict"; |
|||
|
|||
import { basicAction } from '@peace/utils' |
|||
import { ApiTable } from '$utils' |
|||
import { basicAction } from "@peace/utils"; |
|||
import { ApiTable } from "$utils"; |
|||
|
|||
export function getMembers(orgId) { |
|||
return dispatch => basicAction({ |
|||
type: 'get', |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "get", |
|||
dispatch: dispatch, |
|||
actionType: 'GET_MEMBERS', |
|||
url: `${ApiTable.getEnterprisesMembers.replace('{enterpriseId}', orgId)}`, |
|||
msg: { error: '获取用户列表失败' }, |
|||
reducer: { name: 'members' } |
|||
actionType: "GET_MEMBERS", |
|||
url: `${ApiTable.getEnterprisesMembers.replace("{enterpriseId}", orgId)}`, |
|||
msg: { error: "获取用户列表失败" }, |
|||
reducer: { name: "members" }, |
|||
}); |
|||
} |
|||
|
|||
export function getNvr(query) { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "get", |
|||
dispatch: dispatch, |
|||
actionType: "GET_NVR", |
|||
query: query, |
|||
url: `${ApiTable.getNvr}`, |
|||
msg: { option: "获取nvr列表信息" }, |
|||
reducer: { name: "equipmentWarehouseNvr" }, |
|||
}); |
|||
} |
|||
export function delNvr(orgId) { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "del", |
|||
dispatch: dispatch, |
|||
actionType: "DEL_NVR", |
|||
url: `${ApiTable.delNvr.replace("{nvrId}", orgId)}`, |
|||
msg: { option: "删除NVR" }, |
|||
reducer: { name: "" }, |
|||
}); |
|||
} |
|||
export function addchangeNvr(data) { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "post", |
|||
dispatch: dispatch, |
|||
data, |
|||
actionType: "ADD_CHANGE_NVR", |
|||
url: `${ApiTable.nvr}`, |
|||
}); |
|||
} |
|||
|
|||
export function getVender() { |
|||
//获取设备厂商
|
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "get", |
|||
dispatch: dispatch, |
|||
actionType: "GET_VENDER", |
|||
url: `${ApiTable.getVender}`, |
|||
msg: { error: "获取设备厂商失败" }, |
|||
reducer: { name: "vender" }, |
|||
}); |
|||
} |
|||
|
@ -0,0 +1,6 @@ |
|||
.semi-radio-cardRadioGroup_checked .cloud{ |
|||
color: #1859C1; |
|||
} |
|||
.semi-radio-cardRadioGroup_checked .voice{ |
|||
color: #1859C1; |
|||
} |
Loading…
Reference in new issue