diff --git a/src/api/model/ofm.js b/src/api/model/ofm.js index e55e9dcd..86b78dc1 100644 --- a/src/api/model/ofm.js +++ b/src/api/model/ofm.js @@ -288,4 +288,41 @@ export default { } } }, + patentinfo: { + list: { + url: `${config.API_URL}/ofm/patentinfo/`, + name: "宣传报道列表", + req: async function(data){ + return await http.get(this.url, data); + } + }, + item: { + name: "宣传报道详情", + req: async function(id){ + return await http.get( `${config.API_URL}/ofm/patentinfo/${id}/`); + } + }, + create: { + url: `${config.API_URL}/ofm/patentinfo/`, + name: "创建宣传报道", + req: async function(data){ + return await http.post(this.url, data); + } + }, + update: { + name: "删除宣传报道", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/ofm/patentinfo/${id}/`, + data + ); + } + }, + delete: { + name: "删除宣传报道", + req: async function(id){ + return await http.delete(`${config.API_URL}/ofm/patentinfo/${id}/`); + } + } + }, } diff --git a/src/config/route.js b/src/config/route.js index 5fc33d75..8f84d9e7 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -100,6 +100,7 @@ const routes = [ }, component: "home/enm_home_ly", }, + { name: "dashboard_gx", path: "/dashboard_gx", diff --git a/src/views/bigScreen/index_enm_bh.vue b/src/views/bigScreen/index_enm_bh.vue index 61536270..1d885563 100644 --- a/src/views/bigScreen/index_enm_bh.vue +++ b/src/views/bigScreen/index_enm_bh.vue @@ -26,7 +26,7 @@
- 本月煤粉产量
+ 本月出磨煤粉量