Commit 4f712c8f by xinla

Revert "fix:喜旺文档bug修复"

This reverts commit 31a2b3a5.
1 parent 31a2b3a5
......@@ -2,7 +2,7 @@
ENV = 'development'
# 仟微管理系统/开发环境
VUE_APP_BASE_API = 'http://demo.linkwechat.cn/api'
VUE_APP_BASE_API = 'http://119.45.28.29:8090'
# VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc'
# 开发环境IP
......
......@@ -103,7 +103,7 @@ export function exportCustomer(query) {
*/
export function getDetail(externalUserid) {
return request({
url: service + '/externalUserId/' + externalUserid,
url: service + '/getCustomersByUserId/' + externalUserid,
})
}
......
/***
* @file:
* @author: qi.yeqing
* @Date: 2021-07-13 11:43:55
*/
import request from '@/utils/request'
const service = window.CONFIG.services.wecom + '/group'
const service2 = window.CONFIG.services.wecom
// 客户标签
/**
......@@ -25,7 +20,7 @@ export function getList(params) {
/**
* 新增客户标签
* @param {Object} data
* @param {Object} data
{
"gourpName": "标签组名称",
"weTags": [{
......@@ -43,7 +38,7 @@ export function add(data) {
/**
* 客户标签编辑
* @param {*} data
* @param {*} data
{
"id": "主键",
"gourpName": "标签分组名",
......@@ -57,7 +52,7 @@ export function add(data) {
*/
export function update(data) {
return request({
url: service2+'/customer/edit',
url: service,
method: 'put',
data,
})
......@@ -69,8 +64,8 @@ export function update(data) {
*/
export function remove(ids) {
return request({
url: service2 + '/customer/' + ids,
method: 'get',
url: service + '/' + ids,
method: 'DELETE',
})
}
......
......@@ -12,7 +12,6 @@ export default {
pageSize: 10,
isActivate: '',
department: '',
deptId:'',
},
dateRange: [],
treeData: [],
......@@ -109,8 +108,7 @@ export default {
})
},
handleNodeClick(data) {
this.query.department = data.id == 1 ? '' : data.id;
this.query.deptId=data.deptId
this.query.department = data.id == 1 ? '' : data.id
this.getList(1)
},
edit(data, type) {
......
......@@ -406,7 +406,8 @@ export default {
</el-table-column>
<el-table-column prop="createTime" label="添加时间" align="center">
<template slot-scope="scope">{{
scope.row.weFlowerCustomerRels[0] ? scope.row.weFlowerCustomerRels[0].addTime
scope.row.weFlowerCustomerRels[0]
? scope.row.weFlowerCustomerRels[0].createTime
: ''
}}</template>
</el-table-column>
......@@ -418,7 +419,7 @@ export default {
>
<el-tag
type="info"
v-for="(unit, unique) in item.weTags"
v-for="(unit, unique) in item.weFlowerCustomerTagRels"
:key="unique"
>{{ unit.tagName }}</el-tag
>
......
......@@ -184,7 +184,7 @@ export default {
<el-table-column
label="创建时间"
align="center"
prop="addTime"
prop="createTime"
width="180"
></el-table-column>
<el-table-column
......
......@@ -129,14 +129,14 @@ export default {
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="标签组" align="center" prop="groupName" />
<el-table-column label="标签组" align="center" prop="gourpName" />
<el-table-column label="标签" align="center" prop="weTags">
<template slot-scope="scope">
<el-tag
type="info"
v-for="(item, index) in scope.row.weTags"
:key="index"
>{{ item.tagName }}</el-tag
>{{ item.name }}</el-tag
>
</template>
</el-table-column>
......
......@@ -30,7 +30,7 @@
<el-col :span="6">{{ table.customerCount }}</el-col>
<el-col :span="6">{{ table.groupMemberCount }}</el-col>
<el-col :span="6">{{ table.groupCount }}</el-col>
<el-col :span="6">{{table.groupMemberCount}}</el-col>
<el-col :span="6">{{ table.userCount }}</el-col>
</el-row>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!