设备编辑

This commit is contained in:
仲么了
2023-08-02 09:10:45 +08:00
parent 77b4ff6f88
commit f798c64930
15 changed files with 817 additions and 95 deletions

View File

@@ -72,7 +72,7 @@ export const queryByTopoId = (id) => {
url: '/cs-device-boot/lineTemplate/queryByTopoId',
method: 'POST',
data: {
topoId:id,
topoId: id,
},
})
}
@@ -94,7 +94,7 @@ export const transferDevice = (id) => {
url: '/cs-device-boot/deviceUser/transfer',
method: 'POST',
data: {
eid:id,
eid: id,
},
})
}
@@ -106,7 +106,43 @@ export const deleteDevice = (id) => {
url: '/cs-device-boot/deviceUser/delete',
method: 'POST',
data: {
eid:id,
eid: id,
},
})
}
}
// 设备查询通过id获取
export const queryDeivceById = (id) => {
return request({
url: '/cs-device-boot/EquipmentDelivery/queryEquipmentById',
method: 'POST',
data: {
ids: id,
},
})
}
// 字典树接口通过id
export const queryByid = (id) => {
return request({
url: '/system-boot/dictTree/queryByid',
method: 'post',
data: {
id,
},
})
}
//设备修改监测点信息
export const updateDevice = (params) => {
return request({
url: '/cs-device-boot/lineTopologyDiagram/auditList',
method: 'POST',
header: {
'Content-Type': 'application/json',
},
data: {
pointList: params,
},
})
}

View File

@@ -1,5 +1,5 @@
import request from '../js/request';
import config from '../js/config';
import request from '../js/request'
import config from '../js/config'
export function queryDictData(dictTypeName) {
return request({
@@ -8,12 +8,64 @@ export function queryDictData(dictTypeName) {
data: {
dictTypeName,
},
});
})
}
export function queryDictDataCache(dictTypeName) {
return request({
url: '/system-boot/dictType/dictDataCache',
method: 'get',
});
}
})
}
// 字典树接口通过code
export const queryByCode = (code) => {
return request({
url: '/system-boot/dictTree/queryByCode',
method: 'post',
data: {
code,
},
})
}
// 字典树接口
export const queryCsDictTree = (pid) => {
return request({
url: '/system-boot/dictTree/query',
method: 'post',
data: {
pid,
},
})
}
// 字典树接口通过id
export const queryByid = (id) => {
return request({
url: '/system-boot/dictTree/queryByid',
method: 'post',
data: {
id,
},
})
}
// 程序版本
export const queryEdDataPage = () => {
return request({
url: '/cs-device-boot/edData/queryEdDataPage',
method: 'post',
header: {
'Content-Type': 'application/json;charset=UTF-8',
},
data: {
pageNum: 1,
devName: '',
devType: '',
pageSize: 999,
versionStartDate: '',
versionendDate: '',
},
})
}