diff --git a/common/api/device.js b/common/api/device.js
index 47efd77..5b1e4a7 100644
--- a/common/api/device.js
+++ b/common/api/device.js
@@ -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,
},
})
-}
\ No newline at end of file
+}
+
+// 设备查询通过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,
+ },
+ })
+}
diff --git a/common/api/dictionary.js b/common/api/dictionary.js
index f0801e0..d5bb284 100644
--- a/common/api/dictionary.js
+++ b/common/api/dictionary.js
@@ -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',
- });
-}
\ No newline at end of file
+ })
+}
+
+// 字典树接口通过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: '',
+ },
+ })
+}
diff --git a/components/Cn-page/Cn-page.vue b/components/Cn-page/Cn-page.vue
index a76c835..cb34c77 100644
--- a/components/Cn-page/Cn-page.vue
+++ b/components/Cn-page/Cn-page.vue
@@ -7,7 +7,7 @@