Commit 04f32535 by 前端

Merge branch 'wuwx_dev_qunfa' into 'v2.8.0'

Wuwx dev qunfa

See merge request !304
2 parents b1b7dd2a 03b06c3b
......@@ -91,6 +91,16 @@ const getMaterialListApi = params => {
sign: true
})
}
// 众筹模式活动
const crowdfundingActivity = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//模板列表
const templatePage = params => {
params.method = `${path}template.page.search`
......@@ -144,5 +154,6 @@ export default {
templatePage,
createdNameList,
templateUpdate,
templateSave
templateSave,
crowdfundingActivity
}
......@@ -273,6 +273,16 @@ export default {
params: {
merchantId: this.$globalState.session.merchantId
}
},
{
itemName: '众筹活动',
itemValue: 7,
itemType: 'crowdfunding',
getInterfaceApi: this.$apis.welcomeword.crowdfundingActivity,
params: {
currentPage: 1,
activityStatus: 2
}
}
]
},
......@@ -477,11 +487,14 @@ export default {
})
item.attContent = replaceImg.substring(0, 600)
} else if (item.attType == 7) {
if (item.attContent.title) {
item.attType = 4
params.crowdFunding = true
}
item.attContent = JSON.stringify(item.attContent)
}
return item
})
console.log(params)
params.attachmentList = attachmentList
if (params.sendType == 2) {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
......@@ -502,7 +515,7 @@ export default {
type: 'success',
message: '操作成功!'
})
this.$tracker.track(Object.assign({},{pageName:'群发助手',name:'新建客户群发',params}))
this.$tracker.track(Object.assign({}, { pageName: '群发助手', name: '新建客户群发', params }))
} else {
this.$message({
type: 'error',
......
......@@ -10,10 +10,11 @@
<template v-else-if="item.attType == 7">
<div class="preview-activity">
<div class="activity-name">{{ item.attContent.marketingName }}</div>
<img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6 && item.attContent.marketingType != 7" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<img v-if="item.attContent.marketingType == 5" class="activity-logo" src="@/assets/guestCustom/activity-spike.png" alt />
<img v-if="item.attContent.marketingType == 6" class="activity-logo" src="@/assets/guestCustom/activity-service.png" alt />
<div class="activity-footer">
<img v-if="item.attContent.marketingType == 7" class="link-logo" src="@/assets/guestCustom/link.png" alt />
<div class="activity-footer" v-if="item.attContent.marketingType != 7">
<img src="@/assets/guestCustom/applet-footer.png" alt />
</div>
</div>
......@@ -248,4 +249,10 @@ export default {
}
}
}
.link-logo {
width: 30px;
height: 30px;
margin-left: 131px;
margin-bottom: 5px;
}
</style>
......@@ -246,7 +246,7 @@ export default {
}
.member-left {
width: 800px;
width: calc(100% - 286px);
.member-content {
border: 1px solid #eee;
......
......@@ -249,7 +249,7 @@ export default {
}
}
.member-left {
width: 800px;
width: calc(100% - 286px);
.member-content {
border: 1px solid #eee;
......
......@@ -16,6 +16,21 @@
<el-form-item label="姓名" style="margin-bottom: 0;">
<el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名搜索"></el-input>
</el-form-item>
<el-form-item label="跟进专员类型">
<el-select
v-model="searchForm.status"
clearable
:size="size"
placeholder="全部"
>
<el-option
v-for="item in state"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
<!-- <el-form-item>
<el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox>
</el-form-item>-->
......@@ -58,6 +73,8 @@ export default {
props: ['selectData'],
data() {
return {
state: [],
stateList: [],
url: url,
searchForm: {},
checked: '',
......@@ -125,6 +142,18 @@ export default {
onHidePopover() {
this.popoverVisible = false
},
unique(arr) {
let res = new Set()
return arr.filter((item) => {
let id = JSON.stringify(item)
if (res.has(id)) {
return false
} else {
res.add(id)
return true
}
})
},
listDepartmentTree(isFollowerStaff) {
const params = { addChildrensFlag: true }
this.loading = true
......@@ -145,6 +174,10 @@ export default {
})
this.selectData = []
}
res[0].entmicroStaffResponses.forEach(e => {
this.state.push({value: e.followerTypeId, label: e.followerName})
})
this.state = this.unique(this.state)
} else {
this.treeData = []
}
......@@ -176,6 +209,7 @@ export default {
this.tableEmpData = []
const data = this.currentTreeData
const keyword = this.searchForm.name
const status = this.searchForm.status
let arr = []
// this.loading = true
console.log(keyword, data, this.tableEmpData)
......@@ -224,6 +258,17 @@ export default {
})
}
}
this.stateList = this.tableEmpData
if (status) {
this.tableEmpData = []
this.stateList.forEach(i => {
if (String(i.followerTypeId).indexOf(status) != -1) {
this.tableEmpData.push(i)
}
})
} else {
this.tableEmpData = this.stateList
}
},
remove(item) {
// var idx = this.innerTags.findIndex(k => k.id == item.id)
......@@ -289,7 +334,7 @@ export default {
}
}
.member-left {
width: 800px;
width: calc(100% - 286px);
.member-content {
border: 1px solid #eee;
......
......@@ -147,7 +147,7 @@
</el-radio>
<el-button v-show="!baseData.consultantList.length" type="text"></el-button>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2">
<el-radio v-model="editForm.customerServerType" :label="2">
<el-input style="width: 320px" placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable></el-input>
</el-radio>
</div>
......@@ -230,7 +230,6 @@ export default {
userInfo: {},
// 查看大图
isImgVisible: false,
showGh: false,
state: '',
dialogObj: {
url: '',
......@@ -451,8 +450,6 @@ export default {
this.externalFormList[idx].editFormData[idxx].isHide = true
this.externalFormList[idxxx].editFormData[idxxxx].isHide = true
}
let href = window.location.host
this.showGh = href.indexOf('cgacar') != -1
},
methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!