Commit 31a2b3a5 by qiyeqing

fix:喜旺文档bug修复

1 parent 1165ec50
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
ENV = 'development' ENV = 'development'
# 仟微管理系统/开发环境 # 仟微管理系统/开发环境
VUE_APP_BASE_API = 'http://119.45.28.29:8090' VUE_APP_BASE_API = 'http://demo.linkwechat.cn/api'
# 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 + '/getCustomersByUserId/' + externalUserid, url: service + '/externalUserId/' + 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
// 客户标签 // 客户标签
/** /**
...@@ -52,7 +57,7 @@ export function add(data) { ...@@ -52,7 +57,7 @@ export function add(data) {
*/ */
export function update(data) { export function update(data) {
return request({ return request({
url: service, url: service2+'/customer/edit',
method: 'put', method: 'put',
data, data,
}) })
...@@ -64,8 +69,8 @@ export function update(data) { ...@@ -64,8 +69,8 @@ export function update(data) {
*/ */
export function remove(ids) { export function remove(ids) {
return request({ return request({
url: service + '/' + ids, url: service2 + '/customer/' + ids,
method: 'DELETE', method: 'get',
}) })
} }
......
...@@ -12,6 +12,7 @@ export default { ...@@ -12,6 +12,7 @@ export default {
pageSize: 10, pageSize: 10,
isActivate: '', isActivate: '',
department: '', department: '',
deptId:'',
}, },
dateRange: [], dateRange: [],
treeData: [], treeData: [],
...@@ -108,7 +109,8 @@ export default { ...@@ -108,7 +109,8 @@ 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,8 +406,7 @@ export default { ...@@ -406,8 +406,7 @@ 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] ? scope.row.weFlowerCustomerRels[0].addTime
? scope.row.weFlowerCustomerRels[0].createTime
: '' : ''
}}</template> }}</template>
</el-table-column> </el-table-column>
...@@ -419,7 +418,7 @@ export default { ...@@ -419,7 +418,7 @@ export default {
> >
<el-tag <el-tag
type="info" type="info"
v-for="(unit, unique) in item.weFlowerCustomerTagRels" v-for="(unit, unique) in item.weTags"
: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="createTime" prop="addTime"
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="gourpName" /> <el-table-column label="标签组" align="center" prop="groupName" />
<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.name }}</el-tag >{{ item.tagName }}</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.userCount }}</el-col> <el-col :span="6">{{table.groupMemberCount}}</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!