Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
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
member
member
Commits
02e4c85f
Commit
02e4c85f
authored
Dec 20, 2021
by
chenyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 删除巴拉定制需求
parent
98b7ef2e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
34 deletions
+19
-34
App.vue
src/App.vue
+8
-8
allCustomersList.vue
src/components/allCustomers/allCustomersList.vue
+0
-8
index.js
src/components/allCustomers/index.js
+2
-1
posmembers.vue
src/components/posmembers/posmembers.vue
+0
-1
bulkIntegral.vue
src/components/wechatmembers/bulkIntegral.vue
+3
-7
integralDataPage.vue
src/components/wechatmembers/integralDataPage.vue
+1
-5
store.js
src/store/store.js
+5
-4
No files found.
src/App.vue
View file @
02e4c85f
...
...
@@ -75,15 +75,15 @@ export default {
});
},
setStore
(
data
)
{
const
{
enterpriseId
,
superAdmin
}
=
data
;
const
ids
=
[
'ff8080816dd0385e016ddca436d01fe1'
,
// 生产巴拉商户
'ff8080816a36326c016a53380d8b5f52'
,
// 生产金华达摩
'ff8080815dacd3a2015dacd3ef5c0000'
,
// 测试金华达摩
]
this
.
$store
.
commit
(
'checkAdmin'
,
data
);
// 如果是巴拉的子账号,不显示积分相关的操作按钮
this
.
$store
.
commit
(
'showHandleScoreBtn'
,
!
(
ids
.
includes
(
enterpriseId
)
&&
superAdmin
==
0
));
// // 如果是巴拉的子账号,不显示积分相关的操作按钮(废弃)
// const { enterpriseId, superAdmin } = data;
// const ids = [
// 'ff8080816dd0385e016ddca436d01fe1', // 生产巴拉商户
// 'ff8080816a36326c016a53380d8b5f52', // 生产金华达摩
// 'ff8080815dacd3a2015dacd3ef5c0000', // 测试金华达摩
// ]
// this.$store.commit('showHandleScoreBtn', !(ids.includes(enterpriseId) && superAdmin == 0));
}
}
}
...
...
src/components/allCustomers/allCustomersList.vue
View file @
02e4c85f
...
...
@@ -65,14 +65,6 @@
style
=
"width: 150px;margin-right:10px;"
@
visible
-
change
=
"handleVisibleBatch"
>
<!--
如果是巴拉的子账号,不显示积分相关的操作按钮
-->
<
el
-
option
key
=
"integral"
label
=
"调整积分"
value
=
"integral"
:
limit
-
code
=
"getCode('memberBatchSetIntegral')"
v
-
if
=
"showHandleScoreBtn && getCodeAuth('memberBatchSetIntegral')"
/>
<
template
v
-
for
=
"item in batchOpt"
>
<
el
-
option
v
-
if
=
"getCodeAuth(item.code)"
...
...
src/components/allCustomers/index.js
View file @
02e4c85f
...
...
@@ -59,6 +59,7 @@ export default {
selectAll
:
false
,
// 列表全选开关
batchOpt
:
[
// 批处理选项
{
value
:
"integral"
,
label
:
"调整积分"
,
code
:
"memberBatchSetIntegral"
},
{
value
:
"grade"
,
label
:
"修改等级"
,
code
:
"memberBatchSetGrade"
},
{
value
:
"mainstore"
,
label
:
"修改服务门店"
,
code
:
"memberBatchSetService"
},
{
value
:
"store"
,
label
:
"修改协管门店"
,
code
:
"memberBatchSetCustomer"
},
...
...
@@ -136,7 +137,7 @@ export default {
ajaxObj
:
function
()
{
return
{
...
this
.
pageParam
,
pageName
:
this
.
pageName
};
},
...
mapState
([
"storeImageUrl"
,
"showEditClique"
,
"showHandleScoreBtn"
])
...
mapState
([
"storeImageUrl"
,
"showEditClique"
])
},
filters
:
{
sexFilter
:
function
(
v
)
{
...
...
src/components/posmembers/posmembers.vue
View file @
02e4c85f
...
...
@@ -83,7 +83,6 @@
key=
"integral"
label=
"调整积分"
value=
"integral"
v-if=
"showHandleScoreBtn"
></el-option>
<el-option
key=
"bulkIntegral"
...
...
src/components/wechatmembers/bulkIntegral.vue
View file @
02e4c85f
...
...
@@ -110,8 +110,8 @@
prop=
"importValue"
>
<el-select
v-model=
"formByImport.importValue"
placeholder=
"请选择导入类型"
@
change=
"handleChangeType"
>
<el-option
v-if=
"showHandleScoreBtn"
label=
"积分增加"
value=
"11"
></el-option>
<el-option
v-if=
"showHandleScoreBtn"
label=
"积分扣除"
value=
"12"
></el-option>
<el-option
label=
"积分增加"
value=
"11"
></el-option>
<el-option
label=
"积分扣除"
value=
"12"
></el-option>
<el-option
label=
"等级调整"
value=
"13"
></el-option>
<el-option
label=
"服务门店调整"
value=
"14"
></el-option>
<el-option
label=
"批量冻结会员"
value=
"15"
></el-option>
...
...
@@ -200,7 +200,7 @@
</div>
</template>
<
script
>
import
{
doFetch
,
doFetch
qs
}
from
"../../components/axios/api"
;
import
{
doFetchqs
}
from
"../../components/axios/api"
;
import
NavPath
from
"@/common/navbar/navbar.vue"
;
import
url
from
"../../components/axios/url"
;
import
{
...
...
@@ -208,7 +208,6 @@ import {
checkStatus
,
checkSuccess
}
from
"../../../static/js/checkStatus"
;
import
{
mapState
}
from
'vuex'
;
export
default
{
components
:
{
...
...
@@ -289,9 +288,6 @@ export default {
}
}
},
computed
:
{
...
mapState
([
'showHandleScoreBtn'
])
},
methods
:
{
handleChangeType
(
val
)
{
console
.
log
(
val
);
...
...
src/components/wechatmembers/integralDataPage.vue
View file @
02e4c85f
...
...
@@ -54,7 +54,7 @@
</el-select>
</div>
<el-button
v-if=
"
showHandleScoreBtn &&
getCodeAuth('memberAdjustIntegral')"
v-if=
"getCodeAuth('memberAdjustIntegral')"
type=
"primary"
:limit-code=
"getCode('memberAdjustIntegral')"
@
click=
"linkRoute('/modifyintegral')"
...
...
@@ -225,7 +225,6 @@ import {
}
from
"../../../static/js/checkStatus"
;
import
searchinput
from
"common/searchinput"
;
import
{
formatLongTime
}
from
"@/utils/utils"
;
import
{
mapState
}
from
'vuex'
;
import
authMethods
from
'@/mixins/auth'
;
export
default
{
name
:
"talkLogPage"
,
...
...
@@ -273,9 +272,6 @@ export default {
};
},
mixins
:
[
authMethods
],
computed
:
{
...
mapState
([
'showHandleScoreBtn'
])
},
methods
:
{
linkRoute
(
route
)
{
this
.
$router
.
push
({
path
:
route
,
query
:
{
memberId
:
this
.
memberId
}
});
...
...
src/store/store.js
View file @
02e4c85f
...
...
@@ -16,7 +16,7 @@ export default new Vuex.Store({
uniqueId
:
''
,
isAdmin
:
false
,
layoutTips
:
''
,
showHandleScoreBtn
:
true
,
// 是否显示积分相关的操作按钮 true:显示 false:不显示
// showHandleScoreBtn: true, // 是否显示积分相关的操作按钮 true:显示 false:不显示 【废弃】
},
mutations
:
{
[
types
.
TITLE
]:
(
state
,
data
)
=>
{
...
...
@@ -47,9 +47,10 @@ export default new Vuex.Store({
[
'setEditClique'
](
state
,
val
)
{
state
.
showEditClique
=
val
;
},
showHandleScoreBtn
(
state
,
data
)
{
state
.
showHandleScoreBtn
=
data
;
}
// 废弃 巴拉定制需求 子账号不显示积分相关
// showHandleScoreBtn(state, data) {
// state.showHandleScoreBtn = data;
// }
},
actions
:
{
getStorePicture
({
commit
})
{
...
...
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