diff --git a/src/api/model/enm.js b/src/api/model/enm.js index d562fadd..44ef9bae 100644 --- a/src/api/model/enm.js +++ b/src/api/model/enm.js @@ -3,6 +3,64 @@ import http from "@/utils/request" /*EM接口*/ export default { // 测点 + xscript: { + list: { + name: "脚本", + req: async function(data){ + return await http.get( + `${config.API_URL}/enm/xscript/`, + data + ); + } + }, + item: { + name: "获取详情", + req: async function(id){ + return await http.get( + `${config.API_URL}/enm/xscript/${id}/` + ); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/enm/xscript/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/enm/xscript/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/enm/xscript/${id}/`); + } + }, + toggle: { + name: "启用/禁用", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/enm/xscript/${id}/toggle/`, + data); + } + }, + change_data: { + name: "变更数据", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/enm/xscript/${id}/change_data/`, + data); + } + } + }, mpoint: { mplog: { name: "测点原始记录", diff --git a/src/config/route.js b/src/config/route.js index 6d75f24a..b338df44 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -2721,7 +2721,7 @@ const routes = [ { path: "/fac_cal/mpointstat", meta: { - title: "计算数据", + title: "计算结果", // icon: "el-icon-postcard", type: "menu", perms: ["mpointstat"], diff --git a/src/views/fac_cal/caltask.vue b/src/views/fac_cal/caltask.vue new file mode 100644 index 00000000..371934de --- /dev/null +++ b/src/views/fac_cal/caltask.vue @@ -0,0 +1,40 @@ + + \ No newline at end of file diff --git a/src/views/fac_cal/mpointstat.vue b/src/views/fac_cal/mpointstat.vue new file mode 100644 index 00000000..c3d8a9f8 --- /dev/null +++ b/src/views/fac_cal/mpointstat.vue @@ -0,0 +1,221 @@ + + + + diff --git a/src/views/fac_cal/taskresult.vue b/src/views/fac_cal/taskresult.vue new file mode 100644 index 00000000..e02bee2c --- /dev/null +++ b/src/views/fac_cal/taskresult.vue @@ -0,0 +1,60 @@ + + \ No newline at end of file diff --git a/src/views/fac_cal/xscript.vue b/src/views/fac_cal/xscript.vue new file mode 100644 index 00000000..80fc545e --- /dev/null +++ b/src/views/fac_cal/xscript.vue @@ -0,0 +1,224 @@ + +