Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
ac808fea
Commit
ac808fea
authored
Dec 16, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 按钮权限
parent
868a9c96
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
5 deletions
+23
-5
imgItem.vue
src/components/libs/imgTemp/imgItem.vue
+1
-1
signIn.js
src/router/modules/signIn.js
+18
-0
newest.vue
src/views/evaluation/newest.vue
+1
-1
plan-list.vue
src/views/sign/plan-list.vue
+2
-2
setting.vue
src/views/sign/setting.vue
+1
-1
No files found.
src/components/libs/imgTemp/imgItem.vue
View file @
ac808fea
...
...
@@ -3,7 +3,7 @@
<div
class=
"dm-img-item_top"
@
mouseover=
"optShow = true"
@
mouseout=
"optShow = false"
>
<img
:src=
"imgData.qcloudImageUrl"
alt=
""
srcset=
""
/>
<div
class=
"dm-img-item_opt"
v-show=
"optShow"
v-if=
"imgData.canEdit !== false"
>
<i
v-if=
"$getButtonLimit($buttonCode.marketingEdi
gImg)"
:limit-code=
"$buttonCode.marketingEdig
Img"
class=
"fz14 el-icon-edit cursor"
@
click
.
stop
.
prevent=
"edit"
></i>
<i
v-if=
"$getButtonLimit($buttonCode.marketingEdi
tImg)"
:limit-code=
"$buttonCode.marketingEdit
Img"
class=
"fz14 el-icon-edit cursor"
@
click
.
stop
.
prevent=
"edit"
></i>
<i
v-if=
"$getButtonLimit($buttonCode.marketingMoveGroup)"
:limit-code=
"$buttonCode.marketingMoveGroup"
class=
"iconfont icon-fenzu cursor"
@
click
.
stop
.
prevent=
"move"
></i>
<i
v-if=
"$getButtonLimit($buttonCode.marketingDelImg)"
:limit-code=
"$buttonCode.marketingDelImg"
class=
"fz14 el-icon-delete cursor"
@
click
.
stop
.
prevent=
"del"
></i>
</div>
...
...
src/router/modules/signIn.js
View file @
ac808fea
...
...
@@ -16,6 +16,24 @@ export default {
}
},
{
path
:
'setting/edit'
,
name
:
'门店签到设置'
,
component
:
()
=>
import
(
/* webpackChunkName: "signIn" */
'../../views/sign/setting.vue'
),
meta
:
{
path
:
'/sign/setting/edit'
}
},
{
path
:
'setting/check'
,
name
:
'门店签到设置'
,
component
:
()
=>
import
(
/* webpackChunkName: "signIn" */
'../../views/sign/setting.vue'
),
meta
:
{
path
:
'/sign/setting/check'
}
},
{
path
:
'list'
,
name
:
'门店签到记录'
,
component
:
()
=>
...
...
src/views/evaluation/newest.vue
View file @
ac808fea
...
...
@@ -4,7 +4,7 @@
<store-group
width=
"240"
class=
"pr5"
:model=
"storeGroupData"
@
commit-store=
"getStoreGroup"
></store-group>
<el-date-picker
v-if=
"$route.meta.type !== 'bad'"
class=
"w250"
v-model=
"dateTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
@
change=
"refresh"
></el-date-picker>
<el-input
v-model=
"listParams.searchName"
class=
"w350"
placeholder=
"订单号/门店名称/会员姓名/卡号/导购名称"
clearable
@
change=
"refresh"
><i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i></el-input>
<el-button
icon=
"iconfont icon-icon_yunxiazai fz14"
v-if=
"$
route.meta.type !== 'bad'
"
class=
"fr"
type=
"primary"
@
click=
"exportLatestEvaluate"
>
下载Excel
</el-button>
<el-button
icon=
"iconfont icon-icon_yunxiazai fz14"
v-if=
"$
getButtonLimit($buttonCode.marketingEvaluationDownload) && $route.meta.type !== 'bad'"
:limit-code=
"$buttonCode.marketingEvaluationDownload
"
class=
"fr"
type=
"primary"
@
click=
"exportLatestEvaluate"
>
下载Excel
</el-button>
<el-button
v-if=
"$getButtonLimit($buttonCode.marketingEvaluationNewestAuto)"
:limit-code=
"$buttonCode.marketingEvaluationNewestAuto"
icon=
"el-icon-setting fz14"
class=
"fr mr10 setting"
@
click=
"auto.visible = true"
type=
"primary"
></el-button>
</div>
<div
class=
"filter--box"
>
...
...
src/views/sign/plan-list.vue
View file @
ac808fea
...
...
@@ -30,8 +30,8 @@
<el-table-column
label=
"操作"
align=
"left"
width=
"210px"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<!-- 只有未开始的计划可编辑 -->
<el-button
type=
"text"
v-if=
"$getButtonLimit($buttonCode.marketingEditSign) && scope.row.state === 0"
:limit-code=
"$buttonCode.marketingEditSign"
@
click=
"$router.push(`/sign/setting?id=$
{scope.row.storeSignId}
&
canEdit=1`)">编辑
</el-button>
<el-button
type=
"text"
v-else
@
click=
"$router.push(`/sign/setting?id=$
{scope.row.storeSignId}`)">查看
</el-button>
<el-button
type=
"text"
v-if=
"$getButtonLimit($buttonCode.marketingEditSign) && scope.row.state === 0"
:limit-code=
"$buttonCode.marketingEditSign"
@
click=
"$router.push(`/sign/setting
/edit
?id=$
{scope.row.storeSignId}
&
canEdit=1`)">编辑
</el-button>
<el-button
type=
"text"
v-else
@
click=
"$router.push(`/sign/setting
/check
?id=$
{scope.row.storeSignId}`)">查看
</el-button>
<dm-delete
v-if=
"$getButtonLimit($buttonCode.marketingDelSign)"
@
confirm=
"delPlan(scope.row)"
tips=
"是否删除该签到计划?"
>
<el-button
type=
"text"
:limit-code=
"$buttonCode.marketingDelSign"
>
删除
</el-button>
</dm-delete>
...
...
src/views/sign/setting.vue
View file @
ac808fea
...
...
@@ -210,7 +210,7 @@ export default {
created
()
{
this
.
$store
.
commit
(
'mutations_breadcrumb'
,
[
{
name
:
'门店签到'
},
{
name
:
'计划列表'
,
path
:
'/sign/plan'
},
{
name
:
`
${
this
.
$route
.
query
.
id
?
'编辑'
:
'新建'
}
计划`
,
path
:
''
}
]);
if
(
this
.
$route
.
query
.
id
)
{
this
.
canEdit
=
this
.
$route
.
query
.
canEdit
?
true
:
false
this
.
canEdit
=
this
.
$route
.
path
==
'/sign/setting/edit'
?
true
:
false
this
.
getDetail
();
}
else
{
this
.
canEdit
=
true
;
...
...
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