Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
esb-demo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
zhuwj
esb-demo
Commits
193604ea
Commit
193604ea
authored
Nov 23, 2022
by
wenju-zhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑删除功能&编辑弹窗数据展示
parent
2c2ae74b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
626 additions
and
307 deletions
+626
-307
src/components/showDailog/index.vue
src/components/showDailog/index.vue
+46
-0
src/views/login/index.vue
src/views/login/index.vue
+3
-20
src/views/search/index.vue
src/views/search/index.vue
+577
-287
No files found.
src/components/showDailog/index.vue
0 → 100644
View file @
193604ea
<
template
>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
>
<el-table-column
prop=
"name"
label=
"名称"
width=
"150"
>
</el-table-column>
<el-table-column
prop=
"description"
label=
"说明"
width=
"120"
>
</el-table-column>
<el-table-column
prop=
"httpMethod"
label=
"消息类型"
width=
"120"
></el-table-column>
<el-table-column
prop=
"uri"
label=
"端点uri"
width=
"120"
></el-table-column>
<el-table-column
prop=
"encoding"
label=
"字符编码"
width=
"120"
></el-table-column>
<el-table-column
label=
"操作"
width=
"100"
>
<template
slot-scope=
"scope"
>
<el-button
@
click=
"handleClick(scope.row)"
type=
"text"
size=
"small"
>
查看
</el-button
>
<el-button
type=
"text"
size=
"small"
>
编辑
</el-button>
</
template
>
</el-table-column>
</el-table>
</template>
<
script
>
export
default
{
methods
:
{
handleClick
(
row
)
{
console
.
log
(
row
)
}
},
props
:
{
showDailogData
:
{
type
:
Object
,
default
()
{
return
{}
}
}
},
data
()
{
return
{
tableData
:
[
this
.
showDailogData
]
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
src/views/login/index.vue
View file @
193604ea
...
...
@@ -74,24 +74,6 @@ export default {
]),
// 登录事件
loginClick
(
formName
)
{
/* this.$refs[formName].validate((valid) => {
if (valid) {
const formData = new FormData()
formData.append('username', this.form.name)
formData.append('password', this.form.password)
getLoginMessage(formData).then(
(data) => {
// 得到数据,将用户数据存储在vuex中
this.setUserInfo(data)
// 获取导航权限,将路由动态注入到路由表中
this.getNavigationMenu()
},
(err) => {
console.log(err)
}
)
}
}) */
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
load
=
true
...
...
@@ -106,9 +88,10 @@ export default {
id
:
this
.
form
.
name
,
displayname
:
this
.
form
.
name
}
// 将用户信息存储再vuex中
this
.
setUserInfo
(
data
)
// 获取导航权限
this
.
getNavigationMenu
()
// this.$router.push({ path: '/' })
this
.
load
=
false
}
else
if
(
rt
.
status
===
'
401
'
)
{
this
.
$message
.
error
(
'
用户名密码错误
'
)
...
...
@@ -124,11 +107,11 @@ export default {
// 获取导航权限
getNavigationMenu
()
{
var
that
=
this
console
.
log
(
111
)
getAllGroups2
().
then
((
res
)
=>
{
if
(
!
res
)
return
false
getNavAll3
(
res
.
data
[
0
].
id
).
then
((
rt
)
=>
{
that
.
servemenuList
=
rt
.
data
// 跳转至首页
that
.
$router
.
push
({
path
:
'
/
'
})
})
})
...
...
src/views/search/index.vue
View file @
193604ea
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