|
@@ -48,7 +48,7 @@
|
|
|
<el-table-column label="工号" prop="workNumber" width="200"></el-table-column>
|
|
<el-table-column label="工号" prop="workNumber" width="200"></el-table-column>
|
|
|
<el-table-column label="类型" prop="typeAttr" width="100">
|
|
<el-table-column label="类型" prop="typeAttr" width="100">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- {{ typeAttrMap(scope.row.typeAttr) || '--'}}
|
|
|
|
|
|
|
+ <span>{{ typeMatch(scope.row.typeAttr) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="归属" prop="organizationName" width="200"></el-table-column>
|
|
<el-table-column label="归属" prop="organizationName" width="200"></el-table-column>
|
|
@@ -180,18 +180,18 @@ const cascaderProps = {
|
|
|
}
|
|
}
|
|
|
let options = ref([])
|
|
let options = ref([])
|
|
|
|
|
|
|
|
-const typeAttrMap=(value)=>{
|
|
|
|
|
- const map = {
|
|
|
|
|
- "1": '前线人员',
|
|
|
|
|
- "2": '后线人员',
|
|
|
|
|
- "3": '合伙人',
|
|
|
|
|
- "4": '工作是管理员',
|
|
|
|
|
- "5": '团队',
|
|
|
|
|
- "6": '个代',
|
|
|
|
|
- "7": '渠道',
|
|
|
|
|
- "8": '电销',
|
|
|
|
|
|
|
+// 人员类型匹配
|
|
|
|
|
+const typeMatch = (typeAttr: string) => {
|
|
|
|
|
+ const map: any = {
|
|
|
|
|
+ '6': '个代',
|
|
|
|
|
+ '7': '渠道',
|
|
|
|
|
+ '5': '团队',
|
|
|
|
|
+ '8': '电销组',
|
|
|
|
|
+ '3': '合伙人',
|
|
|
}
|
|
}
|
|
|
- return map[value]
|
|
|
|
|
|
|
+ return typeAttr?.split(',')
|
|
|
|
|
+ .map((typeId: any) => map[typeId] || typeId)
|
|
|
|
|
+ .join(',') || '未知'
|
|
|
}
|
|
}
|
|
|
const statusMap = (value: any) => {
|
|
const statusMap = (value: any) => {
|
|
|
const map = {
|
|
const map = {
|