Commit 4f712c8f by xinla

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

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