diff --git a/src/api/infoApi.js b/src/api/infoApi.js index 545bbdd..82a1c16 100644 --- a/src/api/infoApi.js +++ b/src/api/infoApi.js @@ -57,7 +57,7 @@ const infoApi = { }, // 更新模板 editMb(params) { - return postPBRequest('/template', params, 55200) + return postPBRequest('/template', params, 53200) }, // 删除模板 delMb(params) { @@ -67,6 +67,10 @@ const infoApi = { addP(params) { return postPBRequest('/template', params, 53110, params.template_name) }, + // 编辑点位 + editP(params) { + return postPBRequest('/template', params, 53210, params.template_name) + }, // 获取模板支持类型 getTemplateType(params) { return postPBRequest('/template', params, 53001) @@ -110,6 +114,10 @@ const infoApi = { addSet(params) { return postPBRequest('/driver', params, 54110, params.driver_name) }, + // 更新设备 + editSet(params) { + return postPBRequest('/driver', params, 54210, params.driver_name) + }, // 获取设备列表 getSet(params) { diff --git a/src/components/AddPoint copy.vue b/src/components/AddPoint copy.vue deleted file mode 100644 index 65f707a..0000000 --- a/src/components/AddPoint copy.vue +++ /dev/null @@ -1,251 +0,0 @@ - - - diff --git a/src/components/AddPoint.vue b/src/components/AddPoint.vue index 57519d1..bf68c88 100644 --- a/src/components/AddPoint.vue +++ b/src/components/AddPoint.vue @@ -2,10 +2,10 @@ - + - + @@ -20,6 +20,17 @@ + + + + + + + + + + +