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
a2cb213b
Commit
a2cb213b
authored
Sep 26, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exception
parent
9d689af0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
265 additions
and
250 deletions
+265
-250
index.vue
pages/exception/index.vue
+265
-250
No files found.
pages/exception/index.vue
View file @
a2cb213b
<
template
>
<
template
>
<div>
<div>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
exportTitle=
"异常记录"
>
<template
slot=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
<FormItem
prop=
"keys"
>
<Input
placeholder=
"请输入关键字登录账号/租户编号"
v-model=
"easySearch.keys.value"
v-width=
"300"
/>
<Input
placeholder=
"请输入关键字登录账号/租户编号"
v-model=
"easySearch.keys.value"
v-width=
"300"
/>
</FormItem>
</FormItem>
<FormItem>
<FormItem>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
<Button
type=
"primary"
@
click=
"search"
>
查询
</Button>
...
@@ -22,8 +22,9 @@
...
@@ -22,8 +22,9 @@
<Modal
v-model=
"modal"
:title=
"title"
fullscreen
footer-hide
>
<Modal
v-model=
"modal"
:title=
"title"
fullscreen
footer-hide
>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
<component
:is=
"detail"
:eid=
"curId"
@
on-close=
"cancel"
@
on-ok=
"ok"
/>
</Modal>
</Modal>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"./api"
;
import
Api
from
"./api"
;
import
Search
from
"./search"
;
import
Search
from
"./search"
;
...
@@ -41,15 +42,17 @@ export default {
...
@@ -41,15 +42,17 @@ export default {
return
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
,
easySearch
:
{
easySearch
:
{
keys
:
{
op
:
"loginName,tanentCode"
,
value
:
null
},
keys
:
{
op
:
"loginName,tanentCode"
,
value
:
null
},
},
},
end
:
null
,
end
:
null
,
modal
:
false
,
modal
:
false
,
title
:
"新增"
,
title
:
"新增"
,
detail
:
null
,
detail
:
null
,
curId
:
0
,
curId
:
0
,
columns
:
[
columns
:
[{
{
key
:
"id"
,
key
:
"id"
,
title
:
this
.
$t
(
"id"
),
title
:
this
.
$t
(
"id"
),
hide
:
true
,
hide
:
true
,
...
@@ -140,22 +143,30 @@ export default {
...
@@ -140,22 +143,30 @@ export default {
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"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"detail"
},
oprate
:
"detail"
on
:
{
click
:
()
=>
this
.
view
(
params
.
row
.
id
)
},
},
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"
,
"op"
,
{
{
attrs
:
{
attrs
:
{
oprate
:
"delete"
},
oprate
:
"delete"
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
},
},
on
:
{
click
:
()
=>
this
.
remove
(
params
.
row
.
id
)
},
},
},
"删除"
"删除"
),
),
...
@@ -166,12 +177,15 @@ export default {
...
@@ -166,12 +177,15 @@ export default {
};
};
},
},
created
()
{
created
()
{
var
date
=
new
Date
().
getTime
()
-
24
*
60
*
60
*
1000
*
5
;
var
date
=
new
Date
().
getTime
()
-
24
*
60
*
60
*
1000
*
5
;
this
.
end
=
new
Date
(
date
);
this
.
end
=
new
Date
(
date
);
console
.
log
(
this
);
console
.
log
(
this
);
},
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
methods
:
{
methods
:
{
...
@@ -215,16 +229,16 @@ export default {
...
@@ -215,16 +229,16 @@ export default {
}
}
});
});
},
},
clear
()
{
clear
()
{
this
.
$Modal
.
confirm
({
this
.
$Modal
.
confirm
({
title
:
"确认"
,
title
:
"确认"
,
content
:
"确认要删除"
+
this
.
$u
.
toDate
(
this
.
end
)
+
"以前的数据吗"
,
content
:
"确认要删除"
+
this
.
$u
.
toDate
(
this
.
end
)
+
"以前的数据吗"
,
onOk
:()
=>
{
onOk
:
()
=>
{
Api
.
deleteAll
(
this
.
end
).
then
(
r
=>
{
Api
.
deleteAll
(
this
.
end
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"删除成功"
)
this
.
$Message
.
success
(
"删除成功"
)
this
.
$refs
.
grid
.
load
();
this
.
$refs
.
grid
.
load
();
}
else
{
}
else
{
this
.
$Message
.
error
(
"出现异常"
)
this
.
$Message
.
error
(
"出现异常"
)
}
}
})
})
...
@@ -263,13 +277,14 @@ export default {
...
@@ -263,13 +277,14 @@ export default {
return
this
.
$t
(
vkey
)
||
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
},
},
},
computed
:
{
computed
:
{
dis
()
{
dis
()
{
var
num
=
(
new
Date
().
getTime
()
-
this
.
end
.
getTime
())
/
(
1000
*
60
*
60
*
24
);
var
num
=
(
new
Date
().
getTime
()
-
this
.
end
.
getTime
())
/
(
1000
*
60
*
60
*
24
);
return
num
<
1
return
num
<
1
}
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
</
style
>
</
style
>
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