Commit 371bc002 by 前端

Merge branch 'huy_dev_v2.7.0' into 'v2.7.0'

Huy dev v2.7.0

See merge request !76
2 parents 83d9c659 7e886f06
......@@ -428,9 +428,9 @@ export default {
}
.account-body {
margin-top: 20px;
&:nth-of-type(3) {
margin-bottom: 70px;
}
// &:nth-of-type(3) {
// margin-bottom: 70px;
// }
.form-title {
font-size: 16px;
font-weight: 500;
......
......@@ -141,7 +141,7 @@ export default {
}
}
</script>
<style lang="scss">
<style lang="scss" scoped>
.tab_line {
width: 100%;
height: 2px;
......@@ -156,9 +156,7 @@ export default {
margin-bottom: 64px;
}
.config-employee.config-config .container {
margin-top: 20px;
background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 0 20px;
.content-title {
display: inline-block;
......
<!-- 基本信息 -->
<template>
<div class="config-employee config-info">
<div class="container edit-box">
<p class="edit-title">员工基本信息</p>
<el-form label-width="140px" :inline="true" style="margin: 32px 0 12px;">
<el-form-item class="basic-info" isEdit="true" v-for="(item, index) in detailFormData" :key="index" :label="item.label + ':'">
<span class="txt-ellipsis" style="display: inline-block; width: 100%; height: 28px;" :title="info[item.name] || '-'">{{ info[item.name] || '-' }}</span>
</el-form-item>
</el-form>
<div>
<div class="config-employee config-info">
<div class="container edit-box">
<p class="edit-title">员工基本信息</p>
<div class="info-box">
<div class="info-box-left">
<div class="label-height">
<span class="info-box-label">姓名:</span>
<span class="info-box-msg">{{ info.staffName }}</span>
</div>
<div class="label-height">
<span class="info-box-label">登录手机号:</span>
<span class="info-box-msg">{{ info.staffPhone }}</span>
</div>
<div>
<span class="info-box-label">职务:</span>
<span class="info-box-msg">{{ info.staffJob }}</span>
</div>
</div>
<div class="info-box-right">
<div class="label-height">
<span class="info-box-label">角色名称:</span>
<span class="info-box-msg">{{ info.roleName }}</span>
</div>
<div class="label-height">
<span class="info-box-label">创建人:</span>
<span class="info-box-msg">{{ info.createdAccount }}</span>
</div>
<div>
<span class="info-box-label">企微号:</span>
<span class="info-box-msg">{{ info.entmicroName }}</span>
</div>
</div>
</div>
</div>
</div>
<div class="container edit-box">
<div class="next-merchant container">
<p class="edit-title">可见下级商户</p>
<div class="config-mer-name">
<!-- <div class="config-mer-name">
<p class="txt-ellipsis" style="margin-bottom: 24px" v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" :title="item">{{ item }}</p>
</div> -->
<div class="merchant-box">
<div class="line_wrapper wrap_header">
<div class="tittle text_w">序号</div>
<div class="tittle1 text_w">商户名称</div>
</div>
<div class="line_body">
<div v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" class="line_wrapper">
<div class="tittle">{{ index + 1 }}</div>
<div class="tittle1">{{ item }}</div>
</div>
</div>
</div>
</div>
</div>
......@@ -26,33 +65,7 @@ export default {
info: {
visibleInferiorMerName: ''
},
powerDataArray: [],
detailFormData: [
{
label: '姓名',
name: 'staffName'
},
{
label: '角色名称',
name: 'roleName'
},
{
label: '登录手机号',
name: 'staffPhone'
},
{
label: '创建人',
name: 'createdAccount'
},
{
label: '职务',
name: 'staffJob'
},
{
label: '企微号',
name: 'entmicroName'
}
]
powerDataArray: []
}
},
......@@ -76,15 +89,34 @@ export default {
}
}
</script>
<style>
.config-employee {
margin-bottom: 64px;
<style scoped lang="scss">
.info-box {
display: flex;
padding: 32px 0;
&-left,
&-right {
width: 50%;
}
&-label {
display: inline-block;
width: 154px;
font-size: 14px;
color: #666666;
text-align: right;
}
&-msg {
font-size: 14px;
color: #333333;
}
}
.config-employee .container {
.next-merchant {
margin-top: 20px;
}
.label-height {
margin-bottom: 20px;
}
.config-employee .container {
background: #ffffff;
/* box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); */
/* padding: 20px; */
}
.config-employee .edit-box.container {
padding: 0 0 20px;
......@@ -119,7 +151,6 @@ export default {
height: 58px;
line-height: 58px;
border-bottom: 1px solid #e7eaec;
margin: 0 0;
padding: 0 20px;
}
......@@ -172,4 +203,48 @@ export default {
height: 22px;
line-height: 22px;
}
.merchant-box {
padding: 20px;
max-height: 440px;
overflow: auto;
}
.line_wrapper {
width: 592px;
min-height: 54px;
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
color: #909399;
font-size: 14px;
.tittle {
padding-left: 16px;
width: 20%;
text-align: left;
color: #666666;
font-size: 14px;
}
.tittle1 {
width: 80%;
text-align: left;
color: #666666;
font-size: 14px;
word-wrap: break-word;
word-break: break-all;
overflow: hidden;
}
}
.text_w {
font-weight: bold;
}
.wrap_header {
background: #f4f6fc;
}
.line_body {
width: 590px;
overflow-y: auto;
overflow-x: hidden;
border: 1px solid #e8e8ea;
border-top: none;
}
</style>
<!-- 修改记录 -->
<template>
<div class="config-employee">
<div class="container">
<!-- <p class="edit-sub-title p-rl-20">修改记录</p> -->
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<el-button type="text" @click="handleEdit(2, scope.scope)">修改</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template>
</GLTable>
<div class="config-employee-main">
<p class="edit-title">操作记录</p>
<div class="container">
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<el-button type="text" @click="handleEdit(2, scope.scope)">修改</el-button>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template>
</GLTable>
</div>
</div>
</div>
</template>
......@@ -100,26 +102,31 @@ export default {
}
}
</script>
<style>
<style lang="scss" scoped>
.config-employee {
margin-bottom: 64px;
&-main {
background: #ffffff;
}
}
.edit-title {
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600;
color: #333333;
padding: 20px 20px;
border-bottom: 1px solid #e5e5e5;
}
.config-employee .container {
margin-top: 20px;
background: #ffffff;
/* box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); */
padding: 20px;
}
.config-employee .p-rl-20 {
padding: 0 20px;
}
.config-employee .flex {
display: flex;
justify-content: space-between;
}
.config-employee .edit-container {
/* .config-employee .edit-container {
margin-bottom: 84px;
}
} */
.config-employee .footer {
position: fixed;
......
......@@ -8,7 +8,7 @@
<el-tab-pane label="账户权限" name="config">
<config :id="id"></config>
</el-tab-pane>
<el-tab-pane label="修改记录" name="record">
<el-tab-pane label="编辑记录" name="record">
<record :id="id"></record>
</el-tab-pane>
</el-tabs>
......@@ -49,7 +49,7 @@ export default {
}
}
</script>
<style>
<style scoped lang="scss">
.config-employee {
margin-bottom: 20px;
}
......@@ -102,10 +102,17 @@ export default {
margin-bottom: 0;
}
.config-employee .el-tabs__nav-wrap:after {
opacity: 0;
height: 1px;
}
.config-employee .el-tabs__item {
height: 20px !important;
line-height: 10px !important;
/deep/ {
.el-tabs__item {
font-size: 16px !important;
color: #666666;
height: 35px !important;
line-height: 20px !important;
}
.el-tabs__item.is-active {
color: #5850ff;
}
}
</style>
......@@ -17,7 +17,7 @@
<el-button class="m-l-10" type="primary" @click="handleResetPass">重置密码</el-button>
</template>
<template v-if="userInfo.accountLevel == 4 && routeInfo.addOrEdit == 1" slot="roleIdsSlot">
<el-button class="m-l-10" type="primary" @click="handleJumpRole">创建角色</el-button>
<el-button type="text" @click="handleJumpRole">添加角色</el-button>
<!-- <el-button class="m-l-10 el-icon-refresh" type="primary" @click="handleRefresh">刷新</el-button> -->
</template>
<template slot="visibleInferiorMer" slot-scope="item">
......@@ -130,7 +130,7 @@ export default {
isBlock: true,
editFormData: [
{
label: '所属商户',
label: '所属商户:',
name: 'merchantId',
type: 'selectInput',
noClearable: true,
......@@ -139,16 +139,18 @@ export default {
optionId: 'id',
optionLabel: 'merchantName',
optionsName: 'allMerchantList',
addHtml: 'merchantId'
addHtml: 'merchantId',
placeholder: '请选择所属商户'
},
{
label: '员工姓名',
label: '员工姓名:',
name: 'staffName',
type: 'input',
maxlength: 15
maxlength: 15,
placeholder: '请输入员工姓名'
},
{
label: '登录手机号',
label: '登录手机号:',
name: 'staffPhone',
type: 'input',
placeholder: '请输入您有效的手机号作为登录账户',
......@@ -156,20 +158,21 @@ export default {
isDisabled: false
},
{
label: '登录密码',
label: '登录密码:',
name: 'password',
showPass: true,
type: 'input',
maxlength: 20,
suffixSlot: 'passwordSlot'
suffixSlot: 'passwordSlot',
placeholder: '请输入登录密码'
},
{
label: '可见商户',
label: '可见商户:',
name: 'visibleInferiorMer',
addHtml: 'visibleInferiorMer'
},
{
label: '角色权限',
label: '角色权限:',
name: 'roleIds',
type: 'select',
optionList: [],
......@@ -179,7 +182,7 @@ export default {
suffixSlot: 'roleIdsSlot'
},
{
label: '头像',
label: '头像:',
name: 'merchantImg',
type: 'upload',
maxPhotoNum: 1,
......@@ -199,16 +202,18 @@ export default {
}
},
{
label: '邮箱',
label: '邮箱:',
name: 'staffEmail',
type: 'input',
maxlength: 30
maxlength: 30,
placeholder: '请输入邮箱'
},
{
label: '主要职务',
label: '主要职务:',
name: 'staffJob',
type: 'input',
maxlength: 10
maxlength: 10,
placeholder: '请输入主要职务'
}
],
baseData: {
......@@ -447,7 +452,7 @@ export default {
}
</script>
<style>
<style lang="scss" scoped>
.config-employee .container {
margin-bottom: 20px;
background: #ffffff;
......@@ -526,4 +531,7 @@ export default {
text-overflow: ellipsis;
word-wrap: break-word;
}
/deep/ .el-form-item {
margin-bottom: 20px !important;
}
</style>
......@@ -12,10 +12,10 @@
<div class="table-header">
<div class="header-text">员工列表</div>
<div class="table-btn">
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" type="primary" plain @click="batch(1)">批量分配角色</el-button>
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" type="primary" plain @click="batch(1)">分配角色</el-button>
<el-button v-if="($globalState.session.userType == 1 && $globalState.session.accountLevel == 4) || ($globalState.session.userType == 2 && $globalState.session.isMerchantStaffAdmin)" :size="size" plain @click="batch(2)">批量启用</el-button>
<!-- <el-button @click="handleExport" :size="size" type="primary" plain mode="el-button">导出</el-button> -->
<GLButton @click="handleExport" fn="导出" :size="size" type="primary" plain mode="el-button">导出</GLButton>
<!-- <el-button @click="handleExport" :size="size" plain mode="el-button">导出</el-button> -->
<GLButton @click="handleExport" fn="导出" :size="size" plain mode="el-button">导出</GLButton>
</div>
</div>
<!-- 表格区域 开始 -->
......
......@@ -174,7 +174,7 @@
</div>
<div>
<div class="config-box-content">
<div class="config-box-h2">一共需要配置三个按钮,请根据以下表格进行填写</div>
<div class="config-box-h2">一共需要配置{{ chatMenuList.length }}个按钮,请根据以下表格进行填写</div>
<table cellspacing="0" cellpadding="0" border="0" class="config-box-table">
<tr>
......@@ -492,7 +492,7 @@ export default {
}
.step-panel {
display: flex;
margin-bottom: 55px;
margin-bottom: 16px;
position: relative;
.step-left {
width: 220px;
......@@ -583,7 +583,7 @@ export default {
vertical-align: middle;
color: #333333;
border-width: 1px;
// height: 36px;
height: 36px;
border-style: solid;
border-color: #e8e8ea;
background: #f4f6fc;
......
......@@ -15,8 +15,14 @@
<div class="table-header">
<div class="header-text">跟进专员列表</div>
<div class="table-btn">
<GLButton fn="新增" size="small" type="primary" plain @click="openDrawer">添加专员</GLButton>
<!-- <el-button size="small" type="primary" plain @click="openDrawer">跟进专员</el-button> -->
<GLButton fn="新增" size="small" type="primary" plain @click="openDrawer">
<i class="el-icon-plus"></i>
添加专员
</GLButton>
<!-- <el-button size="small" type="primary" plain @click="openDrawer">
<i class="el-icon-plus"></i>
添加专员
</el-button> -->
</div>
</div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!