Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
fb30ee62
Commit
fb30ee62
authored
Nov 22, 2022
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:菜单管理新增资源路径字段
parent
32296f65
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
src/App.vue
src/App.vue
+8
-8
src/page/main/develop/menu/index.vue
src/page/main/develop/menu/index.vue
+3
-0
src/page/main/develop/menu/menu-form.vue
src/page/main/develop/menu/menu-form.vue
+4
-1
No files found.
src/App.vue
View file @
fb30ee62
...
@@ -92,21 +92,21 @@ export default {
...
@@ -92,21 +92,21 @@ export default {
menuIndex
:
''
,
menuIndex
:
''
,
}
}
},
},
created
(){},
created
(){
mounted
()
{
this
.
initMsg
()
this
.
initMsg
()
},
},
mounted
()
{
},
methods
:{
methods
:{
openMsg
(
data
)
{
openMsg
(
data
)
{
console
.
log
(
123123123
)
this
.
readFlag
=
!
this
.
readFlag
;
this
.
readFlag
=
!
this
.
readFlag
;
},
},
initMsg
()
{
initMsg
()
{
if
(
this
.
userInfo
&&
this
.
userInfo
.
userI
d
)
{
if
(
this
.
userInfo
&&
this
.
userInfo
.
system_i
d
)
{
this
.
$trace
.
setOptionValue
(
'
userId
'
,
this
.
userInfo
.
userI
d
)
this
.
$trace
.
setOptionValue
(
'
userId
'
,
this
.
userInfo
.
system_i
d
)
this
.
$trace
.
setOptionValue
(
'
userType
'
,
this
.
userInfo
.
userType
)
//
this.$trace.setOptionValue('userType',this.userInfo.userType)
this
.
$trace
.
setOptionValue
(
'
roleId
'
,
this
.
userInfo
.
roleIds
.
join
(
'
,
'
))
//
this.$trace.setOptionValue('roleId',this.userInfo.roleIds.join(','))
this
.
$trace
.
setOptionValue
(
'
organization
'
,
this
.
userInfo
.
org
I
d
)
this
.
$trace
.
setOptionValue
(
'
organization
'
,
this
.
userInfo
.
org
anization_i
d
)
}
}
},
},
handleClose
()
{
handleClose
()
{
...
...
src/page/main/develop/menu/index.vue
View file @
fb30ee62
...
@@ -305,6 +305,7 @@ const fileAction = (val,data,parent,disabled=false) => {
...
@@ -305,6 +305,7 @@ const fileAction = (val,data,parent,disabled=false) => {
state
:
1
,
// 启用状态
state
:
1
,
// 启用状态
menu_url
:
""
,
// 路径
menu_url
:
""
,
// 路径
menu_logo
:
""
,
// 图标
menu_logo
:
""
,
// 图标
source
:
""
,
level
:
data
.
level
,
// 当前的level
level
:
data
.
level
,
// 当前的level
p_menu_type
:
parent
?
parent
.
menu_type
:
0
// 父级的类型,用于判断菜单下不能建目录
p_menu_type
:
parent
?
parent
.
menu_type
:
0
// 父级的类型,用于判断菜单下不能建目录
}
}
...
@@ -325,6 +326,7 @@ const fileAction = (val,data,parent,disabled=false) => {
...
@@ -325,6 +326,7 @@ const fileAction = (val,data,parent,disabled=false) => {
state
:
1
,
state
:
1
,
menu_url
:
""
,
menu_url
:
""
,
menu_logo
:
""
,
menu_logo
:
""
,
source
:
""
,
p_menu_type
:
data
.
menu_type
,
p_menu_type
:
data
.
menu_type
,
level
:
data
.
level
+
1
level
:
data
.
level
+
1
}
}
...
@@ -443,6 +445,7 @@ const saveMenu = (el,type) => {
...
@@ -443,6 +445,7 @@ const saveMenu = (el,type) => {
state
:
el
.
menuForm
.
state
,
state
:
el
.
menuForm
.
state
,
menu_url
:
el
.
menuForm
.
menu_url
,
menu_url
:
el
.
menuForm
.
menu_url
,
menu_logo
:
el
.
menuForm
.
menu_logo
,
menu_logo
:
el
.
menuForm
.
menu_logo
,
source
:
el
.
menuForm
.
menu_type
==
0
?
""
:
el
.
menuForm
.
source
,
}
}
if
(
state
.
selectData
.
id
)
{
// 编辑
if
(
state
.
selectData
.
id
)
{
// 编辑
axios
axios
...
...
src/page/main/develop/menu/menu-form.vue
View file @
fb30ee62
...
@@ -90,7 +90,9 @@
...
@@ -90,7 +90,9 @@
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"资源路径"
v-if=
"menuForm.menu_type != 0"
>
<el-input
v-model=
"menuForm.source"
show-word-limit
maxlength=
"200"
placeholder=
"请输入资源路径"
/>
</el-form-item>
</el-form>
</el-form>
</
template
>
</
template
>
...
@@ -117,6 +119,7 @@ const state = reactive({
...
@@ -117,6 +119,7 @@ const state = reactive({
state
:
1
,
state
:
1
,
menu_url
:
""
,
menu_url
:
""
,
menu_logo
:
""
,
menu_logo
:
""
,
source
:
""
,
},
},
formRules
:
{
formRules
:
{
menu_name
:
[
menu_name
:
[
...
...
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