Commit 39bee501 by cwq0219

商户渠道

1 parent 27965c68
......@@ -2,7 +2,7 @@
* @Author: limin
* @Date: 2019-09-01 19:06:01
* @Last Modified by: chenwq
* @Last Modified time: 2020-11-11 14:23:29
* @Last Modified time: 2020-11-11 14:29:52
*/
// import { LOGIN_URL, REG_URL, ROLE_LIST_URL } from '@/api/sys.account'
......@@ -54,8 +54,8 @@ export const SUPPER_ADMIN = 1 //
*/
// export const POST_DISABLED = ['2001', '2002', '2003'] // 总经理 仓库 部门经理
// 商户类型 - 嘀加
export const djUserType = {
// 商户类型 - 除广汇外
export const userType = {
1: '员工',
2: '门店',
3: '市代',
......
......@@ -44,7 +44,7 @@
<script>
import { getList, deleteMerchant } from '@api/serviceStore'
import { mapActions } from 'vuex'
import { BaseData, djUserType, ghUserType } from '@/common/constants.js'
import { BaseData, userType, ghUserType } from '@/common/constants.js'
export default {
name: 'serviceStore',
data() {
......@@ -74,11 +74,8 @@ export default {
label: '商户类型',
prop: 'userType',
formatter: (cellValue) => {
var typeAttr = {
1: djUserType,
2: ghUserType
}
return typeAttr[cellValue.channelType][cellValue.userType]
var typeList = cellValue.channelType === 2 ? ghUserType : userType
return typeList[cellValue.userType]
}
}, {
label: '联系人',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!