Commit 15cef4c2 by wangzhihui

Merge branch 'SAAS+V5.2.0-1030' of http://192.168.3.233:8090/saas/scrm-micro-poi…

…nts into SAAS+V5.2.0-1030
2 parents 3bb8c7f7 15b1cc63
......@@ -22,7 +22,7 @@
<template #merchantId>
<div class="upload">
<div class="upload-btn">
<el-button size="small" @click="relateStoreVisible = true" :disabled="pageObject.id">
<el-button size="small" @click="relateStoreVisible = true" :disabled="pageObject.id || $globalState.session.loginpath == '/login'">
<i class="el-icon-plus"></i>
选择商户
</el-button>
......@@ -364,6 +364,19 @@ export default {
}
}
},
created() {
/** loginpath:标识系统
* 门店版:/login
* 1、默认带出商户,“选择商户”按钮置灰
* 2、导入充值人群,去掉“管理层”
* 运营版:/oss
*/
if(this.$globalState.session.loginpath == '/login') {
this.baseData.personTypeList.splice(1, 1)
this.configForm.merchantId = this.$globalState.session.merchantId
this.configForm.merchantName = this.$globalState.session.merchantName
}
},
mounted() {
const { id, type } = this.$route.query
if (id) this.getDetail(id, type)
......
......@@ -15,8 +15,7 @@
@click="jump"
size="small"
>门店客户积分充值</el-button>
<el-button @click="toSMS" size="small">提醒短信
</el-button>
<GLButton @click="toSMS" fn="提醒短信" size="small">提醒短信</GLButton>
<el-button @click="handleExport" size="small">导出
</el-button>
</div>
......@@ -187,6 +186,11 @@ export default {
addHtml: 'status',
},
{
label: '创建人',
prop: 'createdByName',
minWidth: 150,
},
{
label: '创建时间',
minWidth: 150,
formatter: cell => dayjs(cell.createdDate).format('YYYY/MM/DD HH:mm:ss')
......@@ -205,10 +209,11 @@ export default {
},
tableButtonList: [
{
type: 'el-button',
type: 'GLButton',
name: '审核',
attrs: {
type: 'text',
fn: '审核'
},
condition: row => row.status == 0,
listeners: {
......@@ -230,10 +235,11 @@ export default {
}
},
{
type: 'el-button',
type: 'GLButton',
name: '编辑',
attrs: {
type: 'text',
fn: '编辑'
},
condition: row => row.status == 0,
listeners: {
......@@ -247,6 +253,22 @@ export default {
auditObj: {}
}
},
created () {
/** loginpath:标识系统
* 门店版:/login
* 1、筛选去掉“商户名称”
* 2、去掉“提醒短信” - 系统权限控制
* 3、列表去掉“审核”和“编辑” - 系统权限控制
* 运营版:/oss
*/
if(this.$globalState.session.loginpath == '/login') {
// 1、筛选去掉“商户名称”
const searchIdx = this.searchFormData.findIndex(item => item.name == 'merchantName')
if(searchIdx != -1) {
this.searchFormData.splice(searchIdx, 1)
}
}
},
mounted () {
},
methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!