wenlele
3 years ago
6 changed files with 255 additions and 37 deletions
@ -1,27 +1,54 @@ |
|||
'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', |
|||
export function getMembers(orgId) { |
|||
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', |
|||
export function getNvr(query) { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "get", |
|||
dispatch: dispatch, |
|||
actionType: 'GET_NVR', |
|||
query:query, |
|||
actionType: "GET_NVR", |
|||
query: query, |
|||
url: `${ApiTable.getNvr}`, |
|||
msg: { option: '获取nvr列表信息' }, |
|||
reducer: { name: 'equipmentWarehouseNvr' } |
|||
msg: { option: "获取nvr列表信息" }, |
|||
reducer: { name: "equipmentWarehouseNvr" }, |
|||
}); |
|||
} |
|||
|
|||
export function addchangeNvr(data) { |
|||
return (dispatch) => |
|||
basicAction({ |
|||
type: "post", |
|||
dispatch: dispatch, |
|||
data, |
|||
actionType: "ADD_CHANGE_NVR", |
|||
url: `${ApiTable.nvr}`, |
|||
msg: { option: "添加/修改" }, |
|||
}); |
|||
} |
|||
|
|||
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