Commit 5c22d920 by 前端

Merge branch 'chenwq_dev_v2.0.0' into 'v2.0.0'

选择客户弹窗

See merge request !77
2 parents 5ae05176 10262383
......@@ -55,11 +55,9 @@
<div v-if="item.object.additionalType == 4">
<div v-if="item.object.showVideoContent.length">
<video class="model-item-img" :src="item.object.showVideoContent[0].attContent" controls="controls" />
<!-- <video v-for="(subItem, subIndex) in item.object.showVideoContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" controls="controls" /> -->
</div>
<div v-if="!item.object.showVideoContent.length && item.object.showImgContent.length">
<img class="model-item-img" :src="item.object.showImgContent[0].attContent" />
<!-- <el-image v-for="(subItem, subIndex) in item.object.showImgContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" :preview-src-list="[subItem.attContent]"></el-image> -->
</div>
</div>
<span v-else>{{ item.object.objectName }}</span>
......@@ -265,9 +263,7 @@ export default {
}
},
// 选择标签
handleSelect(obj) {
// this.tagging = obj.selectedLabelList
changeCustomer(obj) {
this.editForm.customerInfoList = obj.selectedCustomerList
this.condLimitObj = obj.condLimitObj
if (this.markCondLimitObj.hasQw != -1) {
......@@ -279,46 +275,38 @@ export default {
hasQw: this.condLimitObj.hasQw,
hasPhone: this.condLimitObj.hasPhone
}
// let arr = []
// this.tagging.forEach(item => {
// item.labelList.forEach(tag => {
// arr.push({
// groupId: item.labelGroup.id,
// groupName: item.labelGroup.name,
// labelId: tag.id,
// labelName: tag.name,
// groupType: item.labelType
// })
// })
// })
// this.taggingList = arr
this.key = new Date()
this.$refs.editFormRef.$refs[this.editChildRef].validateField('customerInfoList')
},
handleSelectCustomer() {
if (this.editForm.eventList.length) {
this.$confirm('已有事件,改变客户后,会导致事件丢失', '提示', {
// 选择标签
handleSelect(obj) {
// this.tagging = obj.selectedLabelList
if (this.editForm.eventList.length && (this.markCondLimitObj.hasQw != obj.condLimitObj.hasQw || this.markCondLimitObj.hasPhone != obj.condLimitObj.hasPhone)) {
this.$confirm('修改的客户类型(是否加企微、是否有手机号)不一致,原有营销渠道可能不可用,系统自动重置原有营销事件。是否确定修改?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: action => {
console.log(action)
if (action == 'confirm') {
this.isTagVisible = !this.isTagVisible
this.$refs.selectLabel.init({ condLimitObj: this.condLimitObj, tagList: [], customerInfoList: this.editForm.customerInfoList, activeName: 'customer' })
this.changeCustomer(obj)
}
}
})
} else {
this.isTagVisible = !this.isTagVisible
this.$refs.selectLabel.init({ condLimitObj: this.condLimitObj, tagList: [], customerInfoList: this.editForm.customerInfoList, activeName: 'customer' })
this.changeCustomer(obj)
}
this.key = new Date()
this.$refs.editFormRef.$refs[this.editChildRef].validateField('customerInfoList')
},
handleSelectCustomer() {
this.isTagVisible = !this.isTagVisible
this.$refs.selectLabel.init({ condLimitObj: this.condLimitObj, tagList: [], customerInfoList: JSON.parse(JSON.stringify(this.editForm.customerInfoList)), activeName: 'customer' })
},
handleResetCustomer() {
if (this.editForm.eventList.length) {
this.$confirm('清空客户,事件也将清空', '提示', {
this.$confirm('重置客户将清空当前已选客户。是否确定重置?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
......@@ -339,12 +327,11 @@ export default {
handleDeleteCustomer(idx) {
if (this.editForm.customerInfoList.length == 1 && this.editForm.eventList.length) {
this.$confirm('删完所有客户,事件也将清空', '提示', {
this.$confirm('修改的客户类型(是否加企微、是否有手机号)不一致,原有营销渠道可能不可用,系统自动重置原有营销事件。是否确定修改?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
callback: action => {
console.log(action)
if (action == 'confirm') {
this.editForm.customerInfoList.splice(idx, 1)
this.$refs.editFormRef.$refs[this.editChildRef].validateField('customerInfoList')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!