Commit e4e14a34 by 前端

部门回显

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