Commit d75ace31 by 匡雅琴

样式调整

1 parent 99d2df9a
......@@ -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">
<p class="txt-ellipsis" style="margin-bottom: 24px" v-for="(item, index) in info.visibleInferiorMerName.split(',')" :key="index" :title="item">{{ item }}</p>
......@@ -26,33 +53,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 +77,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 +139,6 @@ export default {
height: 58px;
line-height: 58px;
border-bottom: 1px solid #e7eaec;
margin: 0 0;
padding: 0 20px;
}
......
<!-- 修改记录 -->
<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>
......@@ -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>
......@@ -15,8 +15,8 @@
<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">添加专员</GLButton> -->
<el-button size="small" type="primary" plain @click="openDrawer">跟进专员</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!