| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- import request from '@/utils/request'
- // 查询列表【请填写功能名称】
- export function listDevice(query) {
- return request({
- url: '/system/device/list',
- method: 'get',
- params: query
- })
- }
- export function listIdName(query) {
- return request({
- url: '/system/device/listidname',
- method: 'get',
- params: query
- })
- }
- // 查询详细【请填写功能名称】
- export function getDevice(id) {
- return request({
- url: '/system/device/' + id,
- method: 'get'
- })
- }
- // 查询主机
- export function getHostByOrgId(orgId) {
- return request({
- url: '/system/device/getHostByOrgId/' + orgId.id,
- method: 'get'
- })
- }
- export function downInCharge() {
- return request({
- url: '/system/device/downInChargeOfTemplate',
- method: 'get'
- })
- }
- // 新增【请填写功能名称】
- export function addDevice(data) {
- return request({
- url: '/system/device',
- method: 'post',
- data: data
- })
- }
- // 修改【请填写功能名称】
- export function updateDevice(data) {
- return request({
- url: '/system/device',
- method: 'put',
- data: data
- })
- }
- // 删除【请填写功能名称】
- export function delDevice(id) {
- return request({
- url: '/system/device/' + id,
- method: 'delete'
- })
- }
- // 查询资产字典
- export function getDictTree() {
- return request({
- url: '/system/dictionary/tree',
- method: 'get'
- })
- }
- // 查询资产字典
- export function getDictList() {
- return request({
- url: '/system/dictionary/list',
- method: 'get'
- })
- }
- // 查询资产字典
- export function getDictTreeByParentId(parentId) {
- return request({
- url: '/system/dictionary/getDictTreeByParentId',
- method: 'get',
- params: {parentId: parentId}
- })
- }
- // 检查是否存在已经有主机同步子系统上来
- export function checkExitSyncSubSystem(orgId, deviceType, deviceId) {
- return request({
- url: '/system/device/checkExitSyncSubSystem',
- method: 'get',
- params: {orgId: orgId, deviceType: deviceType, deviceId: deviceId}
- })
- }
|