Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
陆宇天
/
config-center-front
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 34bd673b
authored
Aug 28, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
操作记录表单
1 parent
1a776880
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
9 deletions
src/views/layout.vue
src/views/publicConfig/OperationRecord.vue
src/views/layout.vue
View file @
34bd673
...
@@ -10,9 +10,8 @@
...
@@ -10,9 +10,8 @@
class=
"logo"
class=
"logo"
/>
/>
<div
class=
"wrap-right"
>
<div
class=
"wrap-right"
>
<div
class=
"right-menu"
@
click=
"goConfigPage"
>
公共配置项
</div>
<div
class=
"right-menu"
@
click=
"goConfigPage"
>
公共配置
</div>
<span
class=
"right-menu"
>
|
</span>
<div
class=
"right-menu"
@
click=
"goEnvironmentPage"
>
环境配置
</div>
<div
class=
"right-menu"
@
click=
"goModelPage"
>
公共模板
</div>
<el-dropdown>
<el-dropdown>
<span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
{{
userName
}}
{{
userName
}}
...
@@ -93,9 +92,9 @@ const goConfigPage = () => {
...
@@ -93,9 +92,9 @@ const goConfigPage = () => {
router
.
replace
({
name
:
"publickconfig"
});
router
.
replace
({
name
:
"publickconfig"
});
}
}
// 跳
往公共模板页面
// 跳
转环境配置
const
go
Model
Page
=
()
=>
{
const
go
Environment
Page
=
()
=>
{
router
.
replace
({
name
:
"
model
"
});
router
.
replace
({
name
:
"
project
"
});
}
}
// 注销账号
// 注销账号
...
...
src/views/publicConfig/OperationRecord.vue
View file @
34bd673
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
"vue"
import
{
ref
}
from
"vue"
;
const
tableData
=
[
{
model
:
"2016-05-03"
,
operator
:
"Tom"
,
time
:
"No. 189, Grove St, Los Angeles"
,
type
:
""
,
content
:
""
,
},
{
model
:
"2016-05-02"
,
operator
:
"Tom"
,
time
:
"No. 189, Grove St, Los Angeles"
,
type
:
""
,
content
:
""
,
},
{
model
:
"2016-05-04"
,
operator
:
"Tom"
,
time
:
"No. 189, Grove St, Los Angeles"
,
type
:
""
,
content
:
""
,
},
{
model
:
"2016-05-01"
,
operator
:
"Tom"
,
time
:
"No. 189, Grove St, Los Angeles"
,
type
:
""
,
content
:
""
,
},
];
const
currentPage
=
ref
(
4
);
const
pageSize
=
ref
(
100
);
const
handleSizeChange
=
(
val
:
number
)
=>
{
console
.
log
(
val
);
};
const
handleCurrentChange
=
(
val
:
number
)
=>
{
console
.
log
(
val
);
};
</
script
>
</
script
>
<
template
>
<
template
>
<div>
caozuojil
</div>
<div
class=
"title"
>
操作记录
</div>
<el-table
:data=
"tableData"
stripe
style=
"width: 100%"
>
<el-table-column
label=
"操作模块"
prop=
"model"
width=
"180"
/>
<el-table-column
label=
"操作人"
prop=
"operator"
width=
"180"
/>
<el-table-column
label=
"操作时间"
prop=
"time"
/>
<el-table-column
label=
"操作类型"
prop=
"type"
/>
<el-table-column
label=
"操作内容"
prop=
"content"
/>
</el-table>
<el-pagination
class=
"pagination"
v-model:current-page=
"currentPage"
v-model:page-size=
"pageSize"
:page-sizes=
"[100, 200, 300, 400]"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"400"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
/>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
>
.title
{
font-size
:
20px
;
font-weight
:
500
;
text-align
:
center
;
margin-bottom
:
20px
;
}
.pagination
{
margin-top
:
20px
;
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment