Commit e0755624 by liuchenxi

update: 全局部分按钮按代理权限禁用

parent e7662c65
...@@ -124,6 +124,7 @@ export default { ...@@ -124,6 +124,7 @@ export default {
changeSelect(item) { changeSelect(item) {
const that = this; const that = this;
that.selectBrand = item; that.selectBrand = item;
this.$store.commit('changeWxEntertype', item.wxEnterpriseType);
that.$emit('selectBrandId', item.enterpriseId); that.$emit('selectBrandId', item.enterpriseId);
that.brandVisible = false; that.brandVisible = false;
}, },
...@@ -151,6 +152,7 @@ export default { ...@@ -151,6 +152,7 @@ export default {
} }
that.selectBrand = that.brandListData[0]; that.selectBrand = that.brandListData[0];
that.activeBrand = that.brandListData[0].enterpriseId; that.activeBrand = that.brandListData[0].enterpriseId;
this.$store.commit('changeWxEntertype', that.brandListData[0].wxEnterpriseType);
// 由于门店选择组件中没有品牌id ,只有 groupId // 由于门店选择组件中没有品牌id ,只有 groupId
that.$emit('selectBrandId', that.brandListData[0].enterpriseId, that.brandListData[0].enterpriseId); that.$emit('selectBrandId', that.brandListData[0].enterpriseId, that.brandListData[0].enterpriseId);
} }
......
...@@ -20,7 +20,8 @@ export default new Vuex.Store({ ...@@ -20,7 +20,8 @@ export default new Vuex.Store({
bgHeight: window.screen.availHeight - 440 - 24 + 'px', bgHeight: window.screen.availHeight - 440 - 24 + 'px',
addDepartment: [], // 添加 addDepartment: [], // 添加
editDepartment: [], // 编辑配置 editDepartment: [], // 编辑配置
delDepartment: [] // 删除配置 delDepartment: [], // 删除配置
wxEnterpriseType: 0
}, },
mutations: { mutations: {
[types.LOGIN]: (state, data) => { [types.LOGIN]: (state, data) => {
...@@ -56,6 +57,9 @@ export default new Vuex.Store({ ...@@ -56,6 +57,9 @@ export default new Vuex.Store({
state.addDepartment = []; state.addDepartment = [];
state.editDepartment = []; state.editDepartment = [];
state.delDepartment = []; state.delDepartment = [];
},
changeWxEntertype: (state, data) => {
state.wxEnterpriseType = data;
} }
}, },
actions: { actions: {
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</div> --> </div> -->
<div class="set-line-item"> <div class="set-line-item">
<span class="set-line-item_title font-14 color-606266 text-right"></span> <span class="set-line-item_title font-14 color-606266 text-right"></span>
<el-button type="primary" :loading="loadingBtn" @click="saveSet">保存</el-button> <el-button type="primary" :loading="loadingBtn" @click="saveSet" :disabled="$store.state.wxEnterpriseType">保存</el-button>
</div> </div>
</div> </div>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="p-20"> <div class="p-20">
<div class="flex flex-space-between m-b-20"> <div class="flex flex-space-between m-b-20">
<el-input placeholder="请输入卡券名称" maxlength="50" v-model="searchInput" class="w-264" style="width: 264px;" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input> <el-input placeholder="请输入卡券名称" maxlength="50" v-model="searchInput" class="w-264" style="width: 264px;" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"> <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input>
<el-button type="primary" @click="toNewCard">新增卡券</el-button> <el-button type="primary" @click="toNewCard" :disabled="$store.state.wxEnterpriseType">新增卡券</el-button>
</div> </div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width: calc(100% - 3px);"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width: calc(100% - 3px);">
<el-table-column prop="" label="卡券名称" show-overflow-tooltip> <el-table-column prop="" label="卡券名称" show-overflow-tooltip>
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip> <el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button> <el-button type="text" @click="toEdit(scope.$index, scope.row)" :disabled="$store.state.wxEnterpriseType">编辑</el-button>
<el-button type="text" @click="toDel(scope.$index, scope.row)">删除</el-button> <el-button type="text" @click="toDel(scope.$index, scope.row)" :disabled="$store.state.wxEnterpriseType">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<div class="font-14 color-909399 set-tip-item">注:保存勾选项后,顾客详情 - 消费记录中将展示达摩商城交易成功的订单</div> <div class="font-14 color-909399 set-tip-item">注:保存勾选项后,顾客详情 - 消费记录中将展示达摩商城交易成功的订单</div>
</div> </div>
<div class="m-t-46 m-l-25"> <div class="m-t-46 m-l-25">
<el-button type="primary" :loading="loading" @click="submit('showFlag')">保 存</el-button> <el-button type="primary" :loading="loading" @click="submit('showFlag')" :disabled="$store.state.wxEnterpriseType">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<div> <div>
<el-checkbox v-model="overTimeSeeFlag" @change="saveGroupSet"></el-checkbox> <el-checkbox v-model="overTimeSeeFlag" @change="saveGroupSet"></el-checkbox>
<el-tooltip class="item" effect="dark" content="开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组" placement="top-start"> <span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;" class="font-14 color-606266 m-r-20">会员分组失效后不展示</span></el-tooltip> <el-tooltip class="item" effect="dark" content="开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组" placement="top-start"> <span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;" class="font-14 color-606266 m-r-20">会员分组失效后不展示</span></el-tooltip>
<el-button type="primary" :loading="loadingBtn" @click="toSync">立即同步</el-button> <el-button type="primary" :loading="loadingBtn" @click="toSync" :disabled="$store.state.wxEnterpriseType">立即同步</el-button>
<span v-if="syncDate" class="font-14 color-606266 p-r-10">最近一次同步时间:{{ syncDate | formatTimeStamp }}</span> <span v-if="syncDate" class="font-14 color-606266 p-r-10">最近一次同步时间:{{ syncDate | formatTimeStamp }}</span>
</div> </div>
</div> </div>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<div class=" border-box p-lbr-20"> <div class=" border-box p-lbr-20">
<div class="flex flex-space-between"> <div class="flex flex-space-between">
<div></div> <div></div>
<div><span class="font-12 color-909399">最多新建20个模板</span><el-button :disabled="templateList.length >= 20" class="m-l-20" type="primary" @click="addTemplate">新建模版</el-button></div> <div><span class="font-12 color-909399">最多新建20个模板</span><el-button :disabled="$store.state.wxEnterpriseType || templateList.length >= 20" class="m-l-20" type="primary" @click="addTemplate">新建模版</el-button></div>
</div> </div>
<div class="m-t-20"> <div class="m-t-20">
<el-table class="select-table" ref="tempTable" v-loading="loading" :data="templateList" tooltip-effect="dark" :style="{ width: '100%' }"> <el-table class="select-table" ref="tempTable" v-loading="loading" :data="templateList" tooltip-effect="dark" :style="{ width: '100%' }">
...@@ -103,9 +103,9 @@ ...@@ -103,9 +103,9 @@
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="toEdit(scope.$index, scope.row)" type="text">编辑</el-button> <el-button @click="toEdit(scope.$index, scope.row)" type="text" :disabled="$store.state.wxEnterpriseType">编辑</el-button>
<el-button @click="toStore(scope.$index, scope.row)" type="text">门店范围设置</el-button> <el-button @click="toStore(scope.$index, scope.row)" type="text" :disabled="$store.state.wxEnterpriseType">门店范围设置</el-button>
<el-button @click="toDel(scope.$index, scope.row)" type="text">删除</el-button> <el-button @click="toDel(scope.$index, scope.row)" type="text" :disabled="$store.state.wxEnterpriseType">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class="app-detail-pane border-box p-20"> <div class="app-detail-pane border-box p-20">
<el-checkbox v-model="myCustomData.searchFlag">允许全品牌搜索</el-checkbox> <el-checkbox v-model="myCustomData.searchFlag">允许全品牌搜索</el-checkbox>
<div class="m-t-46"> <div class="m-t-46">
<el-button type="primary" :loading="loading" @click="submit('searchFlag')">保 存</el-button> <el-button type="primary" :loading="loading" @click="submit('searchFlag')" :disabled="$store.state.wxEnterpriseType">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<el-checkbox v-model="myCustomData.allowGuideOnlineChat" @change="changeContact">添加会员/发消息</el-checkbox> <el-checkbox v-model="myCustomData.allowGuideOnlineChat" @change="changeContact">添加会员/发消息</el-checkbox>
</div> </div>
<div class="m-t-46"> <div class="m-t-46">
<el-button type="primary" :loading="loading" @click="submit('showFlag')">保 存</el-button> <el-button type="primary" :loading="loading" @click="submit('showFlag')" :disabled="$store.state.wxEnterpriseType">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<span class="p-r-10 font-14 color-303133">禁止订单关联导购回复评价</span><span class="font-12 color-909399 p-l-10">注:开启后,订单关联导购不可回复评价</span> <span class="p-r-10 font-14 color-303133">禁止订单关联导购回复评价</span><span class="font-12 color-909399 p-l-10">注:开启后,订单关联导购不可回复评价</span>
</div> </div>
<div class="m-t-46"> <div class="m-t-46">
<el-button type="primary" :loading="loading" @click="submit('searchFlag')">保 存</el-button> <el-button type="primary" :loading="loading" @click="submit('searchFlag')" :disabled="$store.state.wxEnterpriseType">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</template> </template>
</div> </div>
</section> </section>
<div class="day-set-btn m-t-24 text-center" v-if="settingAble == 1"> <div class="day-set-btn m-t-24 text-center" v-if="!$store.state.wxEnterpriseType && settingAble == 1">
<el-button type="primary" plain @click="resetData">重置</el-button> <el-button type="primary" plain @click="resetData">重置</el-button>
<el-button type="primary" @click="saveSet">提交</el-button> <el-button type="primary" @click="saveSet">提交</el-button>
</div> </div>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</div> </div>
<div><el-switch v-model="myCustomData.showPriceFlag"></el-switch><span class="font-14 color-303133 p-l-10">商品详情屏蔽价格</span><span class="font-12 color-909399 p-l-10">注:开启后,商品列表及商品详情中会屏蔽价格字段。关闭后显示价格。</span></div> <div><el-switch v-model="myCustomData.showPriceFlag"></el-switch><span class="font-14 color-303133 p-l-10">商品详情屏蔽价格</span><span class="font-12 color-909399 p-l-10">注:开启后,商品列表及商品详情中会屏蔽价格字段。关闭后显示价格。</span></div>
<div class="m-t-46"> <div class="m-t-46">
<el-button type="primary" :loading="loading" @click="submit('searchFlag')">保 存</el-button> <el-button type="primary" :loading="loading" @click="submit('searchFlag')" :disabled="$store.state.wxEnterpriseType">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
</div> --> </div> -->
<div class="set-line-item"> <div class="set-line-item">
<span class="set-line-item_title font-14 color-606266 text-right"></span> <span class="set-line-item_title font-14 color-606266 text-right"></span>
<el-button type="primary" :loading="loadingBtn" @click="saveSet">保存</el-button> <el-button type="primary" :loading="loadingBtn" @click="saveSet" :disabled="$store.state.wxEnterpriseType">保存</el-button>
</div> </div>
</div> </div>
......
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