Commit 11f95797 by xinla

--no commit message

1 parent 88179aa6
...@@ -123,14 +123,12 @@ export function handleWait(params) { ...@@ -123,14 +123,12 @@ export function handleWait(params) {
/** /**
* 客户画像个人标签新增或更新 * 客户画像个人标签新增或更新
* @param {*} params * @param {*} params
* { {
"gourpName": "个人标签分组", //标签组名
"groupId": "1471327408994738177",//标签组id,新增的时候没有则传 null
"weTags": [ "weTags": [
{ {
"groupId": "1471327408994738177",//标签组id,新增的时候没有则传 null "name": "个人标签4",//标签名
"name": "个人标签3",//标签名 "tagId": "1471327409208647681",//标签id,新增不存在则不传,更新则传
"tagId": "1471327409208647681"//标签id,新增的时候没有则传 null "owner":"shengxiyong"//标签所属人id
} }
] ]
} }
......
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
</div> </div>
</div> </div>
<van-button <van-button
v-if="form.trackState" v-if="dictTrackState[form.trackState || 1]"
:type="dictTrackState[form.trackState].color" :type="dictTrackState[form.trackState || 1].color"
size="small" size="small"
@click="usershow = true" @click="usershow = true"
>{{ dictTrackState[form.trackState].name || '待跟进' }}</van-button >{{ dictTrackState[form.trackState || 1].name }}</van-button
> >
</div> </div>
<div class="detail"> <div class="detail">
...@@ -373,7 +373,7 @@ export default { ...@@ -373,7 +373,7 @@ export default {
agentId: '', // 1000012, agentId: '', // 1000012,
loadingStep: false, loadingStep: false,
dictTrackState: Object.freeze({ dictTrackState: Object.freeze({
1: { name: '待跟进', color: '' }, 1: { name: '待跟进', color: 'info' },
2: { name: '跟进中', color: 'info' }, 2: { name: '跟进中', color: 'info' },
3: { name: '已成交', color: 'primary' }, 3: { name: '已成交', color: 'primary' },
4: { name: '无意向', color: 'warning' }, 4: { name: '无意向', color: 'warning' },
...@@ -730,8 +730,13 @@ export default { ...@@ -730,8 +730,13 @@ export default {
}, },
// 添加个人标签 // 添加个人标签
submitNewPersonTag() { submitNewPersonTag() {
addOrUpdatePersonTags(this.submitNewPersonTag) let params = {
weTags: [{ name: this.newPersonTag, owner: this.userId }]
}
addOrUpdatePersonTags(params)
.then((res) => { .then((res) => {
this.$toast.success('添加成功')
this.getAllTags('person') this.getAllTags('person')
}) })
.catch((err) => { .catch((err) => {
......
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
<ul class="infinite-list" v-infinite-scroll="getList" style="overflow:auto"> <ul class="infinite-list" v-infinite-scroll="getList" style="overflow:auto">
<template v-if="list.length"> <template v-if="list.length">
<li v-for="(unit, i) in list" class="infinite-list-item" :key="i"> <li v-for="(unit, i) in list" class="infinite-list-item" :key="i">
<div class="timeline-time">{{ dateFormat(unit[0].createTime, 'yyyy-MM-dd w') }}</div> <div class="timeline-time">{{ dateFormat(unit[0].trackTime, 'yyyy-MM-dd w') }}</div>
<el-timeline class="timeline-box"> <el-timeline class="timeline-box">
<el-timeline-item <el-timeline-item
v-for="(item, index) in unit" v-for="(item, index) in unit"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!