Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
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
lanbaoming
jiedao-app-operator-master
Commits
3fe39f98
Commit
3fe39f98
authored
Jul 14, 2022
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复新建优惠券异常,适配路由不显示在菜单中
parent
a482f732
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
7 deletions
+21
-7
index.vue
src/components/CustomerSelector/index.vue
+1
-1
index.vue
src/components/CustomersSelector/index.vue
+10
-5
index.vue
src/components/ProductsSelector/index.vue
+3
-1
permission.js
src/store/modules/permission.js
+1
-0
index.vue
src/views/system/menu/index.vue
+6
-0
No files found.
src/components/CustomerSelector/index.vue
View file @
3fe39f98
...
...
@@ -26,7 +26,7 @@ export default {
},
data
(){
return
{
index
:
{}
,
index
:
null
,
list
:[],
loading
:
false
}
...
...
src/components/CustomersSelector/index.vue
View file @
3fe39f98
...
...
@@ -34,7 +34,12 @@
import
{
getCustomerSelect
,
getCustomerList
}
from
'
@/api/ecw/customer
'
export
default
{
props
:{
value
:
[
Array
]
value
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
}
},
data
(){
return
{
...
...
@@ -60,16 +65,16 @@ export default {
customerIds
(
val
){
this
.
$emit
(
'
input
'
,
val
)
},
value
(
val
,
old
){
if
(
val
.
sort
().
join
(
'
,
'
)
!=
old
.
sort
().
join
(
'
,
'
)){
value
(
val
){
if
(
Array
.
from
(
new
Set
(
val
)).
sort
().
join
(
'
,
'
)
!=
Array
.
from
(
new
Set
(
this
.
customerIds
))
.
sort
().
join
(
'
,
'
)){
this
.
getChoosedList
()
}
}
},
created
(){
if
(
this
.
value
&&
this
.
value
.
length
){
/*
if(this.value && this.value.length){
this.getChoosedList()
}
}
*/
this
.
reLoad
()
},
methods
:{
...
...
src/components/ProductsSelector/index.vue
View file @
3fe39f98
...
...
@@ -44,7 +44,9 @@ export default {
props
:
{
defaultIds
:
{
type
:
Array
,
default
:
[]
default
:
()
=>
{
return
[]
}
}
},
data
()
{
...
...
src/store/modules/permission.js
View file @
3fe39f98
...
...
@@ -55,6 +55,7 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) {
title
:
route
.
name
,
icon
:
route
.
icon
}
route
.
hidden
=
typeof
route
.
isShowInMenuBar
!=
'
undefined
'
&&
(
route
.
isShowInMenuBar
==
'
false
'
||
!
route
.
isShowInMenuBar
)
// 处理 component 属性
if
(
route
.
children
)
{
// 父节点
// debugger
...
...
src/views/system/menu/index.vue
View file @
3fe39f98
...
...
@@ -78,6 +78,11 @@
</el-radio-group>
</el-form-item>
</el-col>
<el-col
:span=
"24"
v-if=
"form.type == 2"
>
<el-form-item
label=
"显示菜单"
prop=
"isShowInMenuBar"
>
<dict-selector
v-model=
"form.isShowInMenuBar"
:type=
"DICT_TYPE.INFRA_BOOLEAN_STRING"
formatter=
"bool"
form-type=
"radio"
/>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
v-if=
"form.type != '3'"
label=
"菜单图标"
>
<el-popover
placement=
"bottom-start"
width=
"460"
trigger=
"click"
@
show=
"$refs['iconSelect'].reset()"
>
...
...
@@ -242,6 +247,7 @@ export default {
parentId
:
0
,
name
:
undefined
,
icon
:
undefined
,
isShowInMenuBar
:
undefined
,
type
:
SystemMenuTypeEnum
.
DIR
,
sort
:
undefined
,
status
:
CommonStatusEnum
.
ENABLE
...
...
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