Commit 6094e87e by 前端

update

1 parent 501ffdc3
...@@ -124,8 +124,8 @@ export default { ...@@ -124,8 +124,8 @@ export default {
labelTreeReq: { labelTreeReq: {
pageNum: 1, pageNum: 1,
pageSize: 1000, pageSize: 1000,
// shopId: this.$globalState.session.merchantId, shopId: this.$globalState.session.merchantId,
shopId:'44209846', // shopId:'44209846',
labelGroupName: this.labelGroupName, labelGroupName: this.labelGroupName,
labelTypesStr: this.labelTypesStr, labelTypesStr: this.labelTypesStr,
edition: this.$globalState.session.merchantModel, edition: this.$globalState.session.merchantModel,
......
...@@ -6,9 +6,8 @@ ...@@ -6,9 +6,8 @@
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<div> <div>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" <glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit"
:labelWidth="labelWidth" :labelWidth="labelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm"
:isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formData="editFormData" :formRules="editRule">
:formRules="editRule">
<div slot="startDate"> <div slot="startDate">
<el-input class="w432" <el-input class="w432"
:placeholder="!editForm.eventList.length ? '设置营销事件后自动补充' : editForm.startDate + (editForm.endDate ? ' - ' + editForm.endDate : '')" :placeholder="!editForm.eventList.length ? '设置营销事件后自动补充' : editForm.startDate + (editForm.endDate ? ' - ' + editForm.endDate : '')"
...@@ -34,10 +33,7 @@ ...@@ -34,10 +33,7 @@
<!-- <div v-show="editForm.customerInfoList.length != 0" class="customer-box m-t-10"> --> <!-- <div v-show="editForm.customerInfoList.length != 0" class="customer-box m-t-10"> -->
<div v-show="item.list.length != 0"> <div v-show="item.list.length != 0">
<div class="customer-box m-t-10"> <div class="customer-box m-t-10">
<div class="customer-title"> <div class="customer-title">{{ item.confName }}客户 :预估{{ item.customerCount }}人</div>
{{ item.confName }}客户
:预估{{ item.customerCount }}人
</div>
<div :key="key" class="el-input-tag input-tag-wrapper"> <div :key="key" class="el-input-tag input-tag-wrapper">
<template v-if="item.confName == '标签' || item.confName == '群标签'"> <template v-if="item.confName == '标签' || item.confName == '群标签'">
<div v-for="(subItem, subIdx) in item.list" :key="subIdx"> <div v-for="(subItem, subIdx) in item.list" :key="subIdx">
...@@ -49,8 +45,7 @@ ...@@ -49,8 +45,7 @@
</div> </div>
</template> </template>
<template v-else> <template v-else>
<el-tag v-for="(subItem, subIdx) in item.list" :key="subIdx" class="customer-tag" <el-tag v-for="(subItem, subIdx) in item.list" :key="subIdx" class="customer-tag" :size="size"
:size="size"
type="info" :closable="!scope.scope.isDisabled" :disable-transitions="false" type="info" :closable="!scope.scope.isDisabled" :disable-transitions="false"
@close="handleDeleteCustomer(subIdx)"> @close="handleDeleteCustomer(subIdx)">
<!-- <i class="el-icon-user-solid"></i> --> <!-- <i class="el-icon-user-solid"></i> -->
...@@ -78,7 +73,7 @@ ...@@ -78,7 +73,7 @@
content="请先完善sop名称和营销对象" placement="top"> content="请先完善sop名称和营销对象" placement="top">
<div> <div>
<el-button class="m-r-20" :disabled="!editForm.customerInfoList.length || !editForm.sopName" :size="size" <el-button class="m-r-20" :disabled="!editForm.customerInfoList.length || !editForm.sopName" :size="size"
type="primary" @click="handleEventEdit('add')">添加事件 type="primary" @click="handleEventEdit('add')">添加事件
</el-button> </el-button>
</div> </div>
</el-tooltip> </el-tooltip>
...@@ -90,8 +85,9 @@ ...@@ -90,8 +85,9 @@
<div v-show="editForm.eventList.length" class="event-box"> <div v-show="editForm.eventList.length" class="event-box">
<div class="event-item" v-for="(item, index) in editForm.eventList" :key="index"> <div class="event-item" v-for="(item, index) in editForm.eventList" :key="index">
<div class="flex-default event-title"> <div class="flex-default event-title">
<p :class="{'m-r-10':true,'editFlag':!item.eventStartDate}"> <p :class="{ 'm-r-10': true, editFlag: !item.eventStartDate }">
{{ item.eventStartDate ? item.eventStartDate : '请点击“编辑”完善事件的营销时间' }}</p> {{ item.eventStartDate ? item.eventStartDate : '请点击“编辑”完善事件的营销时间' }}
</p>
<p class="m-r-20">{{ item.eventTime }}</p> <p class="m-r-20">{{ item.eventTime }}</p>
<p class="m-r-20" v-show="item.repeatFlag == 'Y' && item.repeatMode == 1">每天重复循环至</p> <p class="m-r-20" v-show="item.repeatFlag == 'Y' && item.repeatMode == 1">每天重复循环至</p>
<p class="m-r-20" v-show="item.repeatFlag == 'Y' && item.repeatMode == 2">每周{{ <p class="m-r-20" v-show="item.repeatFlag == 'Y' && item.repeatMode == 2">每周{{
...@@ -102,18 +98,18 @@ ...@@ -102,18 +98,18 @@
}}重复循环至</p> }}重复循环至</p>
<p class="m-r-20" v-show="item.repeatFlag == 'Y'">{{ item.eventEndDate }}</p> <p class="m-r-20" v-show="item.repeatFlag == 'Y'">{{ item.eventEndDate }}</p>
<p class="m-r-20 txt-blue" v-if="editForm.sopType == 1"> <p class="m-r-20 txt-blue" v-if="editForm.sopType == 1">
{{ baseData.channelTypeList.find(k => k.confId == item.pushChannelType).confName }}</p> {{ baseData.channelTypeList.find(k => k.confId == item.pushChannelType).confName }}
</p>
</div> </div>
<div> <div>
<div v-for="(obj,index) in backupContentJson(item.backupContent)" :key="index"> <div v-for="(obj, index) in backupContentJson(item.backupContent)" :key="index">
<div class="textHidden" :title="obj.attContent" v-if="obj.attType == 1" <div class="textHidden" :title="obj.attContent" v-if="obj.attType == 1"
v-html="tramWord(obj.attContent)"></div> v-html="tramWord(obj.attContent)"></div>
</div> </div>
<div class="event-inline" v-for="(obj,index) in backupContentJson(item.backupContent)" :key="index"> <div class="event-inline" v-for="(obj, index) in backupContentJson(item.backupContent)" :key="index">
<div> <div>
<div v-if="obj.attType == 2"> <div v-if="obj.attType == 2">
<img class="model-item-img" <img class="model-item-img" :src="obj.attContent" alt/>
:src="obj.attContent" alt/>
</div> </div>
<div v-if="obj.attType == 3"> <div v-if="obj.attType == 3">
<video class="model-item-img" :src="obj.attContent" controls="controls"/> <video class="model-item-img" :src="obj.attContent" controls="controls"/>
...@@ -123,7 +119,6 @@ ...@@ -123,7 +119,6 @@
<div class="welcome-activity-box"> <div class="welcome-activity-box">
<div class="welcome-activity-icon"> <div class="welcome-activity-icon">
<img src="@/assets/welcomeWord/pdf_r.png" <img src="@/assets/welcomeWord/pdf_r.png"
v-if="obj.attContent && !backupContentJson(obj.attContent).isFile"/> v-if="obj.attContent && !backupContentJson(obj.attContent).isFile"/>
<img src="@/assets/welcomeWord/text.png" <img src="@/assets/welcomeWord/text.png"
v-if="obj.attContent && backupContentJson(obj.attContent).isFile"/> v-if="obj.attContent && backupContentJson(obj.attContent).isFile"/>
...@@ -134,7 +129,7 @@ ...@@ -134,7 +129,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-if="obj.attType == 7 || obj.attType == 4" > <div v-if="obj.attType == 7 || obj.attType == 4">
<div class="welcome-activity-panel"> <div class="welcome-activity-panel">
<div class="welcome-activity-box"> <div class="welcome-activity-box">
<div class="welcome-activity-icon"> <div class="welcome-activity-icon">
...@@ -217,7 +212,7 @@ ...@@ -217,7 +212,7 @@
</div> </div>
</div> </div>
<div class="event-btns"> <div class="event-btns">
<el-button v-if="new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit =='copy'" <el-button v-if="new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit == 'copy'"
class="default newBtnSty" :size="size" @click="handleEventDelete(index)">删除 class="default newBtnSty" :size="size" @click="handleEventDelete(index)">删除
</el-button> </el-button>
<el-tooltip :disabled="!(!editForm.customerInfoList.length || !editForm.sopName)" effect="dark" <el-tooltip :disabled="!(!editForm.customerInfoList.length || !editForm.sopName)" effect="dark"
...@@ -225,12 +220,11 @@ ...@@ -225,12 +220,11 @@
<div> <div>
<el-button class="default-blue-btn newBtnSty" <el-button class="default-blue-btn newBtnSty"
v-if="new Date(item.eventStartDate) > new Date() || !item.eventStartDate" v-if="new Date(item.eventStartDate) > new Date() || !item.eventStartDate"
:disabled="!editForm.customerInfoList.length || !editForm.sopName" :disabled="!editForm.customerInfoList.length || !editForm.sopName" :size="size"
:size="size" @click="handleEventEdit('edit', item, index)">编辑 @click="handleEventEdit('edit', item, index)">编辑
</el-button> </el-button>
</div> </div>
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
</div> </div>
...@@ -336,7 +330,7 @@ export default { ...@@ -336,7 +330,7 @@ export default {
reqListName: 'labelList', reqListName: 'labelList',
customerCount: '', customerCount: '',
list: [] list: []
}, }
], ],
editForm: { editForm: {
sopName: '', sopName: '',
...@@ -376,14 +370,38 @@ export default { ...@@ -376,14 +370,38 @@ export default {
isDisabled: false, isDisabled: false,
optionList: [ optionList: [
{ {
confId: '1', confId: 1,
confName: '客户sop' confName: '客户sop'
}, },
{ {
confId: '2', confId: 2,
confName: '群sop' confName: '群sop'
} }
] ],
handleRadioChange: val => {
this.currentCustomerIdx = this.customerDataList.findIndex(item => item.confId == this.editForm.customerOptType)
let hasList = this.customerDataList[this.currentCustomerIdx]?.list?.length
if (this.editForm.eventList?.length || hasList) {
this.$confirm(`切换sop类型,系统将自动重置已配置的营销对象和营销事件。是否确定切换?`, '提示', {
confirmButtonText: '是',
cancelButtonText: '否',
type: 'warning',
callback: action => {
if (action == 'confirm') {
this.editForm.customerOptType = val == 1 ? '' : 4
this.customerDataList[this.currentCustomerIdx].list = []
// this.changeCustomer()
this.editForm.eventList = []
} else {
this.editForm.sopType = val == 1 ? 2 : 1
return false
}
}
})
} else {
this.editForm.customerOptType = val == 1 ? '' : 4
}
}
}, },
{ {
label: '营销时间', label: '营销时间',
...@@ -491,23 +509,11 @@ export default { ...@@ -491,23 +509,11 @@ export default {
}, },
deep: true deep: true
}, },
'editForm.sopType'(val) { 'editForm.sopType': {
let show = false handler(val) {
this.isGroupTag = val == 1 ? false : true
this.isGroupTag = val == 1 ? false : true },
this.editForm.customerOptType = val == 1 ? '' : 4 immediate: true
if (this.editForm.eventList.length ){
this.$confirm(`切换sop类型,系统将自动重置已配置的营销对象和营销事件。是否确定切换?`, '提示', {
confirmButtonText: '是',
cancelButtonText: '否',
type: 'warning'
})
.then(() => {
this.cancelJump()
})
.catch(() => {
})
}
} }
}, },
...@@ -520,7 +526,6 @@ export default { ...@@ -520,7 +526,6 @@ export default {
} else if (this.routeInfo.info) { } else if (this.routeInfo.info) {
this.setCustomer() this.setCustomer()
} }
}, },
methods: { methods: {
...@@ -529,20 +534,20 @@ export default { ...@@ -529,20 +534,20 @@ export default {
}, },
async getTheMaterialActivityCollection() { async getTheMaterialActivityCollection() {
await this.$apis.welcomeword.getMaterialListApi({ await this.$apis.welcomeword
pageNum: 1, .getMaterialListApi({
pageSize: 100000, pageNum: 1,
merchant: this.$globalState.session.merchantId, pageSize: 100000,
status: 0 merchant: this.$globalState.session.merchantId,
}).then(res => status: 0
this.materialGroupSet = res.data })
) .then(res => (this.materialGroupSet = res.data))
}, },
async getEachActivity(interfaceName) { async getEachActivity(interfaceName) {
let params = { let params = {
pageNum: 1, pageNum: 1,
pageSize: 100000, pageSize: 100000
} }
// 权益卡 // 权益卡
if (interfaceName == 'merchant') { if (interfaceName == 'merchant') {
...@@ -556,40 +561,35 @@ export default { ...@@ -556,40 +561,35 @@ export default {
switch (interfaceName) { switch (interfaceName) {
case 'merchant': case 'merchant':
this.equityCardCollection = res this.equityCardCollection = res
break; break
case 'getPackage': case 'getPackage':
this.equityPackageCollection = res.list this.equityPackageCollection = res.list
break; break
case 'getMerchant': case 'getMerchant':
this.mallCouponCollection = res.list this.mallCouponCollection = res.list
break; break
case 'getActivity': case 'getActivity':
this.seckillActivitySet = res.list this.seckillActivitySet = res.list
} }
}) })
}, },
tramWord(val) { tramWord(val) {
let htm = val.replace( let htm = val.replace(/\[([\u4E00-\u9FA56]{1,4}|OK|NO|666)]/gi, function (res) {
/\[([\u4E00-\u9FA56]{1,4}|OK|NO|666)]/gi, let word = res.replace(/\[|\]/gi, '')
function (res) { const list = emoji.flat(Infinity)
let word = res.replace(/\[|\]/gi, '') let index = parseInt(list.indexOf(word)) + 1
const list = emoji.flat(Infinity) if (index < 10) {
let index = parseInt(list.indexOf(word)) + 1 index = '00' + index
if (index < 10) { } else if (index >= 10 && index < 100) {
index = '00' + index index = '0' + index
} else if (index >= 10 && index < 100) { }
index = '0' + index return `<img style='width:25px;height:25px' src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
} })
return `<img style='width:25px;height:25px' src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
}
)
return htm return htm
}, },
backupContentJson(val) { backupContentJson(val) {
if (typeof (val) == 'string') { if (typeof val == 'string') {
return JSON.parse(val) return JSON.parse(val)
} else { } else {
return val return val
...@@ -597,7 +597,7 @@ export default { ...@@ -597,7 +597,7 @@ export default {
}, },
marketingContentJSON(val) { marketingContentJSON(val) {
if (typeof (val.attContent) == 'string') { if (typeof val.attContent == 'string') {
return JSON.parse(val.attContent).marketingContent return JSON.parse(val.attContent).marketingContent
} else { } else {
return val.attContent.marketingContent return val.attContent.marketingContent
...@@ -629,7 +629,7 @@ export default { ...@@ -629,7 +629,7 @@ export default {
var list = [] var list = []
var groupIdList = [] var groupIdList = []
this.customerDataList[this.currentCustomerIdx].list = JSON.parse(JSON.stringify(list)) this.customerDataList[this.currentCustomerIdx].list = JSON.parse(JSON.stringify(list))
this.editForm[this.customerDataList[this.currentCustomerIdx].reqListName].forEach(item => { this.editForm[this.customerDataList[this.currentCustomerIdx].reqListName]?.forEach(item => {
let pIdx = groupIdList.findIndex(k => k == item.labelGroupId) let pIdx = groupIdList.findIndex(k => k == item.labelGroupId)
if (list.length && pIdx != -1) { if (list.length && pIdx != -1) {
list[pIdx].labelList.push({ list[pIdx].labelList.push({
...@@ -674,7 +674,7 @@ export default { ...@@ -674,7 +674,7 @@ export default {
customerSex: sexToObj[item.customerSex], customerSex: sexToObj[item.customerSex],
isJoin: item.customerWxAdd == 'Y' ? 1 : 0, isJoin: item.customerWxAdd == 'Y' ? 1 : 0,
addTime: item.customerTimeAdd, addTime: item.customerTimeAdd,
oneId: item.externalUserId, oneId: item.externalUserId
}) })
}) })
this.customerDataList[this.currentCustomerIdx].list = JSON.parse(JSON.stringify(list)) this.customerDataList[this.currentCustomerIdx].list = JSON.parse(JSON.stringify(list))
...@@ -746,7 +746,7 @@ export default { ...@@ -746,7 +746,7 @@ export default {
effectivedDay, effectivedDay,
effectiveType, effectiveType,
freeDay, freeDay,
selectType: 'card', selectType: 'card'
} }
} }
}) })
...@@ -766,7 +766,7 @@ export default { ...@@ -766,7 +766,7 @@ export default {
marketingContent: { marketingContent: {
packageName, packageName,
packagePrice, packagePrice,
selectType: 'package', selectType: 'package'
} }
} }
}) })
...@@ -787,7 +787,7 @@ export default { ...@@ -787,7 +787,7 @@ export default {
couponName, couponName,
effectiveType, effectiveType,
residueAmount, residueAmount,
selectType: 'coupon', selectType: 'coupon'
} }
} }
}) })
...@@ -808,7 +808,7 @@ export default { ...@@ -808,7 +808,7 @@ export default {
activityName, activityName,
endTime, endTime,
startTime, startTime,
selectType: 'activity', selectType: 'activity'
} }
} }
}) })
...@@ -819,9 +819,9 @@ export default { ...@@ -819,9 +819,9 @@ export default {
let material = this.materialGroupSet && this.materialGroupSet.filter(it => it.id == item.objectId) let material = this.materialGroupSet && this.materialGroupSet.filter(it => it.id == item.objectId)
let {id, materialContentRpcResponse} = material[0] let {id, materialContentRpcResponse} = material[0]
let detail = { let detail = {
'fileName': materialContentRpcResponse.materialName, fileName: materialContentRpcResponse.materialName,
'objectId': id, objectId: id,
'isFile': decodeURIComponent(materialContentRpcResponse.materialUrl), isFile: decodeURIComponent(materialContentRpcResponse.materialUrl)
} }
backUpContent.push({ backUpContent.push({
attType: 6, attType: 6,
...@@ -838,7 +838,8 @@ export default { ...@@ -838,7 +838,8 @@ export default {
getInfo() { getInfo() {
this.$apis.sop.getSopInfoDetailApi({sopId: this.routeInfo.id}).then(async res => { this.$apis.sop.getSopInfoDetailApi({sopId: this.routeInfo.id}).then(async res => {
if (this.routeInfo.addOrEdit == 'copy') { if (this.routeInfo.addOrEdit == 'copy') {
res.eventList && res.eventList.map(item => { res.eventList &&
res.eventList.map(item => {
item.eventStartDate = '' item.eventStartDate = ''
item.eventTime = '' item.eventTime = ''
}) })
...@@ -874,7 +875,7 @@ export default { ...@@ -874,7 +875,7 @@ export default {
}) })
}, },
// 群标签 预估 // 群标签 预估
getGroupByTagList(){ getGroupByTagList() {
var params = { var params = {
combineType: 2, combineType: 2,
pageSize: 1, pageSize: 1,
...@@ -959,7 +960,6 @@ export default { ...@@ -959,7 +960,6 @@ export default {
break break
} }
this.customerDataList[this.currentCustomerIdx].list = obj this.customerDataList[this.currentCustomerIdx].list = obj
console.log(this.customerDataList)
this.changeCustomer() this.changeCustomer()
}, },
...@@ -1103,7 +1103,7 @@ export default { ...@@ -1103,7 +1103,7 @@ export default {
addOrEdit: addOrEdit, addOrEdit: addOrEdit,
eventIndex: addOrEdit == 'add' ? '-1' : idx, eventIndex: addOrEdit == 'add' ? '-1' : idx,
parentCustomerObj: this.parentCustomerObj, parentCustomerObj: this.parentCustomerObj,
info: {...row, sopName: this.editForm.sopName,sopType:this.editForm.sopType} info: {...row, sopName: this.editForm.sopName, sopType: this.editForm.sopType}
}) })
}, },
...@@ -1112,7 +1112,6 @@ export default { ...@@ -1112,7 +1112,6 @@ export default {
return list return list
}, },
reqLabelAttrs() { reqLabelAttrs() {
var list = [] var list = []
this.customerDataList[this.currentCustomerIdx].list.forEach(item => { this.customerDataList[this.currentCustomerIdx].list.forEach(item => {
...@@ -1126,7 +1125,6 @@ export default { ...@@ -1126,7 +1125,6 @@ export default {
}) })
}) })
}) })
console.log(list)
return list return list
}, },
...@@ -1138,7 +1136,6 @@ export default { ...@@ -1138,7 +1136,6 @@ export default {
2: 'W' 2: 'W'
} }
this.customerDataList[this.currentCustomerIdx].list.forEach(item => { this.customerDataList[this.currentCustomerIdx].list.forEach(item => {
list.push({ list.push({
customerId: item.id, customerId: item.id,
customerName: item.customerName, customerName: item.customerName,
...@@ -1191,23 +1188,22 @@ export default { ...@@ -1191,23 +1188,22 @@ export default {
var idx = 0 var idx = 0
this.editForm.eventList.forEach((item, index) => { this.editForm.eventList.forEach((item, index) => {
if (new Date(item.eventStartDate) > new Date()) { if (new Date(item.eventStartDate) > new Date()) {
params.eventList.push( params.eventList.push({
{ backupContent: item.backupContent,
backupContent: item.backupContent, eventStartDate: item.eventStartDate,
eventStartDate: item.eventStartDate, eventTime: item.eventTime,
eventTime: item.eventTime, pushChannelType: item.pushChannelType,
pushChannelType: item.pushChannelType, repeatFlag: item.repeatFlag,
repeatFlag: item.repeatFlag, repeatMode: item.repeatMode,
repeatMode: item.repeatMode, predictCount: item.predictCount,
predictCount: item.predictCount, // sopName: item.sopName,
// sopName: item.sopName, // sopId: this.routeInfo.id,
// sopId: this.routeInfo.id, followerTypeId: item.followerTypeId,
followerTypeId: item.followerTypeId, followerTypeName: item.followerTypeName,
followerTypeName: item.followerTypeName, reachesType: item.reachesType,
reachesType: item.reachesType, reachesTypeSet: item.reachesTypeSet,
reachesTypeSet: item.reachesTypeSet, resourceList: []
resourceList: [] })
})
if (item.id) { if (item.id) {
params.eventList[index].id = item.id params.eventList[index].id = item.id
} }
...@@ -1215,7 +1211,7 @@ export default { ...@@ -1215,7 +1211,7 @@ export default {
params.eventList[idx].repeatTime = item.repeatTime params.eventList[idx].repeatTime = item.repeatTime
params.eventList[idx].eventEndDate = item.eventEndDate params.eventList[idx].eventEndDate = item.eventEndDate
} }
let backupContent = typeof (item.backupContent) == 'string' ? JSON.parse(item.backupContent) : item.backupContent let backupContent = typeof item.backupContent == 'string' ? JSON.parse(item.backupContent) : item.backupContent
if (backupContent && backupContent.length <= 2) { if (backupContent && backupContent.length <= 2) {
backupContent.forEach(obj => { backupContent.forEach(obj => {
if (obj && obj.attType == 1) { if (obj && obj.attType == 1) {
...@@ -1243,7 +1239,6 @@ export default { ...@@ -1243,7 +1239,6 @@ export default {
params.eventList[index].additionalType = 3 params.eventList[index].additionalType = 3
params.eventList[index].objectType = 5 params.eventList[index].objectType = 5
params.eventList[index].objectId = attContentCopy.marketingId params.eventList[index].objectId = attContentCopy.marketingId
} }
if (attContentCopy.marketingContent.selectType == 'card') { if (attContentCopy.marketingContent.selectType == 'card') {
params.eventList[index].objectType = 6 params.eventList[index].objectType = 6
...@@ -1254,17 +1249,16 @@ export default { ...@@ -1254,17 +1249,16 @@ export default {
params.eventList[index].objectId = attContentCopy.marketingId params.eventList[index].objectId = attContentCopy.marketingId
} }
// 还差一个秒杀活动 // 还差一个秒杀活动
if (attContentCopy.marketingContent.selectType == 'activity' || attContentCopy.marketingContent.selectType == 'crowdfunding' ) { if (attContentCopy.marketingContent.selectType == 'activity' || attContentCopy.marketingContent.selectType == 'crowdfunding') {
params.eventList[index].objectType = 8 params.eventList[index].objectType = 8
params.eventList[index].objectId = attContentCopy.marketingId params.eventList[index].objectId = attContentCopy.marketingId
} }
} }
// 素材 // 素材
if (obj && obj.attType == 6) { if (obj && obj.attType == 6) {
params.eventList[index].additionalType = 1 params.eventList[index].additionalType = 1
params.eventList[index].objectType = 10 params.eventList[index].objectType = 10
let backupattContent = typeof (obj.attContent) == 'string' ? JSON.parse(obj.attContent) : obj.attContent let backupattContent = typeof obj.attContent == 'string' ? JSON.parse(obj.attContent) : obj.attContent
params.eventList[index].objectId = backupattContent.objectId params.eventList[index].objectId = backupattContent.objectId
} }
}) })
...@@ -1280,10 +1274,10 @@ export default { ...@@ -1280,10 +1274,10 @@ export default {
} }
if (obj && obj.attType == 6) { if (obj && obj.attType == 6) {
params.eventList[index].additionalType = 6 params.eventList[index].additionalType = 6
let backupattContent = typeof (obj.attContent) == 'string' ? JSON.parse(obj.attContent) : obj.attContent let backupattContent = typeof obj.attContent == 'string' ? JSON.parse(obj.attContent) : obj.attContent
params.eventList[index].objectId = backupattContent.objectId params.eventList[index].objectId = backupattContent.objectId
} }
if (obj && (obj.attType == 7 || obj.attTye ==4)) { if (obj && (obj.attType == 7 || obj.attTye == 4)) {
let attContentCopy = JSON.parse(obj.attContent) let attContentCopy = JSON.parse(obj.attContent)
if (attContentCopy.marketingContent.selectType == 'coupon') { if (attContentCopy.marketingContent.selectType == 'coupon') {
params.eventList[index].objectType = 16 params.eventList[index].objectType = 16
...@@ -1350,10 +1344,10 @@ export default { ...@@ -1350,10 +1344,10 @@ export default {
if (obj && obj.attType == 6) { if (obj && obj.attType == 6) {
params.eventList[index].additionalType = 1 params.eventList[index].additionalType = 1
params.eventList[index].objectType = 10 params.eventList[index].objectType = 10
let backupattContent = typeof (obj.attContent) == 'string' ? JSON.parse(obj.attContent) : obj.attContent let backupattContent = typeof obj.attContent == 'string' ? JSON.parse(obj.attContent) : obj.attContent
params.eventList[index].objectId = backupattContent.objectId params.eventList[index].objectId = backupattContent.objectId
} }
if (obj && (obj.attType == 7 || obj.attType == 4 )) { if (obj && (obj.attType == 7 || obj.attType == 4)) {
params.eventList[index].additionalType = 2 params.eventList[index].additionalType = 2
let attContentCopy = JSON.parse(obj.attContent) let attContentCopy = JSON.parse(obj.attContent)
if (attContentCopy.marketingContent.selectType == 'coupon') { if (attContentCopy.marketingContent.selectType == 'coupon') {
...@@ -1389,7 +1383,7 @@ export default { ...@@ -1389,7 +1383,7 @@ export default {
} }
if (obj && obj.attType == 6) { if (obj && obj.attType == 6) {
params.eventList[index].additionalType = 6 params.eventList[index].additionalType = 6
let backupattContent = typeof (obj.attContent) == 'string' ? JSON.parse(obj.attContent) : obj.attContent let backupattContent = typeof obj.attContent == 'string' ? JSON.parse(obj.attContent) : obj.attContent
params.eventList[index].objectId = backupattContent.objectId params.eventList[index].objectId = backupattContent.objectId
} }
if (obj && (obj.attType == 7 || obj.attType == 4)) { if (obj && (obj.attType == 7 || obj.attType == 4)) {
...@@ -1418,7 +1412,6 @@ export default { ...@@ -1418,7 +1412,6 @@ export default {
}) })
} }
if (this.editDisabled) { if (this.editDisabled) {
var batchEditParams = { var batchEditParams = {
sopId: params.id, sopId: params.id,
...@@ -1609,7 +1602,6 @@ export default { ...@@ -1609,7 +1602,6 @@ export default {
} }
} }
.welcome-activity-panel { .welcome-activity-panel {
display: flex; display: flex;
margin-right: 10px; margin-right: 10px;
...@@ -1726,7 +1718,7 @@ export default { ...@@ -1726,7 +1718,7 @@ export default {
.event-inline { .event-inline {
margin-top: 8px; margin-top: 8px;
display: inline-block display: inline-block;
} }
.editFlag { .editFlag {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!