Commit e4e14a34 by 前端

部门回显

1 parent 8f8149b0
<!DOCTYPE html>
<html lang="zh">
<head>
<head>
<meta charset="utf-8" />
<meta content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
......@@ -10,8 +9,8 @@
<meta name="keywords" itemprop="keywords" content="广联,帐户管理,员工管理" />
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<title>员工管理</title>
</head>
<style>
</head>
<style>
.sub-bg-white {
width: 100%;
background-color: #f4f5fa;
......@@ -116,9 +115,9 @@
.detail {
padding-bottom: 100px;
}
</style>
</style>
<body>
<body>
<div id="app">
<main class="wrapper detail">
<div class="layui-tab layui-tab-brief" lay-filter="editTab">
......@@ -216,8 +215,7 @@
<div class="topbottomwrap">
<div class="grayLine"></div>
<h3 class="content-title sub-title" id="accountAuth">账户权限</h3>
<div class="layui-tab tabmutiple-content"
style="padding: 0 20px 10px; background-color: #fff; margin-bottom: 80px" lay-filter="roleAuth">
<div class="layui-tab tabmutiple-content" style="padding: 0 20px 10px; background-color: #fff; margin-bottom: 80px" lay-filter="roleAuth">
<ul class="layui-tab-title"></ul>
<div class="layui-tab-content"></div>
</div>
......@@ -262,7 +260,21 @@
var table = layui.table
var laypage = layui.laypage
var merchantId = qs('merchantId')
var basicArr = ['staffName', 'staffPhone', 'entmicroName', 'staffJob', 'roleName', 'roleCode', 'merchantName', 'createdAccount', 'department', 'staffLabel', 'weChatNickName', 'weChatPhone', 'weChatOpenId']
var basicArr = [
'staffName',
'staffPhone',
'entmicroName',
'staffJob',
'roleName',
'roleCode',
'merchantName',
'createdAccount',
'department',
'staffLabel',
'weChatNickName',
'weChatPhone',
'weChatOpenId'
]
var employeeData = {}
var visibleInferiorMerName = $('#visibleInferiorMerName')
......@@ -371,51 +383,50 @@
$('#' + [basicArr[i]]).text(employeeData[basicArr[i]] ? employeeData[basicArr[i]] : '无')
}
// 所属部门
if (employeeData.department) {
switch(employeeData.department) {
case 0 :
// if (employeeData.department) {
switch (employeeData.department) {
case 0:
$('#department').text('其他')
break;
case 1 :
break
case 1:
$('#department').text('销售部')
break;
case 2 :
break
case 2:
$('#department').text('售后部')
break;
case 3 :
break
case 3:
$('#department').text('客服部')
break;
case 4 :
break
case 4:
$('#department').text('续保部')
break;
break
default:
$('#department').text('无')
}
}
// }
// 员工标签
if (employeeData.staffLabel) {
employeeData.staffLabel = employeeData.staffLabel.split(',')
console.log(employeeData.staffLabel, '0');
employeeData.staffLabel.map((item,index) => {
switch(item) {
case '0' :
console.log(employeeData.staffLabel, '0')
employeeData.staffLabel.map((item, index) => {
switch (item) {
case '0':
employeeData.staffLabel[index] = '1.0新车权益销售'
break;
case '1' :
break
case '1':
employeeData.staffLabel[index] = '1.1次新车精品升级'
break;
case '2' :
break
case '2':
employeeData.staffLabel[index] = '1.2次新车线上转化'
break;
case '3' :
break
case '3':
employeeData.staffLabel[index] = '1.3存量用户众筹'
break;
break
default:
employeeData.staffLabel[index] = '无'
}
})
console.log(employeeData.staffLabel.join(','), '1');
console.log(employeeData.staffLabel.join(','), '1')
$('#staffLabel').text(employeeData.staffLabel.join(','))
}
if (employeeData.visibleInferiorMerName) {
......@@ -460,7 +471,7 @@
}
})
treeTab.tabChange('roleAuth', authList[0].accounttypeId)
$(window).resize();
$(window).resize()
}
}
})
......@@ -494,6 +505,5 @@
}
})
</script>
</body>
</body>
</html>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!