Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
fc52e943
Commit
fc52e943
authored
Apr 07, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
11811f64
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
20 deletions
+36
-20
webkit.js
src/api/system/webkit.js
+13
-0
webkit-form.vue
src/components/system/webkit-form.vue
+17
-14
webmenu-form.vue
src/components/system/webmenu-form.vue
+2
-2
menuManage.vue
src/pages/system/menuManage.vue
+4
-4
No files found.
src/api/system/webkit.js
View file @
fc52e943
...
@@ -96,3 +96,16 @@ export function GetWebMenu(data) {
...
@@ -96,3 +96,16 @@ export function GetWebMenu(data) {
})
})
}
}
/**
* 修改网站菜单状态
*
*/
export
function
RemoveWebMenuStatus
(
data
)
{
return
request
({
url
:
'/WebManager/RemoveWebMenuStatus'
,
method
:
'post'
,
data
})
}
src/components/system/webkit-form.vue
View file @
fc52e943
...
@@ -127,6 +127,8 @@
...
@@ -127,6 +127,8 @@
},
},
//保存菜单
//保存菜单
saveWebkitMenu
()
{
saveWebkitMenu
()
{
this
.
$refs
.
NavTitle
.
validate
();
if
(
!
this
.
$refs
.
NavTitle
.
hasError
)
{
this
.
saveLoading
=
true
this
.
saveLoading
=
true
SetWebNav
(
this
.
objOption
).
then
(
res
=>
{
SetWebNav
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveLoading
=
false
this
.
saveLoading
=
false
...
@@ -143,6 +145,7 @@
...
@@ -143,6 +145,7 @@
this
.
saveLoading
=
false
this
.
saveLoading
=
false
})
})
}
}
}
},
},
}
}
...
...
src/components/system/webmenu-form.vue
View file @
fc52e943
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
Name
:
''
,
//菜单名称
Name
:
''
,
//菜单名称
MenuUrl
:
''
,
MenuUrl
:
''
,
ParentId
:
0
,
ParentId
:
0
,
MenuLevel
:
''
,
MenuLevel
:
-
1
,
ClassName
:
''
,
ClassName
:
''
,
Icon
:
''
,
Icon
:
''
,
SortNum
:
''
SortNum
:
''
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
this
.
objOption
.
Name
=
''
;
this
.
objOption
.
Name
=
''
;
this
.
objOption
.
MenuUrl
=
''
;
this
.
objOption
.
MenuUrl
=
''
;
this
.
objOption
.
ParentId
=
0
;
this
.
objOption
.
ParentId
=
0
;
this
.
objOption
.
MenuLevel
=
0
;
this
.
objOption
.
MenuLevel
=
-
1
;
this
.
objOption
.
ClassName
=
''
;
this
.
objOption
.
ClassName
=
''
;
this
.
objOption
.
Icon
=
''
;
this
.
objOption
.
Icon
=
''
;
this
.
objOption
.
SortNum
=
0
;
this
.
objOption
.
SortNum
=
0
;
...
...
src/pages/system/menuManage.vue
View file @
fc52e943
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
导航
信息
</div>
<div
class=
"col-2 q-table__title"
>
菜单
信息
</div>
<q-space
/>
<q-space
/>
<div
class=
"page-option"
>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"add"
label=
"新增
导航
"
@
click=
"EditMenu(null)"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
size=
"sm"
icon=
"add"
label=
"新增
菜单
"
@
click=
"EditMenu(null)"
/>
</div>
</div>
</
template
>
</
template
>
<
template
v-slot:body-cell-Icon=
"props"
>
<
template
v-slot:body-cell-Icon=
"props"
>
...
@@ -140,9 +140,9 @@
...
@@ -140,9 +140,9 @@
};
};
var
tipMsg
=
""
;
var
tipMsg
=
""
;
if
(
delMsg
.
Status
==
0
)
{
if
(
delMsg
.
Status
==
0
)
{
tipMsg
=
"是否启用【"
+
obj
.
Na
vTitl
e
+
"】菜单?"
;
tipMsg
=
"是否启用【"
+
obj
.
Na
m
e
+
"】菜单?"
;
}
else
{
}
else
{
tipMsg
=
"是否禁用【"
+
obj
.
Na
vTitl
e
+
"】菜单?"
;
tipMsg
=
"是否禁用【"
+
obj
.
Na
m
e
+
"】菜单?"
;
}
}
this
.
$q
.
dialog
({
this
.
$q
.
dialog
({
title
:
'提示信息'
,
title
:
'提示信息'
,
...
...
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