Commit 7c8368ea by xuyl

Merge branch 'v2.0.0' of http://192.168.3.233:8090/saas/scrm-micro-custom into xuyl_dev_v2.0.0

2 parents 12d5e724 990effd6
...@@ -12,7 +12,8 @@ import { http3 } from '@/main' ...@@ -12,7 +12,8 @@ import { http3 } from '@/main'
export function getCrowdList(params) { export function getCrowdList(params) {
params.method = 'scrm.api.datahub.user.queryCrowdTree' params.method = 'scrm.api.datahub.user.queryCrowdTree'
return http3({ return http3({
url: '/rop-scrm-datahub/router', // url: '/rop-scrm-datahub/router',
url:'http://192.168.3.181:9636/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
......
...@@ -73,10 +73,6 @@ background: transparent !important; ...@@ -73,10 +73,6 @@ background: transparent !important;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.flex-satrt{
display: flex;
align-items: flex-start;
}
.font-20{ .font-20{
font-size: 20px; font-size: 20px;
} }
......
<template> <template>
<div class="scrm-sub-client-container" v-loading=loading> <div class="scrm-sub-client-container" v-loading="loading">
<el-tabs v-model="activeName" @tab-click="handleClick()"> <el-tabs v-model="activeName" @tab-click="handleClick()">
<el-tab-pane label="推荐人群" name="first"></el-tab-pane> <el-tab-pane label="推荐人群" name="first"></el-tab-pane>
<el-tab-pane label="自定义人群" name="second"> <el-tab-pane label="自定义人群" name="second">
<el-button type="primary">+ 新建人群</el-button> <GLButton class="addBtn" fn="新建人群" @click="addClick">+ 新建人群</GLButton>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<div class="pageContent"> <div class="pageContent">
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
</search-form> </search-form>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="crowdManage" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }"> <GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="crowdManage" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<template slot="xxx" slot-scope="scope"> <template slot="xxx" slot-scope="scope">
<span @click="btnClick('edit', scope.scope)" class="blue-text">查看详情</span> <span @click="btnClick('detail', scope.scope)" class="blue-text">查看详情</span>
<span style="margin-left: 20px" @click="btnClick('edit', scope.scope)" class="blue-text">查看客户</span> <span style="margin-left: 20px" @click="btnClick('view', scope.scope)" class="blue-text">查看客户</span>
<!-- <GLButton class="blue-text leftDistance" type="text" fn="查看客户" v-if="userType !== 2" @click="toViewCustomer(scope.scope)">查看客户</GLButton> --> <!-- <GLButton class="blue-text leftDistance" type="text" fn="查看客户" v-if="userType !== 2" @click="toViewCustomer(scope.scope)">查看客户</GLButton> -->
</template> </template>
</GLTable> </GLTable>
...@@ -108,6 +108,19 @@ export default { ...@@ -108,6 +108,19 @@ export default {
}, 200) }, 200)
}, },
methods: { methods: {
btnClick(type, data) {
console.log(data)
if (type == 'detail') {
console.log(`/crowdManage/crowdDetail/${data.crowdId}`)
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}`)
}
if (type == 'view') {
this.$router.push(`/clientDataOverview/group/${data.crowdId}`)
}
},
addClick() {
this.$router.push('/crowdManage/crowdAdd')
},
setTableHeightEvent() { setTableHeightEvent() {
this.$refs.clientGroupDetail.setTableHeightFun() this.$refs.clientGroupDetail.setTableHeightFun()
}, },
...@@ -126,7 +139,6 @@ export default { ...@@ -126,7 +139,6 @@ export default {
this.searchForm = Object.assign(this.searchForm, { 'req.merchantId': this.merchantId, 'req.crowdType': crowdType }) this.searchForm = Object.assign(this.searchForm, { 'req.merchantId': this.merchantId, 'req.crowdType': crowdType })
resolve() resolve()
}) })
}, },
//搜索表格 //搜索表格
searchTable() { searchTable() {
...@@ -145,6 +157,17 @@ export default { ...@@ -145,6 +157,17 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
@import '@/styles/resetelement.scss'; @import '@/styles/resetelement.scss';
.addBtn {
height: 32px;
background: $btnBlue;
border-radius: 3px;
padding: 5px 16px;
color: #fff;
font-size: 16px;
&:hover {
background-color: $lightBtnBlue;
}
}
/deep/ .el-tabs__nav-wrap::after { /deep/ .el-tabs__nav-wrap::after {
content: none; content: none;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!