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