This commit is contained in:
仲么了
2024-01-09 13:49:21 +08:00
parent 1d4bc5d442
commit 300d34c1bf
15 changed files with 655 additions and 224 deletions

View File

@@ -15,3 +15,11 @@ export function getAreaList() {
method: 'POST'
})
}
// 设备列表
export function getDeviceTree() {
return createAxios({
url: '/cs-device-boot/csLedger/deviceTree',
method: 'POST'
})
}

View File

@@ -0,0 +1,17 @@
import createAxios from '@/utils/request'
// 装置基础数据和模板数据
export function getDeviceData(deviceId: string, type: string, lineId = '') {
let form = new FormData()
form.append('deviceId', deviceId)
form.append('lineId', lineId)
form.append('type', type)
return createAxios({
url: '/cs-device-boot/EquipmentDelivery/deviceData',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: form
})
}

View File

@@ -0,0 +1,15 @@
import createAxios from '@/utils/request'
// 根据数据集获取指标数据
export function getTargetById(id: string) {
let form = new FormData()
form.append('id', id)
return createAxios({
url: '/cs-device-boot/csDataArray/getTargetById',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: form
})
}

View File

@@ -0,0 +1,15 @@
import createAxios from '@/utils/request'
// 查询分组
export function getGroup(dataSet: string) {
let form = new FormData()
form.append('dataSet', dataSet)
return createAxios({
url: '/cs-device-boot/csGroup/getGroup',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: form
})
}

View File

@@ -0,0 +1,9 @@
import createAxios from '@/utils/request'
// 设备列表
export function getDeviceTree() {
return createAxios({
url: '/cs-device-boot/csLedger/deviceTree',
method: 'POST'
})
}

View File

@@ -0,0 +1,42 @@
import createAxios from '@/utils/request'
// 字典树接口
export function queryByCode(code: string) {
let form = new FormData()
form.append('code', code)
return createAxios({
url: '/system-boot/dictTree/queryByCode',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: form
})
}
// 字典树接口通过code
export function queryCsDictTree(pid: string) {
let form = new FormData()
form.append('pid', pid)
return createAxios({
url: '/system-boot/dictTree/query',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: form
})
}
// 字典树接口通过id
export function queryByid(id: string) {
let form = new FormData()
form.append('id', id)
return createAxios({
url: '/system-boot/dictTree/queryByid',
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data: form
})
}