Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
dc4c771a
Commit
dc4c771a
authored
Jul 24, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oko
parent
d892fcc8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
151 additions
and
204 deletions
+151
-204
api.js
pages/exception/api.js
+2
-1
detail.vue
pages/exception/detail.vue
+1
-1
index.vue
pages/exception/index.vue
+147
-201
config.js
static/config.js
+1
-1
No files found.
pages/exception/api.js
View file @
dc4c771a
import
Api
from
'@/plugins/request'
import
Api
from
'@/plugins/request'
export
default
{
export
default
{
index
:
`
${
systemUrl
}
runlog/paged`
,
index
:
`
${
systemUrl
}
/
runlog/paged`
,
paged
(
params
){
paged
(
params
){
return
Api
.
post
(
`
${
systemUrl
}
/runlog/paged`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/runlog/paged`
,
params
);
},
},
...
@@ -15,6 +15,7 @@ export default {
...
@@ -15,6 +15,7 @@ export default {
},
},
delete
(
id
)
{
delete
(
id
)
{
return
Api
.
delete
(
`
${
systemUrl
}
/runlog/delete`
,{
params
:{
id
:
id
}});
return
Api
.
delete
(
`
${
systemUrl
}
/runlog/delete`
,{
params
:{
id
:
id
}});
// return Api.post(`${systemUrl}/runlog/delete`,{params:{id:id}});
},
},
deletes
(
params
)
{
deletes
(
params
)
{
return
Api
.
post
(
`
${
systemUrl
}
/runlog/batchdelete`
,
params
);
return
Api
.
post
(
`
${
systemUrl
}
/runlog/batchdelete`
,
params
);
...
...
pages/exception/detail.vue
View file @
dc4c771a
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
eid
:
Number
eid
:
Number
},
},
mounted
()
{
mounted
()
{
if
(
this
.
eid
>
0
)
{
if
(
this
.
eid
)
{
this
.
load
(
this
.
eid
);
this
.
load
(
this
.
eid
);
}
}
},
},
...
...
pages/exception/index.vue
View file @
dc4c771a
<
template
>
<
template
>
<div>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
><template
slot=
"easySearch"
><Form
ref=
"formInline"
:model=
"easySearch"
inline
><FormItem
prop=
"keys"
><Input
placeholder=
"请输入关键字登录账号/租户编号"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<template
slot=
"easySearch"
>
<FormItem><Button
type=
"primary"
@
click=
"search"
>
查询
</Button></FormItem>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
</Form></
template
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入关键字登录账号/租户编号"
v-width=
"260"
v-model=
"easySearch.keys.value"
/>
</FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
</FormItem>
</Form>
</
template
>
<
template
slot=
"searchForm"
>
<
template
slot=
"searchForm"
>
<Search
/>
<Search
/>
</
template
>
</
template
>
...
@@ -24,36 +16,30 @@
...
@@ -24,36 +16,30 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
'./api'
import
Search
from
"./search"
;
import
Search
from
'./search'
export
default
{
export
default
{
name
:
"list"
,
name
:
'list'
,
components
:
{
components
:{
Search
Search
},
},
head
:
{
head
:
{
title
:
"系统异常日志"
,
title
:
"系统异常日志"
,
author
:
"henq"
,
author
:
"henq"
,
description
:
"run_log 7/15/2020 11:01:01 AM"
description
:
"run_log 7/23/2020 10:55:35 AM"
,
},
},
data
()
{
data
()
{
return
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
,
easySearch
:
{
easySearch
:
{
keys
:
{
op
:
"loginName,tanentCode"
,
value
:
null
}
keys
:{
op
:
"loginName,tanentCode"
,
value
:
null
}
},
},
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
detail
:
null
,
detail
:
null
,
curId
:
0
,
curId
:
0
,
columns
:
[
columns
:
[
{
{
key
:
"id"
,
title
:
this
.
$t
(
"id"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
key
:
"id"
,
title
:
this
.
$t
(
"id"
),
hide
:
true
,
align
:
"left"
,
high
:
true
},
// { key:"creationTime",title:this.l("creationTime") ,align:"left" ,high:true },
// { key:"creationTime",title:this.l("creationTime") ,align:"left" ,high:true },
// { key:"creatorUserId",title:this.l("creatorUserId") ,align:"left" ,high:true },
// { key:"creatorUserId",title:this.l("creatorUserId") ,align:"left" ,high:true },
// { key:"lastModificationTime",title:this.l("lastModificationTime") ,align:"left" ,high:true },
// { key:"lastModificationTime",title:this.l("lastModificationTime") ,align:"left" ,high:true },
...
@@ -61,157 +47,117 @@ export default {
...
@@ -61,157 +47,117 @@ export default {
// { key:"isDeleted",title:this.l("isDeleted") ,align:"left" ,high:true },
// { key:"isDeleted",title:this.l("isDeleted") ,align:"left" ,high:true },
// { key:"deletionTime",title:this.l("deletionTime") ,align:"left" ,high:true },
// { key:"deletionTime",title:this.l("deletionTime") ,align:"left" ,high:true },
// { key:"deleterUserId",title:this.l("deleterUserId") ,align:"left" ,high:true },
// { key:"deleterUserId",title:this.l("deleterUserId") ,align:"left" ,high:true },
{
key
:
"level"
,
title
:
this
.
l
(
"level"
)
,
align
:
"left"
,
high
:
true
,
width
:
100
},
{
key
:
"requestUrl"
,
title
:
this
.
l
(
"requestUrl"
)
,
align
:
"left"
,
width
:
300
,
high
:
true
,
tooltip
:
true
},
// { key:"messageTemplate",title:this.l("messageTemplate") ,align:"left" ,high:true },
{
key
:
"renderedMessage"
,
title
:
this
.
l
(
"renderedMessage"
)
,
align
:
"left"
,
high
:
true
,
tooltip
:
true
},
{
key
:
"timestamp"
,
title
:
this
.
l
(
"timestamp"
)
,
align
:
"left"
,
high
:
true
,
width
:
200
},
{
key
:
"clientIpAddress"
,
title
:
this
.
l
(
"clientIpAddress"
)
,
align
:
"left"
,
width
:
150
,
high
:
true
},
{
key
:
"loginName"
,
title
:
this
.
l
(
"loginName"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
width
:
150
},
{
key
:
"tanentCode"
,
title
:
this
.
l
(
"tanentCode"
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
width
:
80
},
{
key
:
"host"
,
title
:
this
.
l
(
"host"
)
,
align
:
"left"
,
hide
:
true
,
high
:
true
},
// { key:"status",title:this.l("status") ,align:"left" ,high:true },
{
key
:
"requestParam"
,
title
:
this
.
l
(
"requestParam"
)
,
hide
:
true
,
align
:
"left"
,
high
:
true
},
// { key:"exception",title:this.l("exception") ,align:"left" ,high:true },
{
{
key
:
"timestamp"
,
title
:
'操作'
,
title
:
this
.
l
(
"timestamp"
),
key
:
'action'
,
align
:
"left"
,
high
:
true
},
{
key
:
"level"
,
title
:
this
.
l
(
"level"
),
align
:
"left"
,
high
:
true
},
{
key
:
"messageTemplate"
,
title
:
this
.
l
(
"messageTemplate"
),
align
:
"left"
,
high
:
true
},
{
key
:
"renderedMessage"
,
title
:
this
.
l
(
"renderedMessage"
),
align
:
"left"
,
high
:
true
},
{
key
:
"clientIpAddress"
,
title
:
this
.
l
(
"clientIpAddress"
),
hide
:
true
,
align
:
"left"
,
high
:
true
},
{
key
:
"loginName"
,
title
:
this
.
l
(
"loginName"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"tanentCode"
,
title
:
this
.
l
(
"tanentCode"
),
align
:
"left"
,
easy
:
true
,
high
:
true
},
{
key
:
"host"
,
title
:
this
.
l
(
"host"
),
align
:
"left"
,
high
:
true
},
{
key
:
"status"
,
title
:
this
.
l
(
"status"
),
align
:
"left"
,
high
:
true
},
{
key
:
"requestUrl"
,
title
:
this
.
l
(
"requestUrl"
),
align
:
"left"
,
high
:
true
},
{
key
:
"requestParam"
,
title
:
this
.
l
(
"requestParam"
),
align
:
"left"
,
high
:
true
},
{
key
:
"exception"
,
title
:
this
.
l
(
"exception"
),
align
:
"left"
,
high
:
true
},
{
title
:
"操作"
,
key
:
"action"
,
width
:
140
,
width
:
140
,
align
:
"center"
,
align
:
'center'
,
render
:
(
h
,
params
)
=>
{
render
:
(
h
,
params
)
=>
{
return
h
(
"div"
,
{
class
:
"action"
},
[
return
h
(
'div'
,
{
class
:
"action"
},
[
h
(
h
(
'op'
,
{
attrs
:
{
oprate
:
'detail'
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
'查看'
),
"op"
,
{
attrs
:
{
oprate
:
"detail"
},
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
}
},
"查看"
),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
//h('op', { attrs: { oprate: 'copy' }, on: { click: () => this.copy(params.row.id) } }, '克隆'),
// h('op', { attrs: { oprate: 'edit'}, on: { click: () => this.edit(params.row.id) } }, '编辑'),
// h('op', { attrs: { oprate: 'edit'}, on: { click: () => this.edit(params.row.id) } }, '编辑'),
h
(
h
(
'op'
,
{
attrs
:
{
oprate
:
'delete'
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
'删除'
)
"op"
,
])
{
attrs
:
{
oprate
:
"delete"
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
}
},
"删除"
)
]);
}
}
}
},
]
]
}
;
}
},
},
mounted
()
{
mounted
(){
console
.
log
(
this
);
console
.
log
(
this
);
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
methods
:
{
methods
:{
ok
()
{
ok
()
{
this
.
$refs
.
grid
.
load
();
this
.
$refs
.
grid
.
load
()
this
.
modal
=
false
;
this
.
modal
=
false
this
.
curId
=
0
;
this
.
curId
=
0
;
},
},
search
()
{
search
()
{
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
)
},
},
add
()
{
add
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
title
=
"新增"
;
this
.
title
=
"新增"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
copy
(
id
)
{
copy
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"克隆"
;
this
.
title
=
"克隆"
;
this
.
detail
=
()
=>
import
(
"./add"
);
this
.
detail
=
()
=>
import
(
'./add'
)
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
view
(
id
)
{
view
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"详情"
;
this
.
title
=
"详情"
;
this
.
detail
=
()
=>
import
(
"./detail"
);
this
.
detail
=
()
=>
import
(
'./detail'
)
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
edit
(
id
)
{
edit
(
id
)
{
this
.
curId
=
id
;
this
.
curId
=
id
;
this
.
title
=
"编辑"
;
this
.
title
=
"编辑"
;
this
.
detail
=
()
=>
import
(
"./edit"
);
this
.
detail
=
()
=>
import
(
'./edit'
)
this
.
modal
=
true
;
this
.
modal
=
true
;
},
},
remove
(
id
)
{
remove
(
id
)
{
Api
.
delete
(
id
).
then
(
r
=>
{
Api
.
delete
(
id
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$refs
.
grid
.
load
();
this
.
$refs
.
grid
.
load
();
this
.
$Message
.
success
(
"删除成功"
);
this
.
$Message
.
success
(
'删除成功'
)
}
}
});
})
},
},
cancel
()
{
cancel
()
{
this
.
curId
=
0
;
this
.
curId
=
0
;
this
.
modal
=
false
;
this
.
modal
=
false
},
},
l
(
key
)
{
l
(
key
)
{
/*
/*
run_log:{
creationTime:'创建时间',
creatorUserId:'创建人',
lastModificationTime:'更新时间',
lastModifierUserId:'更新人',
isDeleted:'删除人',
deletionTime:'删除时间',
deleterUserId:'删除人',
timestamp:'异常发生时间',
level:'日志级别',
messageTemplate:'消息模板',
renderedMessage:'异常信息',
clientIpAddress:'客户端IP',
loginName:'登录账号',
tanentCode:'租户编号',
host:'主机IP',
status:'状态',
requestUrl:'服务地址',
requestParam:'参数',
exception:'异常详细信息',
}
*/
*/
let
vkey
=
"run_log"
+
"."
+
key
;
let
vkey
=
"run_log"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
return
this
.
$t
(
vkey
)
||
key
}
}
}
}
}
;
}
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
</
style
>
</
style
>
\ No newline at end of file
static/config.js
View file @
dc4c771a
...
@@ -15,7 +15,7 @@ window.designUrl = `http://${address}:10000/process`; // 工艺规程
...
@@ -15,7 +15,7 @@ window.designUrl = `http://${address}:10000/process`; // 工艺规程
window
.
PlanUrl
=
`http://
${
address
}
:10000/plan`
;
//订单
window
.
PlanUrl
=
`http://
${
address
}
:10000/plan`
;
//订单
window
.
bugUrl
=
`http://
${
address
}
:10000/bug`
;
//bug
window
.
bugUrl
=
`http://
${
address
}
:10000/bug`
;
//bug
window
.
fileUrl
=
`http://
${
address
}
:10080/fileServer`
;
//文件上传url
window
.
fileUrl
=
`http://
${
address
}
:10080/fileServer`
;
//文件上传url
window
.
fileUrlDown
=
`http://
${
address
}
`
;
//文件下载url
window
.
fileUrlDown
=
`http://
file.mes88.cn
`
;
//文件下载url
window
.
resourceUrl
=
`http://
${
address
}
:10000/resource`
;
// 制造资源地址
window
.
resourceUrl
=
`http://
${
address
}
:10000/resource`
;
// 制造资源地址
window
.
workflowUrl
=
`http://
${
address
}
:10000/workflow`
;
// 工作流地址
window
.
workflowUrl
=
`http://
${
address
}
:10000/workflow`
;
// 工作流地址
window
.
certificateUrl
=
`http://
${
address
}
:10000/qms`
;
//质量
window
.
certificateUrl
=
`http://
${
address
}
:10000/qms`
;
//质量
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment