diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index 1ed8c73d..6fca56e7 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -77,15 +77,48 @@ export default { } }, }, - //停机记录 + //异常记录 stlog: { - name: "停机记录列表", - req: async function(data){ - return await http.get( - `${config.API_URL}/wpm/stlog/`, - data - ); - } + list: { + name: "异常记录列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/wpm/stlog/`, + data + ); + } + }, + item: { + name: "获取详情", + req: async function(id){ + return await http.get( + `${config.API_URL}/wpm/stlog/${id}/` + ); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/wpm/stlog/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/wpm/stlog/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/wpm/sflog/${id}/`); + } + }, }, sflogexp: { list: { @@ -97,14 +130,6 @@ export default { ); } }, - item: { - name: "获取详情", - req: async function(id){ - return await http.get( - `${config.API_URL}/wpm/sflogexp/${id}/` - ); - } - }, update: { name: "更新", req: async function(id, data){ @@ -113,30 +138,6 @@ export default { data); } }, - create: { - name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/wpm/sflogexp/`, - data); - } - }, - delete: { - name: "删除", - req: async function(id){ - return await http.delete( - `${config.API_URL}/wpm/sflogexp/${id}/`); - } - }, - - cquery: { - name: "复杂查询", - req: async function(data){ - return await http.post( - `${config.API_URL}/wpm/sflogexp/cquery/`, - data); - } - }, }, mlog:{ list: { diff --git a/src/views/enm_rm/logDetail.vue b/src/views/enm_rm/logDetail.vue index 0ca33493..c3422d6d 100644 --- a/src/views/enm_rm/logDetail.vue +++ b/src/views/enm_rm/logDetail.vue @@ -177,7 +177,7 @@ + + +

异常详情

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
{ + that.$API.wpm.stlog.create.req(that.expForm).then(res=>{ that.isSaveing = false; that.visible = false; that.$message.success("操作成功");