Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
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
office
haoban-3
Commits
4d4666b9
Commit
4d4666b9
authored
Jun 06, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 页面t调整
parent
03577d5c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
169 deletions
+57
-169
button-code.js
menu-data/button-code.js
+15
-34
menu-data.js
menu-data/menu-data.js
+7
-25
index.js
src/router/index.js
+2
-38
daily-setting.vue
src/views/apps/cloudDaily/daily-setting.vue
+11
-24
memberGroupSet.vue
src/views/apps/customerApp/memberGroupSet.vue
+11
-24
guide-setting.vue
src/views/enterprise/guide-setting.vue
+11
-24
No files found.
menu-data/button-code.js
View file @
4d4666b9
...
@@ -24,25 +24,18 @@ module.exports = {
...
@@ -24,25 +24,18 @@ module.exports = {
delShowRules
:
[
'删除'
,
1
,
1
]
delShowRules
:
[
'删除'
,
1
,
1
]
},
},
memberGroupSet
:
{
memberGroupSet
:
{
// 按钮名称、是否受权限控制0否1是、是否增删改0:跳转 1:增删改 2:其他、按钮跳转路径
memberGroupList
:
[
'客户分组列表'
,
0
,
0
,
'memberGroupList'
],
memberGroupSetList
:
[
'分组展示设置'
,
0
,
0
,
'memberGroupSetList'
]
},
memberGroupList
:
{
// 1.会员分组失效后不展示(按钮)
// 1.会员分组失效后不展示(按钮)
groupExpire
:
[
'分组失效后不展示'
,
1
,
2
],
groupExpire
:
[
'
客户分组列表-
分组失效后不展示'
,
1
,
2
],
// 2.立即同步(按钮)
// 2.立即同步(按钮)
syncGroup
:
[
'立即同步'
,
1
,
2
]
syncGroup
:
[
'客户分组列表-立即同步'
,
1
,
2
],
},
memberGroupSetList
:
{
// 1.新建模板 (按钮,控制“客户分组设置”新建页面内所有操作权限)
// 1.新建模板 (按钮,控制“客户分组设置”新建页面内所有操作权限)
addGroupTemp
:
[
'新建模板'
,
1
,
0
,
'addGroupTemplate'
],
addGroupTemp
:
[
'
分组展示设置-
新建模板'
,
1
,
0
,
'addGroupTemplate'
],
// 2.编辑 (按钮,控制“客户分组设置”修改页面内所有操作权限)
// 2.编辑 (按钮,控制“客户分组设置”修改页面内所有操作权限)
editGroupTemp
:
[
'编辑'
,
1
,
0
,
'editGroupTemplate'
],
editGroupTemp
:
[
'
分组展示设置-
编辑'
,
1
,
0
,
'editGroupTemplate'
],
// 3.门店范围设置 (按钮,控制“门店范围设置”页面内所有操作权限)
// 3.门店范围设置 (按钮,控制“门店范围设置”页面内所有操作权限)
setStoreArea
:
[
'门店范围设置'
,
1
,
0
,
'storeRangeSet'
],
setStoreArea
:
[
'
分组展示设置-
门店范围设置'
,
1
,
0
,
'storeRangeSet'
],
// 4.删除(按钮)
// 4.删除(按钮)
delGroupTemp
:
[
'删除'
,
1
,
1
]
delGroupTemp
:
[
'
分组展示设置-
删除'
,
1
,
1
]
},
},
memberSearchSet
:
{
memberSearchSet
:
{
// 1.保存(按钮)
// 1.保存(按钮)
...
@@ -165,26 +158,20 @@ module.exports = {
...
@@ -165,26 +158,20 @@ module.exports = {
// 1.保存(按钮)
// 1.保存(按钮)
saveTaskSet
:
[
'保存'
,
1
,
1
]
saveTaskSet
:
[
'保存'
,
1
,
1
]
},
},
'daily-setting'
:
{
systemReport
:
[
'系统报表'
,
0
,
0
,
'systemReport'
],
customReport
:
[
'自定义报表'
,
0
,
0
,
'customReport'
],
},
// 云日报设置-系统报表
// 云日报设置-系统报表
systemReport
:
{
'daily-setting'
:
{
// 1.模板设置(按钮,控制“模板设置”弹窗内所有操作权限);
// 1.模板设置(按钮,控制“模板设置”弹窗内所有操作权限);
settingSystemReport
:
[
'模板设置'
,
1
,
2
],
settingSystemReport
:
[
'
系统报表-
模板设置'
,
1
,
2
],
// 2.保存并启用(按钮)
// 2.保存并启用(按钮)
saveSystemReport
:
[
'保存并启用'
,
1
,
2
],
saveSystemReport
:
[
'系统报表-保存并启用'
,
1
,
2
],
},
customReport
:
{
// 1.新建模板(按钮,控制“新建模板”页面内所有操作权限);
// 1.新建模板(按钮,控制“新建模板”页面内所有操作权限);
addCustomReport
:
[
'新建模板'
,
1
,
0
,
'customReportSet'
],
addCustomReport
:
[
'
自定义报表-
新建模板'
,
1
,
0
,
'customReportSet'
],
// 2.复制(按钮,控制“新建模板”页面内所有操作权限);
// 2.复制(按钮,控制“新建模板”页面内所有操作权限);
copyCustomReport
:
[
'复制'
,
1
,
0
,
'customReportCopy'
],
copyCustomReport
:
[
'
自定义报表-
复制'
,
1
,
0
,
'customReportCopy'
],
// 3.编辑(按钮,控制“编辑模板”页面内所有操作权限);
// 3.编辑(按钮,控制“编辑模板”页面内所有操作权限);
editCustomReport
:
[
'编辑'
,
1
,
0
,
'customReportEdit'
],
editCustomReport
:
[
'
自定义报表-
编辑'
,
1
,
0
,
'customReportEdit'
],
// 4.删除(按钮)
// 4.删除(按钮)
delCustomReport
:
[
'删除'
,
1
,
1
]
delCustomReport
:
[
'
自定义报表-
删除'
,
1
,
1
]
},
},
monthList
:
{
monthList
:
{
// 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限);
// 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限);
...
@@ -301,14 +288,8 @@ module.exports = {
...
@@ -301,14 +288,8 @@ module.exports = {
// 导购设置-导购操作权限设置
// 导购设置-导购操作权限设置
// 保存(按钮)
// 保存(按钮)
'guide-setting'
:
{
'guide-setting'
:
{
guideAuthSetting
:
[
'导购操作权限设置'
,
0
,
0
,
'guide-auth-setting'
],
saveGuideSetting
:
[
'导购操作权限设置-保存'
,
1
,
1
],
appVisibleSetting
:
[
'应用可见权限设置'
,
0
,
0
,
'app-visible-setting'
]
saveAppsVisible
:
[
'应用可见权限设置-保存'
,
1
,
1
],
},
'guide-auth-setting'
:
{
saveGuideSetting
:
[
'保存'
,
1
,
1
],
},
'app-visible-setting'
:
{
saveAppsVisible
:
[
'保存'
,
1
,
1
],
},
},
enterpriseSet
:
{
enterpriseSet
:
{
// 1.同步刷新(按钮)
// 1.同步刷新(按钮)
...
...
menu-data/menu-data.js
View file @
4d4666b9
...
@@ -30,15 +30,9 @@ module.exports = [
...
@@ -30,15 +30,9 @@ module.exports = [
{
{
menu
:
[
'客户分组设置'
,
'memberGroupSet'
,
1
],
menu
:
[
'客户分组设置'
,
'memberGroupSet'
,
1
],
children
:
[
children
:
[
{
menu
:
[
'客户分组列表'
,
'memberGroupList'
,
1
]
},
{
menu
:
[
'新建模板'
,
'addGroupTemplate'
,
1
]
},
{
{
menu
:
[
'编辑模板'
,
'editGroupTemplate'
,
1
]
},
menu
:
[
'分组展示设置'
,
'memberGroupSetList'
,
1
],
{
menu
:
[
'门店范围设置'
,
'storeRangeSet'
,
1
]
}
children
:
[
{
menu
:
[
'新建模板'
,
'addGroupTemplate'
,
1
]
},
{
menu
:
[
'编辑模板'
,
'editGroupTemplate'
,
1
]
},
{
menu
:
[
'门店范围设置'
,
'storeRangeSet'
,
1
]
},
]
},
]
]
},
},
{
menu
:
[
'客户管理设置'
,
'memberSearchSet'
,
1
]
},
{
menu
:
[
'客户管理设置'
,
'memberSearchSet'
,
1
]
},
...
@@ -156,15 +150,9 @@ module.exports = [
...
@@ -156,15 +150,9 @@ module.exports = [
{
{
menu
:
[
'云日报设置'
,
'daily-setting'
,
1
],
menu
:
[
'云日报设置'
,
'daily-setting'
,
1
],
children
:
[
children
:
[
{
menu
:
[
'系统报表'
,
'systemReport'
,
1
]
},
{
menu
:
[
'新建模板'
,
'customReportSet'
,
1
]},
{
{
menu
:
[
'复制模板'
,
'customReportCopy'
,
1
]},
menu
:
[
'自定义报表'
,
'customReport'
,
1
],
{
menu
:
[
'编辑模板'
,
'customReportEdit'
,
1
]}
children
:
[
{
menu
:
[
'新建模板'
,
'customReportSet'
,
1
]},
{
menu
:
[
'复制模板'
,
'customReportCopy'
,
1
]},
{
menu
:
[
'编辑模板'
,
'customReportEdit'
,
1
]}
]
},
]
]
},
},
]
]
...
@@ -227,13 +215,7 @@ module.exports = [
...
@@ -227,13 +215,7 @@ module.exports = [
{
{
menu
:
[
'导购设置'
,
''
,
1
,
'icondaogoushezhi'
],
menu
:
[
'导购设置'
,
''
,
1
,
'icondaogoushezhi'
],
children
:
[
children
:
[
{
{
menu
:
[
'导购设置'
,
'guide-setting'
,
1
]}
menu
:
[
'导购设置'
,
'guide-setting'
,
1
],
children
:
[
{
menu
:
[
'导购操作权限设置'
,
'guide-auth-setting'
,
1
]
},
{
menu
:
[
'应用可见权限设置'
,
'app-visible-setting'
,
1
]
}
],
}
]
]
},
},
{
{
...
...
src/router/index.js
View file @
4d4666b9
...
@@ -114,19 +114,7 @@ export const constantRouterMap = [
...
@@ -114,19 +114,7 @@ export const constantRouterMap = [
{
{
path
:
'/guide-setting'
,
path
:
'/guide-setting'
,
name
:
'导购设置'
,
name
:
'导购设置'
,
component
:
_import
(
'enterprise'
,
'guide-setting'
),
component
:
_import
(
'enterprise'
,
'guide-setting'
)
children
:
[
{
path
:
'/guide-auth-setting'
,
name
:
'导购操作权限设置'
,
component
:
_import
(
'enterprise'
,
'guide-auth-setting'
)
},
{
path
:
'/app-visible-setting'
,
name
:
'应用可见权限设置'
,
component
:
_import
(
'enterprise'
,
'app-visible-setting'
)
}
]
},
},
{
{
path
:
'/setting'
,
path
:
'/setting'
,
...
@@ -246,19 +234,7 @@ export const constantRouterMap = [
...
@@ -246,19 +234,7 @@ export const constantRouterMap = [
{
{
path
:
'/memberGroupSet'
,
path
:
'/memberGroupSet'
,
name
:
'客户分组设置'
,
name
:
'客户分组设置'
,
component
:
_import
(
'apps/customerApp'
,
'memberGroupSet'
),
component
:
_import
(
'apps/customerApp'
,
'memberGroupSet'
)
children
:
[
{
path
:
'/memberGroupList'
,
name
:
'客户分组列表'
,
component
:
_import
(
'apps/customerApp'
,
'memberGroupList'
),
},
{
path
:
'/memberGroupSetList'
,
name
:
'客户分组列表'
,
component
:
_import
(
'apps/customerApp'
,
'memberGroupSetList'
),
},
]
},
},
{
{
path
:
'/memberSearchSet'
,
path
:
'/memberSearchSet'
,
...
@@ -325,18 +301,6 @@ export const constantRouterMap = [
...
@@ -325,18 +301,6 @@ export const constantRouterMap = [
path
:
'/daily-setting'
,
path
:
'/daily-setting'
,
name
:
'系统报表'
,
name
:
'系统报表'
,
component
:
_import
(
'apps/cloudDaily'
,
'daily-setting'
),
component
:
_import
(
'apps/cloudDaily'
,
'daily-setting'
),
children
:
[
{
path
:
'/systemReport'
,
name
:
'系统报表'
,
component
:
_import
(
'apps/cloudDaily'
,
'systemReport'
)
},
{
path
:
'/customReport'
,
name
:
'自定义报表'
,
component
:
_import
(
'apps/cloudDaily'
,
'customReport'
)
},
]
},
},
{
{
path
:
'/customReportSet'
,
path
:
'/customReportSet'
,
...
...
src/views/apps/cloudDaily/daily-setting.vue
View file @
4d4666b9
<
template
>
<
template
>
<div>
<div>
<el-tabs
class=
"daily-setting"
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
class=
"daily-setting"
v-model=
"activeName"
>
<el-tab-pane
v-if=
"$getButtonLimit($buttonCode.systemReport)"
:limit-code=
"$buttonCode.systemReport"
label=
"系统报表"
name=
"/systemReport"
></el-tab-pane>
<el-tab-pane
label=
"系统报表"
name=
"first"
>
<el-tab-pane
v-if=
"$getButtonLimit($buttonCode.customReport)"
:limit-code=
"$buttonCode.customReport"
label=
"自定义报表"
name=
"/customReport"
></el-tab-pane>
<system-report
:brand-id=
"brandId"
></system-report>
</el-tab-pane>
<el-tab-pane
label=
"自定义报表"
name=
"second"
>
<custom-report
:brand-id=
"brandId"
></custom-report>
</el-tab-pane>
</el-tabs>
</el-tabs>
<router-view
:brand-id=
"brandId"
></router-view>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
SystemReport
from
'./systemReport.vue'
;
import
CustomReport
from
'./customReport.vue'
;
export
default
{
export
default
{
name
:
'DailySetting'
,
name
:
'DailySetting'
,
props
:
{
props
:
{
...
@@ -17,29 +22,11 @@ export default {
...
@@ -17,29 +22,11 @@ export default {
default
:
''
default
:
''
}
}
},
},
components
:
{
SystemReport
,
CustomReport
},
data
()
{
data
()
{
return
{
return
{
activeName
:
''
activeName
:
'
first
'
};
};
},
methods
:
{
handleClick
()
{
this
.
$router
.
replace
(
this
.
activeName
);
}
},
created
()
{
if
(
this
.
$route
.
path
==
'/daily-setting'
)
{
if
(
this
.
$getButtonLimit
(
this
.
$buttonCode
.
systemReport
))
{
this
.
activeName
=
'/systemReport'
;
}
else
if
(
this
.
$getButtonLimit
(
this
.
$buttonCode
.
customReport
))
{
this
.
activeName
=
'/customReport'
;
}
if
(
this
.
activeName
)
{
this
.
handleClick
();
}
}
else
{
this
.
activeName
=
this
.
$route
.
path
;
}
}
}
};
};
</
script
>
</
script
>
...
...
src/views/apps/customerApp/memberGroupSet.vue
View file @
4d4666b9
...
@@ -13,16 +13,22 @@
...
@@ -13,16 +13,22 @@
-->
-->
<
template
>
<
template
>
<div
class=
"app-detail-wrap"
>
<div
class=
"app-detail-wrap"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
v-if=
"$getButtonLimit($buttonCode.memberGroupList)"
:limit-code=
"$buttonCode.memberGroupList"
label=
"客户分组列表"
name=
"/memberGroupList"
></el-tab-pane>
<el-tab-pane
label=
"客户分组列表"
name=
"first"
>
<el-tab-pane
v-if=
"$getButtonLimit($buttonCode.memberGroupSetList)"
:limit-code=
"$buttonCodememberGroupSetList"
label=
"分组展示设置"
name=
"/memberGroupSetList"
></el-tab-pane>
<member-group-list
:brand-id=
"brandId"
></member-group-list>
</el-tab-pane>
<el-tab-pane
label=
"分组展示设置"
name=
"second"
>
<member-group-set-list
:brand-id=
"brandId"
></member-group-set-list>
</el-tab-pane>
</el-tabs>
</el-tabs>
<router-view
:brandId=
"brandId"
></router-view>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
MemberGroupList
from
'./memberGroupList.vue'
;
import
MemberGroupSetList
from
'./memberGroupSetList.vue'
;
export
default
{
export
default
{
name
:
'app-detail'
,
name
:
'app-detail'
,
components
:
{
MemberGroupList
,
MemberGroupSetList
},
props
:
{
props
:
{
brandId
:
{
brandId
:
{
type
:
String
,
type
:
String
,
...
@@ -31,27 +37,8 @@ export default {
...
@@ -31,27 +37,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
activeName
:
''
activeName
:
'
first
'
};
};
},
methods
:
{
handleClick
()
{
this
.
$router
.
replace
(
this
.
activeName
);
}
},
created
()
{
if
(
this
.
$route
.
path
==
'/memberGroupSet'
)
{
if
(
this
.
$getButtonLimit
(
this
.
$buttonCode
.
memberGroupList
))
{
this
.
activeName
=
'/memberGroupList'
;
}
else
if
(
this
.
$getButtonLimit
(
this
.
$buttonCode
.
memberGroupSetList
))
{
this
.
activeName
=
'/memberGroupSetList'
;
}
if
(
this
.
activeName
)
{
this
.
handleClick
();
}
}
else
{
this
.
activeName
=
this
.
$route
.
path
;
}
}
}
};
};
</
script
>
</
script
>
...
...
src/views/enterprise/guide-setting.vue
View file @
4d4666b9
<
template
>
<
template
>
<div>
<div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
v-if=
"$getButtonLimit($buttonCode.guideAuthSetting)"
:limit-code=
"$buttonCode.guideAuthSetting"
label=
"导购操作权限设置"
name=
"/guide-auth-setting"
>
</el-tab-pane>
<el-tab-pane
label=
"导购操作权限设置"
name=
"first"
>
<el-tab-pane
v-if=
"$getButtonLimit($buttonCode.appVisibleSetting)"
:limit-code=
"$buttonCode.appVisibleSetting"
label=
"应用可见权限设置"
name=
"/app-visible-setting"
>
</el-tab-pane>
<guide-auth-setting></guide-auth-setting>
</el-tab-pane>
<el-tab-pane
label=
"应用可见权限设置"
name=
"second"
>
<app-visible-setting></app-visible-setting>
</el-tab-pane>
</el-tabs>
</el-tabs>
<router-view></router-view>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
GuideAuthSetting
from
'./guide-auth-setting.vue'
;
import
AppVisibleSetting
from
'./app-visible-setting.vue'
;
export
default
{
export
default
{
name
:
'GuideSetting'
,
name
:
'GuideSetting'
,
components
:
{
GuideAuthSetting
,
AppVisibleSetting
},
data
()
{
data
()
{
return
{
return
{
activeName
:
''
activeName
:
'
first
'
};
};
},
methods
:
{
handleClick
()
{
this
.
$router
.
replace
(
this
.
activeName
);
}
},
created
()
{
if
(
this
.
$route
.
path
==
'/guide-setting'
)
{
if
(
this
.
$getButtonLimit
(
this
.
$buttonCode
.
guideAuthSetting
))
{
this
.
activeName
=
'/guide-auth-setting'
;
}
else
if
(
this
.
$getButtonLimit
(
this
.
$buttonCode
.
appVisibleSetting
))
{
this
.
activeName
=
'/app-visible-setting'
;
}
if
(
this
.
activeName
)
{
this
.
handleClick
();
}
}
else
{
this
.
activeName
=
this
.
$route
.
path
;
}
}
}
};
};
</
script
>
</
script
>
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