Commit a64e14a8 by 王志慧

style 样式调整

1 parent 4e864dc4
......@@ -32,8 +32,18 @@ export function getDataOverviewBarMap(params) {
})
}
// 获取自定义分群客户列表数据接口
// 获取数据概览客户列表数据接口
export function getCustomerList(params) {
params.method = 'entmicro.api.customer.cluster.page'
return http3({
url:'/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取人群管理客户列表数据接口
export function getcrowdManageList(params) {
params.method = 'entmicro.api.customer.crowd.page'
return http3({
url:'/rop-scrm-entmicro/router',
......@@ -43,6 +53,7 @@ export function getCustomerList(params) {
sign: true
})
}
//客户分群列表导出
export function customerClusterListExport(params) {
params.method = 'entmicro.api.customer.customerClusterListExport'
......
export const Constants = {
CLIENT_STATUS :{
CLIENT_STATUS: {
'0': '正常, green-text',
'1': '删除好友, red-text'
},
//性别选项
GENDER_OPTION:[
GENDER_OPTION: [
{
label: '全部',
value: null
......@@ -23,65 +23,79 @@ export const Constants = {
value: 0
}
],
SOURCE_OPTION:[
{
label: '全部',
value: 0
},
{
label: '直接导入',
value: 1
},
{
label: '扫描二维码',
value: 'first'
},
{
label: '搜索手机号',
value: 2
},
{
label: '名片分享',
value: 3
},
{
label: '群聊',
value: 4
},
{
label: '手机通讯录',
value: 5
},
{
label: '微信联系人',
value: 6
},
{
label: '来自微信的添加好友申请',
value: 7
},
{
label: '第三方应用的客户人员',
value: 8
},
{
label: '搜索邮箱',
value: 9
},
{
label: '内部成员共享',
value: 10
},
{
label: '管理员/负责人分配',
value: 11
},
{
label: '未知来源',
value: 12
}
SOURCE_OPTION: [
{
label: '全部',
value: 0
},
{
label: '直接导入',
value: 1
},
{
label: '扫描二维码',
value: 'first'
},
{
label: '搜索手机号',
value: 2
},
{
label: '名片分享',
value: 3
},
{
label: '群聊',
value: 4
},
{
label: '手机通讯录',
value: 5
},
{
label: '微信联系人',
value: 6
},
{
label: '来自微信的添加好友申请',
value: 7
},
{
label: '第三方应用的客户人员',
value: 8
},
{
label: '搜索邮箱',
value: 9
},
{
label: '内部成员共享',
value: 10
},
{
label: '管理员/负责人分配',
value: 11
},
{
label: '未知来源',
value: 12
}
],
//标签类型
LABEL_OPTION: [
{
label: '企业标签',
value: '企业标签'
},
{
label: '自店标签',
value: '自店标签'
},
{
label: '系统标签',
value: '系统标签'
}
],
// 文件大小提示语
FILESIZEMSG: '单个文件大小不能超过10M',
......
......@@ -2,7 +2,7 @@
<div class="scrm-sub-client-container">
<div class="head-container">
<div class="head-container-title color-3 font-20">{{ crowdForm.crowdName }}</div>
<div class="head-container-content color-6 font-14">{{ crowdForm.crowdDesc}}</div>
<div class="head-container-content color-6 font-14">{{ crowdForm.crowdDesc }}</div>
<!-- <div class="reminder font-14 color-3">企业标签 | 自动更新</div> -->
<div class="back color-58 font-14" @click="goBack">返回人群管理</div>
</div>
......@@ -46,17 +46,18 @@
</template>
<script>
import { getCustomerList, customerClusterListExport } from '@/api/modules/clientDataOverview'
import { getCustomerList, getcrowdManageList, customerClusterListExport } from '@/api/modules/clientDataOverview'
import url from '@/assets/empty.png'
export default {
name: 'group',
data() {
return {
getListApi: getCustomerList,
getListApi: this.$route.params.crowdType ? getcrowdManageList : getCustomerList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableSearchForm: {},
crowdForm: {},
id: this.$route.params.id ? this.$route.params.id : '',
crowdType: this.$route.params.crowdType ? this.$route.params.crowdType : '',
totalCount: '',
tableParams: {
listName: 'data',
......@@ -207,6 +208,7 @@ export default {
line-height: 20px;
letter-spacing: 1px;
margin-bottom: 10px;
width: calc(100% - 156px);
}
&-content {
font-weight: 400;
......
......@@ -525,7 +525,6 @@ export default {
},
//跳转到人群客户列表
goto(id) {
console.log(this.userType)
if (this.userType == 2) return
this.$router.push('/clientDataOverview/group/' + id)
}
......
......@@ -21,7 +21,7 @@
<!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> -->
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' : '' }}</span>
<span style="font-size: 12px" class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' : '' }}</span>
</span>
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
......
......@@ -47,7 +47,7 @@ export default {
type: 'input',
inputType: 'text',
prop: 'req.keyword',
label: '人群名称',
label: '人群名称:',
placeholder: '请输入人群名称',
clearable: true
}
......@@ -118,7 +118,8 @@ export default {
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}`)
}
if (type == 'view') {
this.$router.push(`/clientDataOverview/group/${data.crowdId}`)
const crowdType = this.activeName == 'first' ? 1 : 2
this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`)
}
},
addClick() {
......@@ -154,6 +155,15 @@ export default {
// this.$refs.crowdManage.refreshTable()
// }
},
beforeRouteEnter(to, from, next) {
next(vm => {
if (from.params.crowdType) {
vm.activeName = from.params.crowdType == 2 ? 'second' : 'first'
vm.crowdType = from.params.crowdType
vm.beforeSearchFn()
}
})
}
}
</script>
......@@ -193,9 +203,29 @@ export default {
margin-left: 10px;
}
.scrm-sub-client-container {
/deep/.search-form .el-form-item__content {
width: auto;
.pageContent {
/deep/.search-form {
.itemWidth {
display: flex;
.el-form-item {
display: flex;
}
}
.el-form-item__content {
width: auto;
display:inline-block;
margin-left:0px!important;
.el-input {
width: 415px;
.el-input__inner {
width: 415px;
}
}
}
}
}
.pageContent {
padding: 6px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
......@@ -204,10 +234,10 @@ export default {
margin-left: 10px;
}
.searchTop {
/deep/ .el-form-item:nth-child(2) {
position: static !important;
.el-form-item__content{
margin-left:15px!important;
/deep/ .el-form-item:nth-child(2) {
position: static !important;
.el-form-item__content {
margin-left: 15px !important;
}
}
}
......
......@@ -200,20 +200,7 @@ export default {
prop: 'labelTreeReq.labelTypesStr',
label: '标签组',
placeholder: '请选择标签组类型',
options: [
{
label: '企业标签',
value: '企业标签'
},
{
label: '自店标签',
value: '自店标签'
},
{
label: '系统标签',
value: '系统标签'
}
]
options: this.$Constants.LABEL_OPTION
},
{
type: 'input',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!