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 { basicAction } from "@peace/utils"; |
||||
import { ApiTable } from '$utils' |
import { ApiTable } from "$utils"; |
||||
|
|
||||
export function getMembers (orgId) { |
export function getMembers(orgId) { |
||||
return dispatch => basicAction({ |
return (dispatch) => |
||||
type: 'get', |
basicAction({ |
||||
dispatch: dispatch, |
type: "get", |
||||
actionType: 'GET_MEMBERS', |
dispatch: dispatch, |
||||
url: `${ApiTable.getEnterprisesMembers.replace('{enterpriseId}', orgId)}`, |
actionType: "GET_MEMBERS", |
||||
msg: { error: '获取用户列表失败' }, |
url: `${ApiTable.getEnterprisesMembers.replace("{enterpriseId}", orgId)}`, |
||||
reducer: { name: 'members' } |
msg: { error: "获取用户列表失败" }, |
||||
|
reducer: { name: "members" }, |
||||
}); |
}); |
||||
} |
} |
||||
|
|
||||
export function getNvr (query) { |
export function getNvr(query) { |
||||
return dispatch => basicAction({ |
return (dispatch) => |
||||
type: 'get', |
basicAction({ |
||||
dispatch: dispatch, |
type: "get", |
||||
actionType: 'GET_NVR', |
dispatch: dispatch, |
||||
query:query, |
actionType: "GET_NVR", |
||||
url: `${ApiTable.getNvr}`, |
query: query, |
||||
msg: { option: '获取nvr列表信息' }, |
url: `${ApiTable.getNvr}`, |
||||
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