Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue3
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
张伯涛
91isoft_web_vue3
Commits
cd0c2a66
Commit
cd0c2a66
authored
Feb 19, 2024
by
张毅辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
操作日志
parent
1a16cc22
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
471 additions
and
17 deletions
+471
-17
index.ts
src/api/dict/index.ts
+5
-5
index.vue
src/views/monitor/loginInfo/index.vue
+10
-12
index.vue
src/views/monitor/operLog/index.vue
+456
-0
No files found.
src/api/dict/index.ts
View file @
cd0c2a66
...
...
@@ -24,7 +24,7 @@ export function getDictTypePage(
});
}
/** 查询字典数据列表*/
export
function
listData
(
query
)
{
export
function
listData
(
query
:
any
)
{
return
request
({
url
:
"/system/dict/data/list"
,
method
:
"get"
,
...
...
@@ -32,7 +32,7 @@ export function listData(query) {
});
}
export
function
listType
(
query
)
{
export
function
listType
(
query
:
any
)
{
return
request
({
url
:
"/system/dict/type/list"
,
method
:
"get"
,
...
...
@@ -40,7 +40,7 @@ export function listType(query) {
});
}
/** 获取字典选择框列表*/
export
function
selectDictType
(
dictType
)
{
export
function
selectDictType
(
dictType
:
any
)
{
return
request
({
url
:
"/system/dict/data/type/"
+
dictType
,
method
:
"get"
,
...
...
@@ -57,7 +57,7 @@ export function exportType(queryParams: DictTypeQuery) {
}
/** 修改字典类型*/
export
function
updateType
(
data
)
{
export
function
updateType
(
data
:
any
)
{
const
businessId
=
data
.
businessId
;
return
request
({
url
:
"/system/dict/type/update/"
+
businessId
,
...
...
@@ -67,7 +67,7 @@ export function updateType(data) {
});
}
/** 新增字典类型*/
export
function
addType
(
data
)
{
export
function
addType
(
data
:
any
)
{
return
request
({
url
:
"/system/dict/type/add"
,
method
:
"post"
,
...
...
src/views/monitor/loginInfo/index.vue
View file @
cd0c2a66
...
...
@@ -35,12 +35,12 @@ const queryParams = reactive({
username
:
""
,
loginTime
:
""
,
});
const
clearF
ro
m
=
reactive
({});
const
clearF
or
m
=
reactive
({});
const
exportRule
=
reactive
({
month
:
[{
required
:
true
,
message
:
"请选择月份"
,
trigger
:
"change"
}],
});
const
clearF
ro
mRef
=
ref
(
ElForm
);
const
clearF
or
mRef
=
ref
(
ElForm
);
const
exportFromRef
=
ref
(
ElForm
);
onMounted
(()
=>
{
...
...
@@ -109,7 +109,6 @@ function handleDelete(data) {
type
:
"warning"
,
})
.
then
(()
=>
{
// const id = this.ids.join(',')
const
id
=
data
;
const
query
=
{
deleteIds
:
id
,
...
...
@@ -117,7 +116,7 @@ function handleDelete(data) {
return
delLogininfo
(
query
);
})
.
then
(()
=>
{
this
.
getList
();
getList
();
ElMessage
.
success
(
"删除成功"
);
ids
.
value
=
[];
multiple
.
value
=
true
;
...
...
@@ -126,11 +125,11 @@ function handleDelete(data) {
}
function
clear
()
{
clearF
ro
mRef
.
value
.
validate
((
valid
)
=>
{
clearF
or
mRef
.
value
.
validate
((
valid
)
=>
{
if
(
valid
)
{
const
query
=
{
beginTime
:
clearF
ro
m
.
month
[
0
],
endTime
:
clearF
ro
m
.
month
[
1
],
beginTime
:
clearF
or
m
.
month
[
0
],
endTime
:
clearF
or
m
.
month
[
1
],
};
cleanLogininfo
(
query
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
...
...
@@ -148,7 +147,7 @@ function clear() {
/** 清空按钮操作 */
function
handleClean
()
{
clearVisible
.
value
=
true
;
Object
.
assign
(
clearF
ro
m
,
{});
Object
.
assign
(
clearF
or
m
,
{});
}
function
exportSubmit
()
{
...
...
@@ -169,7 +168,6 @@ function exportSubmit() {
document
.
body
.
removeChild
(
downloadElement
);
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
href
);
// 释放掉blob对象
exportVisible
.
value
=
false
;
// this.download(response.msg)
});
}
});
...
...
@@ -311,14 +309,14 @@ function handleExport() {
<!-- 清空弹窗-->
<el-dialog
title=
"选择清空月份"
v-model
:visible
=
"clearVisible"
v-model=
"clearVisible"
width=
"30%"
:before-close=
"handleClose"
>
<el-form
ref=
"clearF
romRef"
:model=
"clearFro
m"
:rules=
"clearRule"
>
<el-form
ref=
"clearF
ormRef"
:model=
"clearFor
m"
:rules=
"clearRule"
>
<el-form-item
label=
"月份"
prop=
"month"
>
<el-date-picker
v-model=
"clearF
ro
m.month"
v-model=
"clearF
or
m.month"
type=
"monthrange"
range-separator=
"至"
start-placeholder=
"开始月份"
...
...
src/views/monitor/operLog/index.vue
0 → 100644
View file @
cd0c2a66
This diff is collapsed.
Click to expand it.
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