diff --git a/src/api/model/ecm.js b/src/api/model/ecm.js index 4dc3b15a..15841e4d 100644 --- a/src/api/model/ecm.js +++ b/src/api/model/ecm.js @@ -67,4 +67,43 @@ export default { } }, } + , + vchannel:{ + list: { + name: "获取", + req: async function(data){ + return await http.get( + `${config.API_URL}/ecm/algo_vchannel/`, + data + ); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/ecm/algo_vchannel/`, + data); + } + } + , + creates: { + name: "批量创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/ecm/algo_vchannel/creates/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id, data){ + return await http.delete( + `${config.API_URL}/ecm/algo_vchannel/${id}/`, + data); + } + }, + } + + } \ No newline at end of file diff --git a/src/api/model/third.js b/src/api/model/third.js new file mode 100644 index 00000000..0ee19e60 --- /dev/null +++ b/src/api/model/third.js @@ -0,0 +1,17 @@ +import config from "@/config" +import http from "@/utils/request" + +export default { + tdevice: { + list: { + name: "三方喇叭接口", + req: async function(data){ + return await http.get( + `${config.API_URL}/third/tdevice/`, + data + ); + } + }, + + }, +} diff --git a/src/config/route.js b/src/config/route.js index 90807ab5..8bf74806 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -94,6 +94,16 @@ const routes = [ }, "component": "ecm/notify_setting" }, + + { + "name": "algo", + "path": "/ecm/algo", + "meta": { + "title": "算法配置", + "icon": "el-icon-menu", + }, + "component": "ecm/algo" + } ] }, { diff --git a/src/views/am/access_form.vue b/src/views/am/access_form.vue index 8909c829..485d66a2 100644 --- a/src/views/am/access_form.vue +++ b/src/views/am/access_form.vue @@ -42,7 +42,7 @@ -