Commit 5490747c by caoyanzhi

update: 按钮权限数据

parent 57e79d91
...@@ -12,9 +12,7 @@ module.exports = { ...@@ -12,9 +12,7 @@ module.exports = {
}, },
memberTagSet: { memberTagSet: {
// 1.同步历史 (按钮,控制“同步记录”页面的所哟有操作权限) // 1.同步历史 (按钮,控制“同步记录”页面的所哟有操作权限)
syncTagLog: ['同步历史', 0, 0, 'syncHistory'], syncTagLog: ['同步历史', 0, 0, 'syncHistory']
// 2.待开启同步标签 (按钮,控制“待开启同步标签”所有操作权限)
willSyncTag: ['待开启同步标签', 1, 2]
}, },
// 客户展示设置 // 客户展示设置
memberShowSet: { memberShowSet: {
...@@ -66,6 +64,9 @@ module.exports = { ...@@ -66,6 +64,9 @@ module.exports = {
saveEvaluateSet: ['保存', 1, 1] saveEvaluateSet: ['保存', 1, 1]
}, },
material: { material: {
addMaterialGroup: ['新建分组', 1, 1],
editMaterialGroup: ['编辑分组', 1, 1],
delMaterialGroup: ['删除分组', 1, 1],
// 1.新建文本 (按钮,控制“新建文本”弹窗内所有操作权限); // 1.新建文本 (按钮,控制“新建文本”弹窗内所有操作权限);
addText: ['文本-新建文本', 1, 1], addText: ['文本-新建文本', 1, 1],
// 2.编辑 (按钮,控制“编辑文本”弹窗内所有操作权限); // 2.编辑 (按钮,控制“编辑文本”弹窗内所有操作权限);
...@@ -74,8 +75,6 @@ module.exports = { ...@@ -74,8 +75,6 @@ module.exports = {
delText: ['文本-删除', 1, 1], delText: ['文本-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限) // 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
textAssignStore: ['文本-分配企业', 1, 2], textAssignStore: ['文本-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
textUsedStore: ['文本-适用门店', 1, 2],
// 1.新建图片 (按钮,控制“新建图片”弹窗内所有操作权限); // 1.新建图片 (按钮,控制“新建图片”弹窗内所有操作权限);
addImage: ['图片-新建图片', 1, 1], addImage: ['图片-新建图片', 1, 1],
// 2.编辑 (按钮,控制“编辑图片”弹窗内所有操作权限); // 2.编辑 (按钮,控制“编辑图片”弹窗内所有操作权限);
...@@ -84,8 +83,6 @@ module.exports = { ...@@ -84,8 +83,6 @@ module.exports = {
delImage: ['图片-删除', 1, 1], delImage: ['图片-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限) // 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
imageAssignStore: ['图片-分配企业', 1, 2], imageAssignStore: ['图片-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
imageUsedStore: ['图片-适用门店', 1, 2],
// 1.新建网页 (按钮,控制“新建网页”弹窗内所有操作权限); // 1.新建网页 (按钮,控制“新建网页”弹窗内所有操作权限);
addWeb: ['网页-新建网页', 1, 1], addWeb: ['网页-新建网页', 1, 1],
// 2.编辑 (按钮,控制“编辑网页”弹窗内所有操作权限); // 2.编辑 (按钮,控制“编辑网页”弹窗内所有操作权限);
...@@ -94,8 +91,6 @@ module.exports = { ...@@ -94,8 +91,6 @@ module.exports = {
delWeb: ['网页-删除', 1, 1], delWeb: ['网页-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限) // 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
webAssignStore: ['网页-分配企业', 1, 2], webAssignStore: ['网页-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
webUsedStore: ['网页-适用门店', 1, 2],
// 1.新建视频 (按钮,控制“新建视频”弹窗内所有操作权限); // 1.新建视频 (按钮,控制“新建视频”弹窗内所有操作权限);
addVideo: ['视频-新建视频', 1, 1], addVideo: ['视频-新建视频', 1, 1],
// 2.编辑 制“编辑视频”弹窗内所有操作权限); // 2.编辑 制“编辑视频”弹窗内所有操作权限);
...@@ -104,8 +99,6 @@ module.exports = { ...@@ -104,8 +99,6 @@ module.exports = {
delVideo: ['视频-删除', 1, 1], delVideo: ['视频-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限) // 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
videoAssignStore: ['视频-分配企业', 1, 2], videoAssignStore: ['视频-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
videoUsedStore: ['视频-适用门店', 1, 2],
// 1.新建文件 (按钮,控制“新建文件”弹窗内所有操作权限); // 1.新建文件 (按钮,控制“新建文件”弹窗内所有操作权限);
addFile: ['文件-新建文件', 1, 1], addFile: ['文件-新建文件', 1, 1],
// 2.编辑 (按钮,控制“编辑文件”弹窗内所有操作权限); // 2.编辑 (按钮,控制“编辑文件”弹窗内所有操作权限);
...@@ -114,8 +107,6 @@ module.exports = { ...@@ -114,8 +107,6 @@ module.exports = {
delFile: ['文件-删除', 1, 1], delFile: ['文件-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限) // 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
fileAssignStore: ['文件-分配企业', 1, 2], fileAssignStore: ['文件-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
fileUsedStore: ['文件-适用门店', 1, 2],
// 1.新建小程序 (按钮,控制“新建小程序”弹窗内所有操作权限); // 1.新建小程序 (按钮,控制“新建小程序”弹窗内所有操作权限);
addApps: ['小程序-新建小程序', 1, 1], addApps: ['小程序-新建小程序', 1, 1],
// 2.编辑 (按钮,控制“编辑小程序”弹窗内所有操作权限); // 2.编辑 (按钮,控制“编辑小程序”弹窗内所有操作权限);
...@@ -124,8 +115,6 @@ module.exports = { ...@@ -124,8 +115,6 @@ module.exports = {
delApps: ['小程序-删除', 1, 1], delApps: ['小程序-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限) // 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
appsAssignStore: ['小程序-分配企业', 1, 2], appsAssignStore: ['小程序-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
appsUsedStore: ['小程序-适用门店', 1, 2],
}, },
goodsShowSet: { goodsShowSet: {
// 1.保存(按钮) // 1.保存(按钮)
...@@ -167,14 +156,21 @@ module.exports = { ...@@ -167,14 +156,21 @@ module.exports = {
// 1.保存(按钮) // 1.保存(按钮)
saveTaskSet: ['保存', 1, 1] saveTaskSet: ['保存', 1, 1]
}, },
// TODO 云日报设置-系统报表 // 云日报设置-系统报表
// TODO 1.模板设置 (按钮,控制“模板设置”弹窗内所有操作权限); systemReport: {
// TODO 2.保存并启用(按钮) // 1.模板设置(按钮,控制“模板设置”弹窗内所有操作权限);
// TODO 云日报设置-自定义报表 settingSystemReport: ['模板设置', 1, 2],
// TODO 1.新建模板 (按钮,控制“新建模板”页面内所有操作权限); // 2.保存并启用(按钮)
// TODO 2.复制 (按钮,控制“新建模板”页面内所有操作权限); saveSystemReport: ['保存并启用', 1, 2],
// TODO 3.编辑 (按钮,控制“编辑模板”页面内所有操作权限); // 1.新建模板(按钮,控制“新建模板”页面内所有操作权限);
// TODO 4.删除(按钮) addCustomReport: ['新建模板', 1, 0, 'customReportSet'],
// 2.复制(按钮,控制“新建模板”页面内所有操作权限);
copyCustomReport: ['复制', 1, 0, 'customReportCopy'],
// 3.编辑(按钮,控制“编辑模板”页面内所有操作权限);
editCustomReport: ['编辑', 1, 0, 'customReportEdit'],
// 4.删除(按钮)
delCustomReport: ['删除', 1, 1]
},
monthList: { monthList: {
// 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限); // 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限);
monthTarget: ['门店月指标', 1, 0, 'storeMonthTask'], monthTarget: ['门店月指标', 1, 0, 'storeMonthTask'],
...@@ -241,7 +237,6 @@ module.exports = { ...@@ -241,7 +237,6 @@ module.exports = {
exportTaskView: ['导出', 1, 2], exportTaskView: ['导出', 1, 2],
// 2.批量删除(按钮) // 2.批量删除(按钮)
multipleDelTaskView: ['批量删除', 1, 1], multipleDelTaskView: ['批量删除', 1, 1],
// TODO 3.导出任务执行情况(按钮)
// 4.查看详情(按钮,控制话务“任务门店详情”页面权限) // 4.查看详情(按钮,控制话务“任务门店详情”页面权限)
checkTaskView: ['查看详情', 0, 0, 'taskViewDetail'] checkTaskView: ['查看详情', 0, 0, 'taskViewDetail']
}, },
...@@ -251,6 +246,7 @@ module.exports = { ...@@ -251,6 +246,7 @@ module.exports = {
// 6.任务门店详情-批量删除(按钮) // 6.任务门店详情-批量删除(按钮)
multipleDelTaskViewDetail: ['批量删除', 1, 1], multipleDelTaskViewDetail: ['批量删除', 1, 1],
// 查看详情按钮权限与门店视图中查看详情权限一致 // 查看详情按钮权限与门店视图中查看详情权限一致
checkTaskDetail: ['查看详情', 0, 0, 'taskRecord']
}, },
salutatory: { salutatory: {
// 1.新建欢迎语 (按钮,控制“新建欢迎语”页面内所有操作权限); // 1.新建欢迎语 (按钮,控制“新建欢迎语”页面内所有操作权限);
...@@ -260,12 +256,20 @@ module.exports = { ...@@ -260,12 +256,20 @@ module.exports = {
// 3.删除(按钮) // 3.删除(按钮)
delSalutatory: ['删除', 1, 1] delSalutatory: ['删除', 1, 1]
}, },
// TODO 审核中心-待审核 // 审核中心-待审核
// TODO 1.批量同意(按钮) unreview: {
// TODO 2.同意(按钮) // 1.批量同意(按钮)
// TODO 3.拒绝(按钮) multipleResolve: ['批量同意', 1, 2],
// TODO 审核中心-审核设置 // 2.同意(按钮)
// TODO 1.保存(按钮) singleResolve: ['同意', 1, 2],
// 3.拒绝(按钮)
singleReject: ['拒绝', 1, 2]
},
// 审核中心-审核设置
reviewSet: {
// 1.保存(按钮)
saveApplySetting: ['保存', 1, 2]
},
contactsList: { contactsList: {
// 1.刷新企业成员(按钮) // 1.刷新企业成员(按钮)
refreshStoreMember: ['刷新企业成员', 1, 2], refreshStoreMember: ['刷新企业成员', 1, 2],
...@@ -276,6 +280,9 @@ module.exports = { ...@@ -276,6 +280,9 @@ module.exports = {
// 4.详情(按钮,控制“成员详情”弹窗内所有操作权限); // 4.详情(按钮,控制“成员详情”弹窗内所有操作权限);
checkContactMemberDetail: ['详情', 1, 2] checkContactMemberDetail: ['详情', 1, 2]
}, },
syncLog: {
checkLog: ['查看失败日志', 1, 2]
},
// 导购设置-导购操作权限设置 // 导购设置-导购操作权限设置
// 保存(按钮) // 保存(按钮)
'guide-setting': { 'guide-setting': {
...@@ -305,7 +312,9 @@ module.exports = { ...@@ -305,7 +312,9 @@ module.exports = {
// 1.查看授权设置(按钮,控制“查看授权商户”页面内所有操作权限); // 1.查看授权设置(按钮,控制“查看授权商户”页面内所有操作权限);
checkAuth: ['查看授权设置', 1, 0, 'authMerchantForm'], checkAuth: ['查看授权设置', 1, 0, 'authMerchantForm'],
// 2.绑定门店列表(按钮,控制“绑定门店列表”页面内所有操作权限) // 2.绑定门店列表(按钮,控制“绑定门店列表”页面内所有操作权限)
bindStoreList: ['绑定门店列表', 1, 0, 'merchantStoreList'] bindStoreList: ['绑定门店列表', 1, 0, 'merchantStoreList'],
// 刷新门店
refreshStore: ['刷新门店', 1, 2]
}, },
adminList: { adminList: {
// 1.刷新(按钮) // 1.刷新(按钮)
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
<span style="font-size:14px;" class="m-l-10">创建时间:</span><el-date-picker class="m-l-10" v-model="conditionObj.dateRange" :picker-options="pickerOptions" @change="changeDate" :editable="false" :value-format="'yyyy-MM-dd'" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker> <span style="font-size:14px;" class="m-l-10">创建时间:</span><el-date-picker class="m-l-10" v-model="conditionObj.dateRange" :picker-options="pickerOptions" @change="changeDate" :editable="false" :value-format="'yyyy-MM-dd'" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker>
</div> </div>
<div class="table-condition-right"> <div class="table-condition-right">
<el-button type="danger" @click="multDel">批量删除</el-button> <el-button type="danger" v-if="$getButtonLimit($buttonCode.multipleDelTaskView)" :limit-code="$buttonCode.multipleDelTaskView" @click="multDel">批量删除</el-button>
<el-button :loading="loadingBtn" type="primary" @click="exportExcel">导出</el-button> <el-button :loading="loadingBtn" type="primary" v-if="$getButtonLimit($buttonCode.exportTaskView)" :limit-code="$buttonCode.exportTaskView" @click="exportExcel">导出</el-button>
</div> </div>
</div> </div>
<el-table class="select-table" ref="multipleTable" :key="tableRefresh" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange"> <el-table class="select-table" ref="multipleTable" :key="tableRefresh" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange">
...@@ -70,9 +70,9 @@ ...@@ -70,9 +70,9 @@
<span v-else>{{ scope.row.delStatusDesc }}</span> <span v-else>{{ scope.row.delStatusDesc }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.checkTaskView)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="toDetail(scope.$index, scope.row)">查看详情</el-button> <el-button type="text" v-if="$getButtonLimit($buttonCode.checkTaskView)" :limit-code="$buttonCode.checkTaskView" @click="toDetail(scope.$index, scope.row)">查看详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<!-- <span>模板列表({{ tableData.length }}</span> --> <!-- <span>模板列表({{ tableData.length }}</span> -->
<span class="font-14 color-909399">注:创建自定义日报后才能触发并下发日报</span> <span class="font-14 color-909399">注:创建自定义日报后才能触发并下发日报</span>
</div> </div>
<div><el-button type="primary" @click="toCustomSet('')">新建模板</el-button></div> <div><el-button v-if="$getButtonLimit($buttonCode.addCustomReport)" :limit-code="$buttonCode.addCustomReport" type="primary" @click="toCustomSet('')">新建模板</el-button></div>
</div> </div>
<el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"> <el-table class="select-table" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%">
<el-table-column label="模板名称" show-overflow-tooltip> <el-table-column label="模板名称" show-overflow-tooltip>
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
<span v-if="scope.row.storeType == 4">托管门店</span> <span v-if="scope.row.storeType == 4">托管门店</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.copyCustomReport) || $getButtonLimit($buttonCode.editCustomReport) || $getButtonLimit($buttonCode.delCustomReport)">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button type="text" @click="handlePreview(scope.$index, scope.row)">预览</el-button> --> <!-- <el-button type="text" @click="handlePreview(scope.$index, scope.row)">预览</el-button> -->
<el-button type="text" @click="handleCopy(scope.$index, scope.row)">复制</el-button> <el-button v-if="$getButtonLimit($buttonCode.copyCustomReport)" :limit-code="$buttonCode.copyCustomReport" type="text" @click="handleCopy(scope.$index, scope.row)">复制</el-button>
<el-button type="text" @click="handleEdit(scope.$index, scope.row)">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editCustomReport)" :limit-code="$buttonCode.editCustomReport" type="text" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" @click="handleDelete(scope.$index, scope.row)">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delCustomReport)" :limit-code="$buttonCode.delCustomReport" type="text" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
</div> </div>
</div> </div>
<div class="template-btns flex-1 flex-r"> <div class="template-btns flex-1 flex-r">
<el-button type="primary" plain @click="templateSet">模板设置</el-button> <el-button type="primary" plain v-if="$getButtonLimit($buttonCode.settingSystemReport)" :limit-code="$buttonCode.settingSystemReport" @click="templateSet">模板设置</el-button>
<!-- <el-button type="primary" plain @click="saveAndBack('preview')">预览</el-button> --> <!-- <el-button type="primary" plain @click="saveAndBack('preview')">预览</el-button> -->
<el-button type="primary" :loading="loadingBtn" @click="saveAndBack('save')">保存并启用</el-button> <el-button type="primary" v-if="$getButtonLimit($buttonCode.saveSystemReport)" :limit-code="$buttonCode.saveSystemReport" :loading="loadingBtn" @click="saveAndBack('save')">保存并启用</el-button>
</div> </div>
</div> </div>
<!-- 模板body --> <!-- 模板body -->
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
<div class="btn-group"> <div class="btn-group">
<el-button v-if="$getButtonLimit($buttonCode.syncTagLog)" :limit-code="$buttonCode.syncTagLog" @click="$router.push('/syncHistory')">同步历史</el-button> <el-button v-if="$getButtonLimit($buttonCode.syncTagLog)" :limit-code="$buttonCode.syncTagLog" @click="$router.push('/syncHistory')">同步历史</el-button>
<el-button v-if="$getButtonLimit($buttonCode.willSyncTag)" :limit-code="$buttonCode.willSyncTag" @click="drawer = true" type="primary" :disabled="!canSync || !canUseCount" :class="['sync-btn', isShake ? 'shake' : '']">待开启同步标签( {{ tagIds.length }}</el-button><span v-if="canUseCount === 0" class="no-use-count">本月同步次数已用尽</span> <el-button @click="drawer = true" type="primary" :disabled="!canSync || !canUseCount" :class="['sync-btn', isShake ? 'shake' : '']">待开启同步标签( {{ tagIds.length }}</el-button><span v-if="canUseCount === 0" class="no-use-count">本月同步次数已用尽</span>
</div> </div>
</div> </div>
<div class="tag-content-bottom"> <div class="tag-content-bottom">
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" v-if="$getButtonLimit($buttonCode.checkAuth)" :limit-code="$buttonCode.checkAuth" @click="AddAuthMerchant(scope.row)">查看授权设置</el-button> <el-button type="text" v-if="$getButtonLimit($buttonCode.checkAuth)" :limit-code="$buttonCode.checkAuth" @click="AddAuthMerchant(scope.row)">查看授权设置</el-button>
<el-button v-if="$getButtonLimit($buttonCode.bindStoreList)" :limit-code="$buttonCode.bindStoreList" type="text" @click="toStoreList(scope.row)">绑定门店列表</el-button> <el-button v-if="$getButtonLimit($buttonCode.bindStoreList)" :limit-code="$buttonCode.bindStoreList" type="text" @click="toStoreList(scope.row)">绑定门店列表</el-button>
<el-button slot="reference" type="text" @click="refreshStoreBind(scope.row)">刷新门店 </el-button> <el-button v-if="$getButtonLimit($buttonCode.refreshStore)" :limit-code="$buttonCode.refreshStore" type="text" @click="refreshStoreBind(scope.row)">刷新门店 </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
<span :class="['span-dot', scope.row.statusFlag == 4 ? 'bg-52c41a' : 'bg-f5222d']"></span><span class="font-14 color-606266">{{ scope.row.statusFlag == 4 ? '成功' : scope.row.statusFlag == 5 ? '完成有错误' : scope.row.statusFlag == 6 ? '有错误关闭' : '' }}</span> <span :class="['span-dot', scope.row.statusFlag == 4 ? 'bg-52c41a' : 'bg-f5222d']"></span><span class="font-14 color-606266">{{ scope.row.statusFlag == 4 ? '成功' : scope.row.statusFlag == 5 ? '完成有错误' : scope.row.statusFlag == 6 ? '有错误关闭' : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip> <el-table-column prop="" label="操作" show-overflow-tooltip v-if="$getButtonLimit($buttonCode.checkLog)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.statusFlag == 5 || scope.row.statusFlag == 6" type="text" @click="toShowLog(scope.$index, scope.row)">查看失败日志</el-button> <el-button v-if="(scope.row.statusFlag == 5 || scope.row.statusFlag == 6) && $getButtonLimit($buttonCode.checkLog)" :limit-code="$buttonCode.checkLog" type="text" @click="toShowLog(scope.$index, scope.row)">查看失败日志</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
<div class="material-body flex"> <div class="material-body flex">
<div class="material-left"> <div class="material-left">
<div class="material-left-add m-t-10 text-center"> <div class="material-left-add m-t-10 text-center">
<div class="add-group font-14 color-909399 cursor-pointer line-h-32" @click="addGroup"><span class="el-icon-plus"></span><span class="p-l-5">新建分组</span></div> <div class="add-group font-14 color-909399 cursor-pointer line-h-32" v-if="$getButtonLimit($buttonCode.addMaterialGroup)" :limit-code="$buttonCode.addMaterialGroup" @click="addGroup">
<span class="el-icon-plus"></span>
<span class="p-l-5">新建分组</span>
</div>
</div> </div>
<div class="group-body"> <div class="group-body">
<div :class="['no-group m-t-10 line-h-32 font-14 color-606266 cursor-pointer', currentCategoryId == '-1' ? 'current-group' : '']" @click="selectNoGroup"><span style="color: transparent;" :class="['color-c0c4cc font-12 cursor-pointer p-l-10 el-icon-caret-bottom el-icon-caret-right']"></span>全部分组</div> <div :class="['no-group m-t-10 line-h-32 font-14 color-606266 cursor-pointer', currentCategoryId == '-1' ? 'current-group' : '']" @click="selectNoGroup"><span style="color: transparent;" :class="['color-c0c4cc font-12 cursor-pointer p-l-10 el-icon-caret-bottom el-icon-caret-right']"></span>全部分组</div>
...@@ -24,11 +27,11 @@ ...@@ -24,11 +27,11 @@
<li class="group-cell" :key="index + 'group'"> <li class="group-cell" :key="index + 'group'">
<div class="cursor-pointer group-cell-div" @click.stop="selectGroup(item)"> <div class="cursor-pointer group-cell-div" @click.stop="selectGroup(item)">
<span :class="['color-c0c4cc font-12 cursor-pointer', item.children.length ? 'color-c0c4cc' : 'color-transparent', item.expand ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></span><span :class="['group-name font-14 color-606266 p-l-10', currentCategoryId == item.categoryId ? 'current-group' : '']">{{ item.categoryName }}</span> <span :class="['color-c0c4cc font-12 cursor-pointer', item.children.length ? 'color-c0c4cc' : 'color-transparent', item.expand ? 'el-icon-caret-bottom' : 'el-icon-caret-right']"></span><span :class="['group-name font-14 color-606266 p-l-10', currentCategoryId == item.categoryId ? 'current-group' : '']">{{ item.categoryName }}</span>
<el-popover placement="bottom" width="75" trigger="hover" popper-class="group-popover"> <el-popover placement="bottom" width="75" trigger="hover" popper-class="group-popover" v-if="$getButtonLimit($buttonCode.addMaterialGroup) || $getButtonLimit($buttonCode.editMaterialGroup) || $getButtonLimit($buttonCode.delMaterialGroup)">
<ul> <ul>
<li class="line-h-32 font-14 color-606266" @click.stop="addChildGroup(item)">新增子分组</li> <li class="line-h-32 font-14 color-606266" v-if="$getButtonLimit($buttonCode.addMaterialGroup)" :limit-code="$buttonCode.addMaterialGroup" @click.stop="addChildGroup(item)">新增子分组</li>
<li class="line-h-32 font-14 color-606266" @click.stop="editGroup(item)">编辑</li> <li class="line-h-32 font-14 color-606266" v-if="$getButtonLimit($buttonCode.editMaterialGroup)" :limit-code="$buttonCode.editMaterialGroup" @click.stop="editGroup(item)">编辑</li>
<li v-if="!item.children.length" class="line-h-32 font-14 color-606266" @click.stop="delGroup(item)">删除</li> <li v-if="!item.children.length && $getButtonLimit($buttonCode.delMaterialGroup)" :limit-code="$buttonCode.delMaterialGroup" class="line-h-32 font-14 color-606266" @click.stop="delGroup(item)">删除</li>
</ul> </ul>
<span class="iconfont-hb3 icongengduo color-afaeae cursor-pointer operate-icon" slot="reference"></span> <span class="iconfont-hb3 icongengduo color-afaeae cursor-pointer operate-icon" slot="reference"></span>
</el-popover> </el-popover>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,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="postData">保 存</el-button> <el-button v-if="$getButtonLimit($buttonCode.saveApplySetting)" :limit-code="$buttonCode.saveApplySetting" type="primary" :loading="loading" @click="postData">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<el-option v-for="item in brandOptions" :key="item.enterpriseId" :label="item.enterpriseName" :value="item.enterpriseId"> </el-option> <el-option v-for="item in brandOptions" :key="item.enterpriseId" :label="item.enterpriseName" :value="item.enterpriseId"> </el-option>
</el-select> </el-select>
</div> </div>
<el-button type="primary" @click="approveAll">批量同意</el-button> <el-button v-if="$getButtonLimit($buttonCode.multipleResolve)" :limit-code="$buttonCode.multipleResolve" type="primary" @click="approveAll">批量同意</el-button>
</div> </div>
<div class="reviewed-body-content"> <div class="reviewed-body-content">
<el-table ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange"> <el-table ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
...@@ -91,10 +91,10 @@ ...@@ -91,10 +91,10 @@
<div class="line-h-18">{{ scope.row.createTime | timeStampToHms }}</div> <div class="line-h-18">{{ scope.row.createTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="150"> <el-table-column label="操作" width="150" v-if="$getButtonLimit($buttonCode.singleResolve) || $getButtonLimit($buttonCode.singleReject)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleClick(scope.$index, scope.row)" type="text">同意</el-button> <el-button v-if="$getButtonLimit($buttonCode.singleResolve)" :limit-code="$buttonCode.singleResolve" @click="handleClick(scope.$index, scope.row)" type="text">同意</el-button>
<el-button @click="handleClick(scope.$index, scope.row, 'refuse')" type="text">拒绝</el-button> <el-button v-if="$getButtonLimit($buttonCode.singleReject)" :limit-code="$buttonCode.singleReject" @click="handleClick(scope.$index, scope.row, 'refuse')" type="text">拒绝</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -65,9 +65,9 @@ import taskViewDetail from '@/components/app/taskViewDetail.vue'; ...@@ -65,9 +65,9 @@ import taskViewDetail from '@/components/app/taskViewDetail.vue';
<el-table-column prop="" label="逾期中/逾期失效" show-overflow-tooltip> <el-table-column prop="" label="逾期中/逾期失效" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.overdueCount || '--' }}/{{ scope.row.invalidCount || '--' }}</template> <template slot-scope="scope">{{ scope.row.overdueCount || '--' }}/{{ scope.row.invalidCount || '--' }}</template>
</el-table-column> </el-table-column>
<el-table-column label="操作" v-if="$getButtonLimit($buttonCode.checkTaskView)"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.checkTaskDetail)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="$getButtonLimit($buttonCode.checkTaskView)" :limit-code="$buttonCode.checkTaskView" type="text" @click="toDetail(scope.$index, scope.row)">查看详情</el-button> <el-button v-if="$getButtonLimit($buttonCode.checkTaskDetail)" :limit-code="$buttonCode.checkTaskDetail" type="text" @click="toDetail(scope.$index, scope.row)">查看详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
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