Commit 19c142cf by 胡悦

Merge branch 'v1.0.2' of http://192.168.3.233:8090/saas/scrm-micro-custom into v1.0.2

2 parents b98d30a5 cbd5d0cd
......@@ -15,7 +15,7 @@
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.4",
"glsx-components": "^1.3.6",
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
......
......@@ -11,7 +11,7 @@
export function getTableList (params){
params.method='entmicro.api.customer.base.page'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -20,7 +20,7 @@
}
export function syncCustomerBase(params){
params.method='entmicro.api.synchro.syncCustomerBase'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -29,7 +29,7 @@
}
export function getTableDetail(params){
params.method='entmicro.api.customer.base.detail'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -38,7 +38,7 @@
}
export function getClientTableDetail(params){
params.method='entmicro.api.customer.detail'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -49,7 +49,7 @@
// 客户群的客户列表获取分页数据接口
export function getDetailTableList(params){
params.method='entmicro.api.customer.base.cust.page'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -76,7 +76,7 @@ export function getStatus(params) {
// POST /router/entmicro.api.customer.base.staff.page/1.0.0
export function getDetailStaffTableList(params){
params.method='entmicro.api.customer.base.staff.page'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -89,7 +89,7 @@ export function getDetailStaffTableList(params){
*/
export function getDetailQuitTableList(params){
params.method='entmicro.api.customer.base.quit.cust.page'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -101,7 +101,7 @@ export function getDetailQuitTableList(params){
*/
export function getDetailPotentialTableList(params){
params.method='entmicro.api.customer.base.potential.cust.page'
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -111,7 +111,7 @@ export function getDetailPotentialTableList(params){
//客户群管理(群聊管理)导出
export function clientGroupExportApi(params){
params.method=`entmicro.api.customer.base.list.export`
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......@@ -121,7 +121,7 @@ export function clientGroupExportApi(params){
// 全部客户导出
export function clientExportApi(params){
params.method=`entmicro.api.customer.base.cust.export`
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......@@ -132,7 +132,7 @@ export function clientExportApi(params){
//跟进员工导出
export function followEmployeeExportApi(params){
params.method=`entmicro.api.customer.base.staff.export`
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......@@ -142,7 +142,7 @@ export function followEmployeeExportApi(params){
//退群客户导出
export function leaveGroupExportApi(params){
params.method=`entmicro.api.customer.base.quit.export`
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......@@ -153,7 +153,7 @@ export function leaveGroupExportApi(params){
export function potentialClientExportApi(params){
params.method=`entmicro.api.customer.base.potential.export`
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......
......@@ -6,7 +6,7 @@
* @param {*} params
* @returns
*/
import { http,http2 } from '@/main'
import { http,http2,http3 } from '@/main'
//const commonUrl='&format=json&appKey=48e5e13229b82c1b4e6e8c96151f0637&v=1.0.*×tamp=1654487354&source=sub-client-custom&sign=sdf9787dfs87987sf9879sdf87sdf'
//获取客户列表内容
......@@ -108,7 +108,7 @@
//客户信息管理导出
export function clientManageExportApi(params){
params.method=`entmicro.api.customer.customerListExport`
return http2({
return http3({
url: '/rop-scrm-entmicro/router',
method: 'GET',
data: params,
......
......@@ -5,7 +5,7 @@
<template slot-scope="scope">
<template v-if="item.type === 'input'">
<el-input v-if="item.clickFunc" :type="item.inputText || 'text'" :readonly="item.readonly || false" @click.native="item.clickFunc" :class="item.clickFunc ? 'pointer' : ''" :ref="item.ref" v-model="ruleForm[item.prop]" @input="update($event)"></el-input>
<el-input v-else :type="item.inputText || 'text'" :readonly="item.readonly || false" :disabled="item.disabled || false" v-model="ruleForm[item.prop]" :maxlength="item.maxlength" :minlength="item.minlength" :placeholder="item.placeholder || '请输入'" :show-password="item.showPassword || false" :clearable="item.clearable" :show-word-limit="item.showWordLimit || false"></el-input>
<el-input v-else :type="item.inputText || 'text'" :readonly="item.readonly || false" :disabled="item.disabled || false" v-model.trim="ruleForm[item.prop]" :maxlength="item.maxlength" :minlength="item.minlength" :placeholder="item.placeholder || '请输入'" :show-password="item.showPassword || false" :clearable="item.clearable" :show-word-limit="item.showWordLimit || false"></el-input>
</template>
<template v-else-if="item.type == 'select'">
<el-select v-if="item.visibleFunc" v-model="ruleForm[item.prop]" :placeholder="item.placeholder || '请选择'" :filterable="item.filterable || false" @change="selectChange" @visible-change="item.visibleFunc">
......
......@@ -47,17 +47,7 @@
<slot name="form-slot"></slot>
</template>
</el-form-item>
<!-- <el-form-item>
<template>
<slot name="formsearch-slot"></slot>
</template>
</el-form-item> -->
</div>
<!-- <div class="rightBottomBtn">
<el-button plain @click="resetTable" size="small">重置</el-button>
<el-button type="primary" @click="searchTable" size="small">查询</el-button>
<el-button type="primary" @click="syncClick" :loading="ploading" size="small" v-if="(merchantModel == 1 && accountLevel == 1) || (merchantModel == 2 && accountLevel == 4)">同步数据</el-button>
</div> -->
</el-form>
</div>
</template>
......@@ -335,7 +325,6 @@ this.$emit('handleExport')
}
.el-select>.el-input{
width: 215px;
}
.el-form-item__content {
width: 100%;
......
......@@ -12,7 +12,7 @@ import 'glsx-components/dist/glsx-components.css'
let routes = []
let router = null
let instance = null
// http:调的是新版标签的接口,http2:调的是客户相关接口;http3:企微授权那边的接口
// http:调的是新版标签的接口,http2:调的是客户相关接口;http3:企微授权那边的接口 目前导出接口都测试的:http3
export async function bootstrap({ name, id, history, common, messenger, globalState,routerBase }) {
const { response, request,request2,request3, sign, secret, sign_common, request_common } = await fetchConfig(globalState.configSwitch)//globalState.configSwitch
Vue.prototype.$history = history
......
......@@ -595,6 +595,7 @@ export default {
}
.topmsg {
display: flex;
min-width: 1050px;
.leftPieEcharts {
position: relative;
background-color: #fff;
......@@ -727,7 +728,7 @@ export default {
}
.itembox {
width: calc(100% - 372px);
min-width: 500px;
.item {
// border: 1px solid rgba(121, 121, 121, 1);
height: 119px;
......@@ -897,6 +898,7 @@ export default {
}
}
.middlemsg {
min-width: 1050px;
.itembox {
display: flex;
width: 100%;
......@@ -958,6 +960,7 @@ export default {
.bottommsg {
position: relative;
width: 100%;
min-width: 1050px;
height: 578px;
background-color: #fff;
.timeDuring {
......
......@@ -98,7 +98,7 @@ export default {
},
{
label: '员工名称',
prop: 'customerName',
prop: 'staffName',
minWidth: 150
},
......
......@@ -21,7 +21,7 @@
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <auth-button :data="scope.scope"></auth-button> -->
<span @click="goDetail(scope.scope.id, scope.scope.custGroupName)" class="blue-text">详情</span>
<!-- <GLButton @click="goDetail(scope.scope.id, scope.scope.custGroupName)" fn="客户群详情" type="text">详情</GLButton> -->
<!-- <GLButton @click="goDetail(scope.scope.id, scope.scope.custGroupName)" fn="客户群详情" type="text">详情</GLButton> -->
</template>
</GLTable>
</div>
......@@ -30,7 +30,7 @@
</template>
<script>
import { getTableList, syncCustomerBase, getStatus,clientGroupExportApi } from '@/api/modules/clientGroupManage'
import { getTableList, syncCustomerBase, getStatus, clientGroupExportApi } from '@/api/modules/clientGroupManage'
import url from '@/assets/clientDataOverview/nodata.png'
export default {
name: 'clientGroupManage',
......@@ -142,7 +142,7 @@ export default {
label: '创建方式',
prop: 'creationMethod',
formatter: cellValue => {
return cellValue.creationMethod==1 ? '手动拉群' : cellValue.creationMethod==2 ? "一客一群" : ""
return cellValue.creationMethod == 1 ? '手动拉群' : cellValue.creationMethod == 2 ? '一客一群' : ''
},
minWidth: 140
},
......@@ -169,9 +169,9 @@ export default {
flushTime: false
}
},
activated() {
this.searchTable()
},
// activated() {
// this.searchTable()
// },
created() {
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
......@@ -191,10 +191,10 @@ export default {
// }
// },
beforeDestroy() {
this.$message.closeAll()
this.$message.closeAll()
},
mounted() {
this.wxTips()
this.wxTips()
},
methods: {
jumpWx() {
......@@ -257,20 +257,20 @@ export default {
// }
this.$refs.clientGroupManage.data.length ? (this.$refs.clientGroupManage.tableHeightValues = '') : this.$refs.clientGroupManage.setTableHeightFun()
},
//导出
handleExport(){
//导出
handleExport() {
var params = this.getParams()
clientGroupExportApi(params).then(res => {
this.$Utils.exportFn(res)
})
},
},
searchTable() {
this.$refs.clientGroupManage.refreshTable()
},
getParams(){
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
params.beginTime = this.searchForm.daterange[0]
params.beginTime = this.searchForm.daterange[0]
params.endTime = this.searchForm.daterange[1]
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
......@@ -290,7 +290,7 @@ export default {
// }
// resolve()
// })
return new Promise((resolve, reject) => {
return new Promise((resolve, reject) => {
this.searchFormTable = this.getParams()
resolve()
})
......@@ -330,6 +330,12 @@ export default {
letter-spacing: 1px;
}
.pageContent {
.glsx-table {
/deep/ .el-table__fixed,
/deep/ .el-table__fixed-right {
height: 100% !important; //设置高优先,以覆盖内联样式
}
}
padding: 6px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
// min-width: 1300px;
......
......@@ -22,7 +22,7 @@
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span>
</span>
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : '女' }}</span>
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
</span>
<div slot="followStaff" class="entmicro" slot-scope="scope">
<div class="entmicro-tag" v-for="(tag, idx) in followList(scope.scope.followStaff)" :key="idx">
......@@ -437,12 +437,15 @@ export default {
.searchTop {
// margin-bottom: 20px;
}
// .glsx-table {
// margin-top: 20px;
// /deep/ .el-table__fixed {
// height: 100% !important; //设置高优先,以覆盖内联样式
// }
// }
.glsx-table {
// /deep/ .el-table__fixed {
// height: 100% !important; //设置高优先,以覆盖内联样式
// }
/deep/ .el-table__fixed,
/deep/ .el-table__fixed-right {
height: 100% !important; //设置高优先,以覆盖内联样式
}
}
.entmicro {
// overflow: hidden;
......@@ -460,9 +463,6 @@ export default {
&-tag {
display: inline-block;
}
// /deep/ .entmicro-tag + .entmicro-tag {
// margin-bottom: 4px;
// }
&-hover {
max-height: 214px;
overflow: auto;
......@@ -472,6 +472,9 @@ export default {
font-size: 14px;
}
}
.entmicro-tag + .entmicro-tag {
margin-top: 4px;
}
}
.el-tag {
......
......@@ -13,6 +13,7 @@
class="searchTop border-shadow"
:formModel="searchForm"
:formList="searchFormData"
labelWidth="70px"
>
<span class="inline-b" style="float: right" slot="form-slot">
<el-button type="primary" @click="searchTable">查询</el-button>
......
......@@ -22,7 +22,7 @@
</span>
</span>
<div class="initPanel" v-if="isFirstShow">
<template >企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</template>
<template>企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</template>
系统标签为通过大数据算法规则生成的标签
<img src="@/assets/tagsManage/Shape.png" alt="" />
......@@ -31,7 +31,7 @@
<div class="pageContent">
<!-- @setTableHeightEvent="setTableHeightEvent" -->
<search-form class="searchTop border-shadow" :formModel="searchForm" :formList="tagsPartFormList" @setTableHeightEvent="setTableHeightEvent">
<search-form class="searchTop border-shadow" :formModel="searchForm" :formList="tagsPartFormList" @setTableHeightEvent="setTableHeightEvent" labelWidth="54px">
<span class="inline-b" slot="form-slot">
<el-button @click="resetTable" plain>重置</el-button>
<!-- :id="tableParams.btnId" -->
......@@ -52,7 +52,7 @@
<span>{{ item.name }}</span>
</el-tooltip>
</span>
<el-popover v-if="scope.scope.labelList.length > 9" class="ellipsis-1 tag-box-wrap" placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<el-popover v-if="scope.scope.labelList.length > 9" class="ellipsis-1 tag-box-wrap" placement="top" width="800" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...({{ scope.scope.labelList.length }})</span>
<div class="entmicro-hover" style="height: 214px; overflow-y: auto">
<el-tag type="info" class="ellipsis-1" style="margin-right: 10px; margin-bottom: 10px; max-width: 200px" v-for="(i, sindex) in scope.scope.labelList" :key="sindex" :disable-transitions="false">
......@@ -80,9 +80,9 @@
</el-select>
<!-- id="tagTipMsgRef" -->
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup">
<template v-if="!(merchantModel == 1 && (accountLevel == 2 || accountLevel == 3 || accountLevel==4))">企业标签</template>
<template v-if="!(merchantModel == 1 && (accountLevel == 2 || accountLevel == 3 || accountLevel == 4))">企业标签</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">
<template v-if="!(merchantModel == 1 && (accountLevel == 2 || accountLevel == 3 || accountLevel==4))">和</template>
<template v-if="!(merchantModel == 1 && (accountLevel == 2 || accountLevel == 3 || accountLevel == 4))">和</template>
自店标签分别
</template>
最多3000个
......@@ -332,7 +332,7 @@ export default {
// }
//1.0.1集团下的省代、市代,门店只能创建自店标签
if (this.merchantModel == 1) {
if (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4 ) {
if (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4) {
this.tagsGroupList.splice(0, 1) //只能创建自店标签
// this.tagsPartFormList[0].options.splice(0, 1)
}
......@@ -424,7 +424,7 @@ export default {
isShowEditBtn(row) {
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑
if (row.labelType == '自店标签' && !(this.merchantModel == 1 && (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4) )) {
if (row.labelType == '自店标签' && !(this.merchantModel == 1 && (this.accountLevel == 2 || this.accountLevel == 3 || this.accountLevel == 4))) {
return false
}
if (this.merchantModel == 1) {
......@@ -618,9 +618,22 @@ export default {
if (this.tagForm.tagsList.length > 0) {
this.$message.success('添加成功')
}
if (this.tagDialogTitle == '编辑标签组') {
this.tagForm.tagsName = ''
this.tagForm.initTagsGroup = ''
this.tagForm.tagsList = []
}
this.handleClose()
} else if (res.data.code == 1) {
this.$message.error(`${res.data.message}`)
} else if (res.data.code == 2) {
//编辑弹框, 空标签调接口返回信息
if (this.tagDialogTitle == '编辑标签组') {
this.tagForm.tagsName = ''
this.tagForm.initTagsGroup = ''
this.tagForm.tagsList = []
}
this.handleClose()
}
this.resetTable() //刷新下表格
this.getTableTagNumFun()
......@@ -650,9 +663,9 @@ export default {
}
this.$message.success('修改成功')
this.tagForm.tagsName = ''
this.tagForm.initTagsGroup = ''
this.tagForm.tagsList = []
// this.tagForm.tagsName = ''
// this.tagForm.initTagsGroup = ''
// this.tagForm.tagsList = []
this.resetTable() //刷新下表格
})
......@@ -754,8 +767,9 @@ export default {
@import '@/styles/resetelement.scss';
.scrm-sub-client-container {
/deep/.search-form .el-form-item__content {
width: inherit;
width: auto;
}
// // el-form-item__label
// /deep/.el-table tbody tr:hover > td {
// background-color: #f4f3ff;
// }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!