Commit e568bd90 by caoyanzhi

update: 按钮埋点

parent f38ddc5f
...@@ -5,10 +5,203 @@ module.exports = { ...@@ -5,10 +5,203 @@ module.exports = {
myCustomerList: { myCustomerList: {
// key为按钮code,数组为按钮数据 // key为按钮code,数组为按钮数据
// 按钮名称、是否受权限控制0否1是、是否增删改0跳转1是2其他、按钮跳转路径 // 按钮名称、是否受权限控制0否1是、是否增删改0跳转1是2其他、按钮跳转路径
// 1.批量分配会员 (按钮,控制“批量分配会员”弹窗内所有操作权限)
multipleAssign: ['批量分配', 1, 2],
// 2.分配 (按钮,控制“分配会员”弹窗内所有操作权限)
assign: ['分配', 1, 2], assign: ['分配', 1, 2],
multipleAssign: ['批量分配', 1, 2]
}, },
memberTagSet: { memberTagSet: {
syncLog: ['同步历史', 1, 0, 'syncHistory'] // 1.同步历史 (按钮,控制“同步记录”页面的所哟有操作权限)
syncTagLog: ['同步历史', 1, 0, 'syncHistory'],
// 2.待开启同步标签 (按钮,控制“待开启同步标签”所有操作权限)
willSyncTag: ['待开启同步标签', 1, 2]
},
// TODO 客户展示设置
// TODO 1.特殊策略配置 (按钮,控制“新增特殊策略配置”弹窗内所有操作权限)
// TODO 2.编辑 (按钮,控制“修改特殊策略配置”弹窗内所有操作权限)
// TODO 3.删除 (按钮)
memberGroupSet: {
// 1.会员分组失效后不展示(按钮)
groupExpire: ['分组失效后不展示', 1, 2],
// 2.立即同步(按钮)
syncGroup: ['立即同步', 1, 2],
// 1.新建模板 (按钮,控制“客户分组设置”新建页面内所有操作权限)
addGroupTemp: ['新建模板', 1, 0, 'addGroupTemplate'],
// 2.编辑 (按钮,控制“客户分组设置”修改页面内所有操作权限)
editGroupTemp: ['编辑', 1, 0, 'editGroupTemplate'],
// 3.门店范围设置 (按钮,控制“门店范围设置”页面内所有操作权限)
setStoreArea: ['门店范围设置', 1, 0, 'storeRangeSet'],
// 4.删除(按钮)
delGroupTemp: ['删除', 1, 1]
},
memberSearchSet: {
// 1.保存(按钮)
searchSetSave: ['保存', 1, 1]
},
// TODO 会话任务
// TODO 1.新增会话任务设置 (按钮,控制“新增会话任务设置”页面内所有操作权限)
// TODO 2.查看 (按钮,控制“查看会话任务设置”页面内所有操作权限)
// TODO 3.编辑 (按钮,控制“修改会话任务设置”页面内所有操作权限)
// TODO 4.删除 (按钮)
cardList: {
// 1.新增卡券 (按钮,控制“新增卡券”页面内所有操作权限)
addCard: ['新增卡券', 1, 0, 'newCard'],
// 2.编辑 (按钮,控制“修改卡券”页面内所有操作权限)
editCard: ['编辑', 1, 0, 'editCard'],
// 3.删除 (按钮)
delCard: ['删除', 1, 1]
},
cardRecord: {
// 1.发送记录 (按钮,控制“发送记录”弹窗内所有操作权限)
sendCardLog: ['发送记录', 1, 2],
// 2.领取记录 (按钮,控制“领取记录”弹窗内所有操作权限)
getCardLog: ['领取记录', 1, 2]
},
// TODO 评价回访设置
// TODO 1.新增评价回访设置 (按钮,控制“新增评价回访设置”页面内所有操作权限)
// TODO 2.查看 (按钮,控制“查看评价回访设置”页面内所有操作权限)
// TODO 3.编辑 (按钮,控制“修改评价回访设置”页面内所有操作权限)
// TODO 4.删除 (按钮)
material: {
// 1.新建文本 (按钮,控制“新建文本”弹窗内所有操作权限);
addText: ['文本-新建文本', 1, 1],
// 2.编辑 (按钮,控制“编辑文本”弹窗内所有操作权限);
editText: ['文本-编辑', 1, 1],
// 3.删除(按钮)
delText: ['文本-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
textAssignStore: ['文本-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
textUsedStore: ['文本-适用门店', 1, 2],
// 1.新建图片 (按钮,控制“新建图片”弹窗内所有操作权限);
addImage: ['图片-新建图片', 1, 1],
// 2.编辑 (按钮,控制“编辑图片”弹窗内所有操作权限);
editImage: ['图片-编辑', 1, 1],
// 3.删除(按钮)
delImage: ['图片-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
imageAssignStore: ['图片-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
imageUsedStore: ['图片-适用门店', 1, 2],
// 1.新建网页 (按钮,控制“新建网页”弹窗内所有操作权限);
addWeb: ['网页-新建网页', 1, 1],
// 2.编辑 (按钮,控制“编辑网页”弹窗内所有操作权限);
editWeb: ['网页-编辑', 1, 1],
// 3.删除(按钮)
delWeb: ['网页-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
webAssignStore: ['网页-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
webUsedStore: ['网页-适用门店', 1, 2],
// 1.新建视频 (按钮,控制“新建视频”弹窗内所有操作权限);
addVideo: ['视频-新建视频', 1, 1],
// 2.编辑 制“编辑视频”弹窗内所有操作权限);
editVideo: ['视频-编辑', 1, 1],
// 3.删除(按钮)
delVideo: ['视频-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
videoAssignStore: ['视频-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
videoUsedStore: ['视频-适用门店', 1, 2],
// 1.新建文件 (按钮,控制“新建文件”弹窗内所有操作权限);
addFile: ['文件-新建文件', 1, 1],
// 2.编辑 (按钮,控制“编辑文件”弹窗内所有操作权限);
editFile: ['文件-编辑', 1, 1],
// 3.删除(按钮)
delFile: ['文件-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
fileAssignStore: ['文件-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
fileUsedStore: ['文件-适用门店', 1, 2],
// 1.新建小程序 (按钮,控制“新建小程序”弹窗内所有操作权限);
addApps: ['小程序-新建小程序', 1, 1],
// 2.编辑 (按钮,控制“编辑小程序”弹窗内所有操作权限);
editApps: ['小程序-编辑', 1, 1],
// 3.删除(按钮)
delApps: ['小程序-删除', 1, 1],
// 4.分配企业 (按钮,控制“分配企业”弹窗内所有操作权限)
appsAssignStore: ['小程序-分配企业', 1, 2],
// TODO 5.适用门店 (按钮,控制“适用门店”弹窗内所有操作权限)
appsUsedStore: ['小程序-适用门店', 1, 2],
},
goodsShowSet: {
// 1.保存(按钮)
saveGoodsSet: ['保存', 1, 1]
},
activeDetail: {
// 1.活跃人员明细-导出(按钮)
exportActiveUser: ['导出', 1, 2]
},
loginDetail: {
// 2.登录人员明细-导出(按钮)
exportLoginUser: ['导出', 1, 2]
},
areaLoginDetail: {
// 3.区域登录明细-导出(按钮)
exportAreaLoginUser: ['导出', 1, 2]
},
dailyRecord: {
// 1.批量删除(按钮)
multipleDelReport: ['批量删除', 1, 1],
// 2.导出(按钮)
exportReport: ['导出', 1, 2],
// 3.查看详情(按钮,控制“云日报记录详情”页面权限)
reportDetail: ['查看详情', 0, 0, 'dailyDetail']
},
dailyDetail: {
// 4.云日报记录详情-批量删除(按钮)
multipleDelReportDetail: ['批量删除', 1, 1],
// 5.云日报记录详情-删除(按钮)
delReportDetail: ['删除', 1, 1],
// 6.云日报记录详情-预览(按钮)
showReportDetail: ['预览', 1, 2]
},
dailyExport: {
// 1.导出日报(按钮)
multipleExportReport: ['导出日报', 1, 2]
},
taskAssign: {
// 1.保存(按钮)
saveTaskSet: ['保存', 1, 1]
},
// TODO 云日报设置
// TODO 系统报表
// TODO 1.模板设置 (按钮,控制“模板设置”弹窗内所有操作权限);
// TODO 2.保存并启用(按钮)
// TODO 自定义报表
// TODO 1.新建模板 (按钮,控制“新建模板”页面内所有操作权限);
// TODO 2.复制 (按钮,控制“新建模板”页面内所有操作权限);
// TODO 3.编辑 (按钮,控制“编辑模板”页面内所有操作权限);
// TODO 4.删除(按钮)
monthList: {
// 1.门店月指标 (按钮,控制“门店月指标”页面内所有操作权限);
monthTarget: ['门店月指标', 1, 0, 'storeMonthTask'],
// 2.商户日权重 (按钮,控制“商户日权重月指标”页面内所有操作权限);
dayTarget: ['商户日权重', 1, 0, 'companyDaySet']
},
monthTask: {
// 1.导出(按钮)
exportTask: ['导出', 1, 2],
// 2.查看详情(按钮,控制“月指标任务详情”页面权限)
checkTaskDetail: ['查看详情', 0, 0, 'monthTaskDetail']
},
monthTaskDetail: {
// 3.月指标任务详情-批量删除(按钮)
multipleDelTask: ['批量删除', 1, 1],
// 4.月指标任务详情-删除(按钮)
delTask: ['删除', 1, 1]
},
grStoreList: {
// 1.导出(按钮)
exportSendTask: ['导出', 1, 2],
// 2.查看详情(按钮,控制群发“任务详情”页面权限)
checkSendTask: ['查看详情', 0, 0, 'grStoreDetail/:id']
},
'grStoreDetail/:id': {
// 3.任务详情-导出(按钮)
// 4.任务详情-详情(按钮,控制群发“完成详情”页面权限)
// 5.任务详情-详情-导出(按钮)
// 6.任务详情-预览(按钮,控制群发“预览详情”页面内所有操作权限)
} }
// 按钮名称、是否受权限控制0否1是、是否增删改0:跳转 1:增删改 2:其他、按钮跳转路径
} }
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<p class="inline-block daily-form-label m-t-50"></p> <p class="inline-block daily-form-label m-t-50"></p>
<el-button type="primary" :loading="loadingBtn" @click="exportForm('dailyRuleForm')">导出日报</el-button> <el-button v-if="$getButtonLimit($buttonCode.multipleExportReport)" :limit-code="$buttonCode.multipleExportReport" type="primary" :loading="loadingBtn" @click="exportForm('dailyRuleForm')">导出日报</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
......
...@@ -36,12 +36,12 @@ ...@@ -36,12 +36,12 @@
<div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div> <div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="200"> <el-table-column label="操作" width="200" v-if="$getButtonLimit($buttonCode.editApps) || $getButtonLimit($buttonCode.delApps) || $getButtonLimit($buttonCode.appsAssignStore)">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.fromMaterialId == '-1'"> <template v-if="scope.row.fromMaterialId == '-1'">
<el-button type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editApps)" :limit-code="$buttonCode.editApps" type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" @click="toDel(scope.$index, scope.row)">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delApps)" :limit-code="$buttonCode.delApps" type="text" @click="toDel(scope.$index, scope.row)">删除</el-button>
<el-button type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button> <el-button v-if="$getButtonLimit($buttonCode.appsAssignStore)" :limit-code="$buttonCode.appsAssignStore" type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
<div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div> <div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.editFile) || $getButtonLimit($buttonCode.delFile) || $getButtonLimit($buttonCode.fileAssignStore)">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.fromMaterialId == '-1'"> <template v-if="scope.row.fromMaterialId == '-1'">
<el-button type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editFile)" :limit-code="$buttonCode.editFile" type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" @click="toDel(scope.$index, scope.row)">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delFile)" :limit-code="$buttonCode.delFile" type="text" @click="toDel(scope.$index, scope.row)">删除</el-button>
<el-button type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button> <el-button v-if="$getButtonLimit($buttonCode.fileAssignStore)" :limit-code="$buttonCode.fileAssignStore" type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -31,12 +31,12 @@ ...@@ -31,12 +31,12 @@
<div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div> <div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.editImage) || $getButtonLimit($buttonCode.delImage) || $getButtonLimit($buttonCode.imageAssignStore)">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.fromMaterialId == '-1'"> <template v-if="scope.row.fromMaterialId == '-1'">
<el-button type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editImage)" :limit-code="$buttonCode.editImage" type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" @click="toDel(scope.$index, scope.row)">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delImage)" :limit-code="$buttonCode.delImage" type="text" @click="toDel(scope.$index, scope.row)">删除</el-button>
<el-button type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button> <el-button v-if="$getButtonLimit($buttonCode.imageAssignStore)" :limit-code="$buttonCode.imageAssignStore" type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
<div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div> <div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.editText) || $getButtonLimit($buttonCode.delText) || $getButtonLimit($buttonCode.textAssignStore)">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.fromMaterialId == '-1'"> <template v-if="scope.row.fromMaterialId == '-1'">
<el-button type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editText)" :limit-code="$buttonCode.editText" type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" @click="toDel(scope.$index, scope.row)">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delText)" :limit-code="$buttonCode.delText" type="text" @click="toDel(scope.$index, scope.row)">删除</el-button>
<el-button type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button> <el-button v-if="$getButtonLimit($buttonCode.textAssignStore)" :limit-code="$buttonCode.textAssignStore" type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -33,12 +33,12 @@ ...@@ -33,12 +33,12 @@
<div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div> <div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.editVideo) || $getButtonLimit($buttonCode.delVideo) || $getButtonLimit($buttonCode.videoAssignStore)">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.fromMaterialId == '-1'"> <template v-if="scope.row.fromMaterialId == '-1'">
<el-button type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editVideo)" :limit-code="$buttonCode.editVideo" type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" @click="toDel(scope.$index, scope.row)">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delVideo)" :limit-code="$buttonCode.delVideo" type="text" @click="toDel(scope.$index, scope.row)">删除</el-button>
<el-button type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button> <el-button v-if="$getButtonLimit($buttonCode.videoAssignStore)" :limit-code="$buttonCode.videoAssignStore" type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
<div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div> <div class="color-606266 line-18">{{ scope.row.updateTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.editWeb) || $getButtonLimit($buttonCode.delWeb) || $getButtonLimit($buttonCode.webAssignStore)">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.fromMaterialId == '-1'"> <template v-if="scope.row.fromMaterialId == '-1'">
<el-button type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editWeb)" :limit-code="$buttonCode.editWeb" type="text" @click="toEdit(scope.$index, scope.row)">编辑</el-button>
<el-button type="text" @click="toDel(scope.$index, scope.row)">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delWeb)" :limit-code="$buttonCode.delWeb" type="text" @click="toDel(scope.$index, scope.row)">删除</el-button>
<el-button type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button> <el-button v-if="$getButtonLimit($buttonCode.webAssignStore)" :limit-code="$buttonCode.webAssignStore" type="text" @click="toDistribute(scope.$index, scope.row)">分配企业</el-button>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -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" :disabled="$store.state.wxEnterpriseType">新增卡券</el-button> <el-button v-if="$getButtonLimit($buttonCode.addCard)" :limit-code="$buttonCode.addCard" 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>
...@@ -35,10 +35,10 @@ ...@@ -35,10 +35,10 @@
<div>{{ scope.row.couponStock }}</div> <div>{{ scope.row.couponStock }}</div>
</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.editCard) || $getButtonLimit($buttonCode.delCard)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="toEdit(scope.$index, scope.row)" :disabled="$store.state.wxEnterpriseType">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editCard)" :limit-code="$buttonCode.editCard" type="text" @click="toEdit(scope.$index, scope.row)" :disabled="$store.state.wxEnterpriseType">编辑</el-button>
<el-button type="text" @click="toDel(scope.$index, scope.row)" :disabled="$store.state.wxEnterpriseType">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delCard)" :limit-code="$buttonCode.delCard" 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>
......
...@@ -87,10 +87,10 @@ ...@@ -87,10 +87,10 @@
<span :style="scope.row.statusCode == 2 ? 'color:#F5222D' : ''"> {{ scope.row.statusCode | formatStatusCode }}</span> <span :style="scope.row.statusCode == 2 ? 'color:#F5222D' : ''"> {{ scope.row.statusCode | formatStatusCode }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="" width="200" label="操作" fixed="right"> <el-table-column prop="" width="200" label="操作" fixed="right" v-if="$getButtonLimit($buttonCode.sendCardLog) || $getButtonLimit($buttonCode.getCardLog)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="showSendRecord(scope.$index, scope.row, '1')">发送记录</el-button> <el-button v-if="$getButtonLimit($buttonCode.sendCardLog)" :limit-code="$buttonCode.sendCardLog" type="text" @click="showSendRecord(scope.$index, scope.row, '1')">发送记录</el-button>
<el-button type="text" @click="showGetRecord(scope.$index, scope.row, '2')">领取记录</el-button> <el-button v-if="$getButtonLimit($buttonCode.getCardLog)" :limit-code="$buttonCode.getCardLog" type="text" @click="showGetRecord(scope.$index, scope.row, '2')">领取记录</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</el-select> </el-select>
</div> </div>
<div class="table-condition-right"> <div class="table-condition-right">
<el-button type="danger" @click="multDel">批量删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.multipleDelReportDetail)" :limit-code="$buttonCode.multipleDelReportDetail" type="danger" @click="multDel">批量删除</el-button>
</div> </div>
</div> </div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange">
...@@ -105,10 +105,10 @@ ...@@ -105,10 +105,10 @@
<div>{{ scope.row.operationStaffName || '--' }}</div> <div>{{ scope.row.operationStaffName || '--' }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.delReportDetail) || $getButtonLimit($buttonCode.showReportDetail)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="handleDel(scope.$index, scope.row)">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delReportDetail)" :limit-code="$buttonCode.delReportDetail" type="text" @click="handleDel(scope.$index, scope.row)">删除</el-button>
<el-button type="text" @click="handlePreview(scope.$index, scope.row)">预览</el-button> <el-button v-if="$getButtonLimit($buttonCode.showReportDetail)" :limit-code="$buttonCode.showReportDetail" type="text" @click="handlePreview(scope.$index, scope.row)">预览</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
<el-date-picker class="m-l-10" v-model="conditionObj.dateRange" @change="changeDate" :editable="false" :value-format="'yyyy-MM-dd'" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"> </el-date-picker> <el-date-picker class="m-l-10" v-model="conditionObj.dateRange" @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 v-if="$getButtonLimit($buttonCode.multipleDelReport)" :limit-code="$buttonCode.multipleDelReport" type="danger" @click="multDel">批量删除</el-button>
<el-button type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button> <el-button v-if="$getButtonLimit($buttonCode.exportReport)" :limit-code="$buttonCode.exportReport" type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button>
</div> </div>
</div> </div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange">
...@@ -62,9 +62,9 @@ ...@@ -62,9 +62,9 @@
<el-table-column prop="" label="逾期中" show-overflow-tooltip> <el-table-column prop="" label="逾期中" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.overdueCount }}</template> <template slot-scope="scope">{{ scope.row.overdueCount }}</template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.reportDetail)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="toDetail(scope.$index, scope.row)">查看详情</el-button> <el-button v-if="$getButtonLimit($buttonCode.reportDetail)" :limit-code="$buttonCode.reportDetail" type="text" @click="toDetail(scope.$index, scope.row)">查看详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="task-set-cell font-0"> <div class="task-set-cell font-0">
<div class="inline-block font-14 color-606266 m-b-10 w-100"></div> <div class="inline-block font-14 color-606266 m-b-10 w-100"></div>
<div class="inline-block m-l-10 task-set-save m-t-50 font-14"> <div class="inline-block m-l-10 task-set-save m-t-50 font-14">
<el-button type="primary" :loading="loadingBtn" @click="saveSet">保 存</el-button> <el-button v-if="$getButtonLimit($buttonCode.saveTaskSet)" :limit-code="$buttonCode.saveTaskSet" type="primary" :loading="loadingBtn" @click="saveSet">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
</el-select> </el-select>
</div> </div>
<div> <div>
<el-checkbox v-model="overTimeSeeFlag" @change="saveGroupSet" :disabled="$store.state.wxEnterpriseType"> <el-checkbox v-if="$getButtonLimit($buttonCode.groupExpire)" :limit-code="$buttonCode.groupExpire" v-model="overTimeSeeFlag" @change="saveGroupSet" :disabled="$store.state.wxEnterpriseType">
<el-tooltip class="item" effect="dark" content="开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组" placement="top-start"> <span style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;margin-left:-4px;" 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;margin-left:-4px;" class="font-14 color-606266 m-r-20">会员分组失效后不展示</span></el-tooltip>
</el-checkbox> </el-checkbox>
<el-button type="primary" :loading="loadingBtn" @click="toSync" :disabled="$store.state.wxEnterpriseType">立即同步</el-button> <el-button v-if="$getButtonLimit($buttonCode.syncGroup)" :limit-code="$buttonCode.syncGroup" 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>
...@@ -76,7 +76,10 @@ ...@@ -76,7 +76,10 @@
<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="$store.state.wxEnterpriseType || 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 v-if="$getButtonLimit($buttonCode.addGroupTemp)" :limit-code="$buttonCode.addGroupTemp" :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%' }">
...@@ -95,11 +98,11 @@ ...@@ -95,11 +98,11 @@
<div class="line-18">{{ scope.row.editTime | timeStampToHms }}</div> <div class="line-18">{{ scope.row.editTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.editGroupTemp) || $getButtonLimit($buttonCode.setStoreArea) || $getButtonLimit($buttonCode.delGroupTemp)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="toEdit(scope.$index, scope.row)" type="text" :disabled="$store.state.wxEnterpriseType">编辑</el-button> <el-button v-if="$getButtonLimit($buttonCode.editGroupTemp)" :limit-code="$buttonCode.editGroupTemp" @click="toEdit(scope.$index, scope.row)" type="text" :disabled="$store.state.wxEnterpriseType">编辑</el-button>
<el-button @click="toStore(scope.$index, scope.row)" type="text" :disabled="$store.state.wxEnterpriseType">门店范围设置</el-button> <el-button v-if="$getButtonLimit($buttonCode.setStoreArea)" :limit-code="$buttonCode.setStoreArea" @click="toStore(scope.$index, scope.row)" type="text" :disabled="$store.state.wxEnterpriseType">门店范围设置</el-button>
<el-button @click="toDel(scope.$index, scope.row)" type="text" :disabled="$store.state.wxEnterpriseType">删除</el-button> <el-button v-if="$getButtonLimit($buttonCode.delGroupTemp)" :limit-code="$buttonCode.delGroupTemp" @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')" :disabled="$store.state.wxEnterpriseType">保 存</el-button> <el-button v-if="$getButtonLimit($buttonCode.searchSetSave)" :limit-code="$buttonCode.searchSetSave" type="primary" :loading="loading" @click="submit('searchFlag')" :disabled="$store.state.wxEnterpriseType">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
</el-select> </el-select>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<el-button @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 @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 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>
</div> </div>
</div> </div>
<div class="tag-content-bottom"> <div class="tag-content-bottom">
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<el-option v-for="item in clerkOptions" :key="item.clerkId" :label="item.clerkName" :value="item.clerkId"> </el-option> </el-select <el-option v-for="item in clerkOptions" :key="item.clerkId" :label="item.clerkName" :value="item.clerkId"> </el-option> </el-select
><el-input placeholder="请输入会员姓名/手机号/卡号" maxlength="50" prefix-icon="el-icon-search" v-model="searchInput" class="w-264 m-l-10" style="width: 264px;" clearable @clear="clearSearch" @keyup.native="value => toInput(value, searchInput)"> </el-input> ><el-input placeholder="请输入会员姓名/手机号/卡号" maxlength="50" prefix-icon="el-icon-search" v-model="searchInput" class="w-264 m-l-10" style="width: 264px;" clearable @clear="clearSearch" @keyup.native="value => toInput(value, searchInput)"> </el-input>
</div> </div>
<el-button type="primary" @click="toAssign">批量分配会员</el-button> <el-button v-if="$getButtonLimit($buttonCode.multipleAssign)" :limit-code="$buttonCode.multipleAssign" type="primary" @click="toAssign">批量分配会员</el-button>
</div> </div>
<div class="table-body m-t-20"> <div class="table-body m-t-20">
<el-table class="select-table" ref="multipleTable" :key="tableRefresh" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }" @selection-change="handleSelectionChange"> <el-table class="select-table" ref="multipleTable" :key="tableRefresh" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }" @selection-change="handleSelectionChange">
...@@ -71,9 +71,9 @@ ...@@ -71,9 +71,9 @@
{{ scope.row.clerkName || '--' }} {{ scope.row.clerkName || '--' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.assign)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="toAssignMember(scope.$index, scope.row)">分配</el-button> <el-button v-if="$getButtonLimit($buttonCode.assign)" :limit-code="$buttonCode.assign" type="text" @click="toAssignMember(scope.$index, scope.row)">分配</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
</el-select> </el-select>
<el-table v-loading="loading" :data="tableList" style="width: 100%"> <el-table v-loading="loading" :data="tableList" style="width: 100%">
<el-table-column v-for="(v, i) in tabelHeader" :key="i" :label="v.label" :prop="v.prop"></el-table-column> <el-table-column v-for="(v, i) in tabelHeader" :key="i" :label="v.label" :prop="v.prop"></el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.monthTarget) || $getButtonLimit($buttonCode.dayTarget)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.settingStatus == 1" type="text" @click="$router.push(`/storeMonthTask?yearMonth=${scope.row.yearMonth}`)">门店月指标</el-button> <el-button v-if="scope.row.settingStatus == 1 && $getButtonLimit($buttonCode.monthTarget)" :limit-code="$buttonCode.monthTarget" type="text" @click="$router.push(`/storeMonthTask?yearMonth=${scope.row.yearMonth}`)">门店月指标</el-button>
<el-button type="text" @click="$router.push(`/companyDaySet?yearMonth=${scope.row.yearMonth}`)">商户日权重</el-button> <el-button v-if="$getButtonLimit($buttonCode.dayTarget)" :limit-code="$buttonCode.dayTarget" type="text" @click="$router.push(`/companyDaySet?yearMonth=${scope.row.yearMonth}`)">商户日权重</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<el-date-picker style="width:310px; vertical-align: middle;" class="m-l-10" v-model="conditionObj.dateRange" @change="changeDate" :editable="false" :value-format="'yyyy-MM'" type="monthrange" align="right" unlink-panels range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份"> </el-date-picker> <el-date-picker style="width:310px; vertical-align: middle;" class="m-l-10" v-model="conditionObj.dateRange" @change="changeDate" :editable="false" :value-format="'yyyy-MM'" type="monthrange" 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="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button> <el-button v-if="$getButtonLimit($buttonCode.exportTask)" :limit-code="$buttonCode.exportTask" type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button>
</div> </div>
</div> </div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }">
...@@ -33,9 +33,9 @@ ...@@ -33,9 +33,9 @@
<el-table-column prop="completedRate" label="完成率(含放弃)" show-overflow-tooltip> </el-table-column> <el-table-column prop="completedRate" label="完成率(含放弃)" show-overflow-tooltip> </el-table-column>
<el-table-column prop="noCompletedCount" label="待完成" show-overflow-tooltip> </el-table-column> <el-table-column prop="noCompletedCount" label="待完成" show-overflow-tooltip> </el-table-column>
<el-table-column prop="overdueCount" label="逾期中" show-overflow-tooltip> </el-table-column> <el-table-column prop="overdueCount" label="逾期中" show-overflow-tooltip> </el-table-column>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100" v-if="$getButtonLimit($buttonCode.checkTaskDetail)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button 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>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-date-picker style="width:310px" class="m-l-10" v-model="conditionObj.dateRange" @change="changeDate" :editable="false" :value-format="'yyyy-MM'" type="monthrange" align="right" unlink-panels range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份"> </el-date-picker> <el-date-picker style="width:310px" class="m-l-10" v-model="conditionObj.dateRange" @change="changeDate" :editable="false" :value-format="'yyyy-MM'" type="monthrange" 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 v-if="$getButtonLimit($buttonCode.multipleDelTask)" :limit-code="$buttonCode.multipleDelTask" type="danger" @click="multDel">批量删除</el-button>
</div> </div>
</div> </div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
...@@ -105,9 +105,9 @@ ...@@ -105,9 +105,9 @@
<div class="color-909399 line-18">{{ scope.row.finishTime | formatTimeHMS }}</div> <div class="color-909399 line-18">{{ scope.row.finishTime | formatTimeHMS }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100" v-if="$getButtonLimit($buttonCode.multipleDelTask)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.removeAble == 1" type="text" @click="handleDel(scope.$index, scope.row)">删除</el-button> <el-button v-if="scope.row.removeAble == 1 && $getButtonLimit($buttonCode.multipleDelTask)" :limit-code="$buttonCode.multipleDelTask" type="text" @click="handleDel(scope.$index, scope.row)">删除</el-button>
<span v-else>--</span> <span v-else>--</span>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -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')" :disabled="$store.state.wxEnterpriseType">保 存</el-button> <el-button v-if="$getButtonLimit($buttonCode.saveGoodsSet)" :limit-code="$buttonCode.saveGoodsSet" type="primary" :loading="loading" @click="submit('searchFlag')" :disabled="$store.state.wxEnterpriseType">保 存</el-button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -75,12 +75,12 @@ ...@@ -75,12 +75,12 @@
<div class="material-right"> <div class="material-right">
<div class="material-table"> <div class="material-table">
<div class="add-btn-wrap"> <div class="add-btn-wrap">
<el-button v-if="activeName == 1" type="primary" @click="addText">新建文本</el-button> <el-button v-if="activeName == 1 && $getButtonLimit($buttonCode.addText)" :limit-code="$buttonCode.addText" type="primary" @click="addText">新建文本</el-button>
<el-button v-if="activeName == 2" type="primary" @click="addImage">新建图片</el-button> <el-button v-if="activeName == 2 && $getButtonLimit($buttonCode.addImage)" :limit-code="$buttonCode.addImage" type="primary" @click="addImage">新建图片</el-button>
<el-button v-if="activeName == 3" type="primary" @click="addWeb">新建网页</el-button> <el-button v-if="activeName == 3 && $getButtonLimit($buttonCode.addWeb)" :limit-code="$buttonCode.addWeb" type="primary" @click="addWeb">新建网页</el-button>
<el-button v-if="activeName == 4" type="primary" @click="addVideo">新建视频</el-button> <el-button v-if="activeName == 4 && $getButtonLimit($buttonCode.addVideo)" :limit-code="$buttonCode.addVideo" type="primary" @click="addVideo">新建视频</el-button>
<el-button v-if="activeName == 5" type="primary" @click="addFile">新建文件</el-button> <el-button v-if="activeName == 5 && $getButtonLimit($buttonCode.addFile)" :limit-code="$buttonCode.addFile" type="primary" @click="addFile">新建文件</el-button>
<el-button v-if="activeName == 6" type="primary" @click="addApp">新建小程序</el-button> <el-button v-if="activeName == 6 && $getButtonLimit($buttonCode.addApps)" :limit-code="$buttonCode.addApps" type="primary" @click="addApp">新建小程序</el-button>
<el-select style="vertical-align: top;" class="m-l-10" v-model="multOpt" placeholder="批量操作" @change="changeOpt"> <el-select style="vertical-align: top;" class="m-l-10" v-model="multOpt" placeholder="批量操作" @change="changeOpt">
<el-option label="批量删除" value="1"></el-option> <el-option label="批量删除" value="1"></el-option>
<el-option label="批量转移" value="2"></el-option> <el-option label="批量转移" value="2"></el-option>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<div class="table-search m-t-20"> <div class="table-search m-t-20">
<div class="flex flex-space-between"> <div class="flex flex-space-between">
<div><gic-select-group-mult :selectData="groupIds" @checkGroupIds="checkGroupIds"> </gic-select-group-mult><span class="font-14 color-606266 p-l-10">筛选条件下,昨日人员名单如下:</span></div> <div><gic-select-group-mult :selectData="groupIds" @checkGroupIds="checkGroupIds"> </gic-select-group-mult><span class="font-14 color-606266 p-l-10">筛选条件下,昨日人员名单如下:</span></div>
<el-button type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button> <el-button v-if="$getButtonLimit($buttonCode.exportActiveUser)" :limit-code="$buttonCode.exportActiveUser" type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button>
</div> </div>
</div> </div>
<div class="m-t-20"> <div class="m-t-20">
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div> <div>
<el-date-picker v-model="selectTableDay" :value-format="'yyyy-MM-dd'" type="date" placeholder="选择日期" :clearable="false" :picker-options="pickerOptions" @change="changeTableDate"> </el-date-picker><gic-select-group-mult class="m-l-10" :selectData="groupIds" @checkGroupIds="checkGroupIds"> </gic-select-group-mult><span class="font-14 color-606266 p-l-10">当日筛选区域下门店总计为 {{ total }} 家:</span> <el-date-picker v-model="selectTableDay" :value-format="'yyyy-MM-dd'" type="date" placeholder="选择日期" :clearable="false" :picker-options="pickerOptions" @change="changeTableDate"> </el-date-picker><gic-select-group-mult class="m-l-10" :selectData="groupIds" @checkGroupIds="checkGroupIds"> </gic-select-group-mult><span class="font-14 color-606266 p-l-10">当日筛选区域下门店总计为 {{ total }} 家:</span>
</div> </div>
<el-button type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button> <el-button v-if="$getButtonLimit($buttonCode.exportAreaLoginUser)" :limit-code="$buttonCode.exportAreaLoginUser" type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button>
</div> </div>
</div> </div>
<div class="m-t-20"> <div class="m-t-20">
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<div> <div>
<el-date-picker v-model="selectEndDay" :value-format="'yyyy-MM-dd'" type="date" placeholder="选择日期" :clearable="false" :picker-options="pickerOptions" @change="changeTableDate"> </el-date-picker><gic-select-group-mult class="m-l-10" :selectData="groupIds" @checkGroupIds="checkGroupIds"> </gic-select-group-mult><span class="font-14 color-606266 p-l-10">筛选条件下,{{ activeName == 'second' ? '未' : '' }}登录人员有 {{ total }} 人,名单如下:</span> <el-date-picker v-model="selectEndDay" :value-format="'yyyy-MM-dd'" type="date" placeholder="选择日期" :clearable="false" :picker-options="pickerOptions" @change="changeTableDate"> </el-date-picker><gic-select-group-mult class="m-l-10" :selectData="groupIds" @checkGroupIds="checkGroupIds"> </gic-select-group-mult><span class="font-14 color-606266 p-l-10">筛选条件下,{{ activeName == 'second' ? '未' : '' }}登录人员有 {{ total }} 人,名单如下:</span>
</div> </div>
<el-button type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button> <el-button v-if="$getButtonLimit($buttonCode.exportLoginUser)" :limit-code="$buttonCode.exportLoginUser" type="primary" :loading="loadingBtn" @click="exportExcel">导出</el-button>
</div> </div>
</div> </div>
<div class="m-t-20"> <div class="m-t-20">
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<el-date-picker class="m-l-10" prefix-icon="el-icon-time" :picker-options="pickerOptions" v-model="pageParams.date" @change="changeDate" :value-format="'yyyy-MM-dd'" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间"> </el-date-picker> <el-date-picker class="m-l-10" prefix-icon="el-icon-time" :picker-options="pickerOptions" v-model="pageParams.date" @change="changeDate" :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 :loading="loadingBtn" type="primary" @click="exportExcel">导出</el-button> <el-button v-if="$getButtonLimit($buttonCode.exportSendTask)" :limit-code="$buttonCode.exportSendTask" :loading="loadingBtn" type="primary" @click="exportExcel">导出</el-button>
</div> </div>
</div> </div>
<div class="m-t-20"> <div class="m-t-20">
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,9 @@
<el-table-column prop="" label="逾期中/逾期失效"> <el-table-column prop="" label="逾期中/逾期失效">
<template slot-scope="scope">{{ scope.row.ovincplTaskCnt || '--' }}/{{ scope.row.invalidCount || '--' }}</template> <template slot-scope="scope">{{ scope.row.ovincplTaskCnt || '--' }}/{{ scope.row.invalidCount || '--' }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="" label="操作" width="150"> <el-table-column prop="" label="操作" width="150" v-if="$getButtonLimit($buttonCode.checkSendTask)">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="showDetail(scope.row)">查看详情</el-button> <el-button v-if="$getButtonLimit($buttonCode.checkSendTask)" :limit-code="$buttonCode.checkSendTask" type="text" @click="showDetail(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