Commit 02e4c85f by chenyu

update: 删除巴拉定制需求

parent 98b7ef2e
......@@ -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));
}
}
}
......
......@@ -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)"
......
......@@ -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) {
......
......@@ -83,7 +83,6 @@
key="integral"
label="调整积分"
value="integral"
v-if="showHandleScoreBtn"
></el-option>
<el-option
key="bulkIntegral"
......
......@@ -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, doFetchqs } 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);
......
......@@ -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 } });
......
......@@ -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 }) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment