Commit 4a444598 by 胡悦

Merge branch 'huy_dev_v2.7.0' of http://192.168.3.233:8090/saas/scrm-micro-setti…

…ngs into huy_dev_v2.7.0
2 parents e63f4a2a 5466007f
...@@ -428,9 +428,9 @@ export default { ...@@ -428,9 +428,9 @@ export default {
} }
.account-body { .account-body {
margin-top: 20px; margin-top: 20px;
&:nth-of-type(3) { // &:nth-of-type(3) {
margin-bottom: 70px; // margin-bottom: 70px;
} // }
.form-title { .form-title {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
......
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.tab_line { .tab_line {
width: 100%; width: 100%;
height: 2px; height: 2px;
...@@ -156,9 +156,7 @@ export default { ...@@ -156,9 +156,7 @@ export default {
margin-bottom: 64px; margin-bottom: 64px;
} }
.config-employee.config-config .container { .config-employee.config-config .container {
margin-top: 20px;
background: #ffffff; background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 0 20px; padding: 0 20px;
.content-title { .content-title {
display: inline-block; display: inline-block;
......
<!-- 基本信息 --> <!-- 基本信息 -->
<template> <template>
<div>
<div class="config-employee config-info"> <div class="config-employee config-info">
<div class="container edit-box"> <div class="container edit-box">
<p class="edit-title">员工基本信息</p> <p class="edit-title">员工基本信息</p>
<el-form label-width="140px" :inline="true" style="margin: 32px 0 12px;"> <div class="info-box">
<el-form-item class="basic-info" isEdit="true" v-for="(item, index) in detailFormData" :key="index" :label="item.label + ':'"> <div class="info-box-left">
<span class="txt-ellipsis" style="display: inline-block; width: 100%; height: 28px;" :title="info[item.name] || '-'">{{ info[item.name] || '-' }}</span> <div class="label-height">
</el-form-item> <span class="info-box-label">姓名:</span>
</el-form> <span class="info-box-msg">{{ info.staffName }}</span>
</div> </div>
<div class="container edit-box"> <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="next-merchant container">
<p class="edit-title">可见下级商户</p> <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> <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> </div>
</div> </div>
...@@ -26,33 +65,7 @@ export default { ...@@ -26,33 +65,7 @@ export default {
info: { info: {
visibleInferiorMerName: '' visibleInferiorMerName: ''
}, },
powerDataArray: [], powerDataArray: []
detailFormData: [
{
label: '姓名',
name: 'staffName'
},
{
label: '角色名称',
name: 'roleName'
},
{
label: '登录手机号',
name: 'staffPhone'
},
{
label: '创建人',
name: 'createdAccount'
},
{
label: '职务',
name: 'staffJob'
},
{
label: '企微号',
name: 'entmicroName'
}
]
} }
}, },
...@@ -76,15 +89,34 @@ export default { ...@@ -76,15 +89,34 @@ export default {
} }
} }
</script> </script>
<style> <style scoped lang="scss">
.config-employee { .info-box {
margin-bottom: 64px; 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; margin-top: 20px;
}
.label-height {
margin-bottom: 20px;
}
.config-employee .container {
background: #ffffff; background: #ffffff;
/* box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); */
/* padding: 20px; */
} }
.config-employee .edit-box.container { .config-employee .edit-box.container {
padding: 0 0 20px; padding: 0 0 20px;
...@@ -119,7 +151,6 @@ export default { ...@@ -119,7 +151,6 @@ export default {
height: 58px; height: 58px;
line-height: 58px; line-height: 58px;
border-bottom: 1px solid #e7eaec; border-bottom: 1px solid #e7eaec;
margin: 0 0;
padding: 0 20px; padding: 0 20px;
} }
...@@ -172,4 +203,48 @@ export default { ...@@ -172,4 +203,48 @@ export default {
height: 22px; height: 22px;
line-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> </style>
<!-- 修改记录 --> <!-- 修改记录 -->
<template> <template>
<div class="config-employee"> <div class="config-employee">
<div class="config-employee-main">
<p class="edit-title">操作记录</p>
<div class="container"> <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"> <GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<template slot="auth-button" slot-scope="scope"> <template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button> <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
...@@ -12,6 +13,7 @@ ...@@ -12,6 +13,7 @@
</GLTable> </GLTable>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
...@@ -100,26 +102,31 @@ export default { ...@@ -100,26 +102,31 @@ export default {
} }
} }
</script> </script>
<style> <style lang="scss" scoped>
.config-employee { .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 { .config-employee .container {
margin-top: 20px;
background: #ffffff; background: #ffffff;
/* box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); */
padding: 20px; padding: 20px;
} }
.config-employee .p-rl-20 {
padding: 0 20px;
}
.config-employee .flex { .config-employee .flex {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.config-employee .edit-container { /* .config-employee .edit-container {
margin-bottom: 84px; margin-bottom: 84px;
} } */
.config-employee .footer { .config-employee .footer {
position: fixed; position: fixed;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<el-tab-pane label="账户权限" name="config"> <el-tab-pane label="账户权限" name="config">
<config :id="id"></config> <config :id="id"></config>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="修改记录" name="record"> <el-tab-pane label="编辑记录" name="record">
<record :id="id"></record> <record :id="id"></record>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
} }
} }
</script> </script>
<style> <style scoped lang="scss">
.config-employee { .config-employee {
margin-bottom: 20px; margin-bottom: 20px;
} }
...@@ -102,10 +102,17 @@ export default { ...@@ -102,10 +102,17 @@ export default {
margin-bottom: 0; margin-bottom: 0;
} }
.config-employee .el-tabs__nav-wrap:after { .config-employee .el-tabs__nav-wrap:after {
opacity: 0; height: 1px;
} }
.config-employee .el-tabs__item { /deep/ {
height: 20px !important; .el-tabs__item {
line-height: 10px !important; font-size: 16px !important;
color: #666666;
height: 35px !important;
line-height: 20px !important;
}
.el-tabs__item.is-active {
color: #5850ff;
}
} }
</style> </style>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<el-button class="m-l-10" type="primary" @click="handleResetPass">重置密码</el-button> <el-button class="m-l-10" type="primary" @click="handleResetPass">重置密码</el-button>
</template> </template>
<template v-if="userInfo.accountLevel == 4 && routeInfo.addOrEdit == 1" slot="roleIdsSlot"> <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> --> <!-- <el-button class="m-l-10 el-icon-refresh" type="primary" @click="handleRefresh">刷新</el-button> -->
</template> </template>
<template slot="visibleInferiorMer" slot-scope="item"> <template slot="visibleInferiorMer" slot-scope="item">
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
isBlock: true, isBlock: true,
editFormData: [ editFormData: [
{ {
label: '所属商户', label: '所属商户:',
name: 'merchantId', name: 'merchantId',
type: 'selectInput', type: 'selectInput',
noClearable: true, noClearable: true,
...@@ -139,16 +139,18 @@ export default { ...@@ -139,16 +139,18 @@ export default {
optionId: 'id', optionId: 'id',
optionLabel: 'merchantName', optionLabel: 'merchantName',
optionsName: 'allMerchantList', optionsName: 'allMerchantList',
addHtml: 'merchantId' addHtml: 'merchantId',
placeholder: '请选择所属商户'
}, },
{ {
label: '员工姓名', label: '员工姓名:',
name: 'staffName', name: 'staffName',
type: 'input', type: 'input',
maxlength: 15 maxlength: 15,
placeholder: '请输入员工姓名'
}, },
{ {
label: '登录手机号', label: '登录手机号:',
name: 'staffPhone', name: 'staffPhone',
type: 'input', type: 'input',
placeholder: '请输入您有效的手机号作为登录账户', placeholder: '请输入您有效的手机号作为登录账户',
...@@ -156,20 +158,21 @@ export default { ...@@ -156,20 +158,21 @@ export default {
isDisabled: false isDisabled: false
}, },
{ {
label: '登录密码', label: '登录密码:',
name: 'password', name: 'password',
showPass: true, showPass: true,
type: 'input', type: 'input',
maxlength: 20, maxlength: 20,
suffixSlot: 'passwordSlot' suffixSlot: 'passwordSlot',
placeholder: '请输入登录密码'
}, },
{ {
label: '可见商户', label: '可见商户:',
name: 'visibleInferiorMer', name: 'visibleInferiorMer',
addHtml: 'visibleInferiorMer' addHtml: 'visibleInferiorMer'
}, },
{ {
label: '角色权限', label: '角色权限:',
name: 'roleIds', name: 'roleIds',
type: 'select', type: 'select',
optionList: [], optionList: [],
...@@ -179,7 +182,7 @@ export default { ...@@ -179,7 +182,7 @@ export default {
suffixSlot: 'roleIdsSlot' suffixSlot: 'roleIdsSlot'
}, },
{ {
label: '头像', label: '头像:',
name: 'merchantImg', name: 'merchantImg',
type: 'upload', type: 'upload',
maxPhotoNum: 1, maxPhotoNum: 1,
...@@ -199,16 +202,18 @@ export default { ...@@ -199,16 +202,18 @@ export default {
} }
}, },
{ {
label: '邮箱', label: '邮箱:',
name: 'staffEmail', name: 'staffEmail',
type: 'input', type: 'input',
maxlength: 30 maxlength: 30,
placeholder: '请输入邮箱'
}, },
{ {
label: '主要职务', label: '主要职务:',
name: 'staffJob', name: 'staffJob',
type: 'input', type: 'input',
maxlength: 10 maxlength: 10,
placeholder: '请输入主要职务'
} }
], ],
baseData: { baseData: {
...@@ -447,7 +452,7 @@ export default { ...@@ -447,7 +452,7 @@ export default {
} }
</script> </script>
<style> <style lang="scss" scoped>
.config-employee .container { .config-employee .container {
margin-bottom: 20px; margin-bottom: 20px;
background: #ffffff; background: #ffffff;
...@@ -526,4 +531,7 @@ export default { ...@@ -526,4 +531,7 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
word-wrap: break-word; word-wrap: break-word;
} }
/deep/ .el-form-item {
margin-bottom: 20px !important;
}
</style> </style>
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
<div class="table-header"> <div class="table-header">
<div class="header-text">员工列表</div> <div class="header-text">员工列表</div>
<div class="table-btn"> <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 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> --> <!-- <el-button @click="handleExport" :size="size" plain mode="el-button">导出</el-button> -->
<GLButton @click="handleExport" fn="导出" :size="size" type="primary" plain mode="el-button">导出</GLButton> <GLButton @click="handleExport" fn="导出" :size="size" plain mode="el-button">导出</GLButton>
</div> </div>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
......
...@@ -15,8 +15,14 @@ ...@@ -15,8 +15,14 @@
<div class="table-header"> <div class="table-header">
<div class="header-text">跟进专员列表</div> <div class="header-text">跟进专员列表</div>
<div class="table-btn"> <div class="table-btn">
<GLButton fn="新增" size="small" type="primary" plain @click="openDrawer">添加专员</GLButton> <GLButton fn="新增" size="small" type="primary" plain @click="openDrawer">
<!-- <el-button size="small" type="primary" plain @click="openDrawer">跟进专员</el-button> --> <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>
</div> </div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch"> <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!