Commit 77f54579 by 前端

更新3.3.1需求

1 parent f04b1c4b
...@@ -120,7 +120,8 @@ ...@@ -120,7 +120,8 @@
</div> </div>
<span v-else>{{ item.object.objectName }}</span> <span v-else>{{ item.object.objectName }}</span>
</div> </div>
<div v-if="new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit =='copy'" class="event-btns"> <!-- v-if="new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit =='copy'"-->
<div class="event-btns">
<el-button class="default newBtnSty" :size="size" @click="handleEventDelete(index)">删除</el-button> <el-button class="default newBtnSty" :size="size" @click="handleEventDelete(index)">删除</el-button>
<el-tooltip :disabled="!(!editForm.customerInfoList.length || !editForm.sopName)" effect="dark" <el-tooltip :disabled="!(!editForm.customerInfoList.length || !editForm.sopName)" effect="dark"
content="请先完善sop名称和营销对象" placement="top"> content="请先完善sop名称和营销对象" placement="top">
......
...@@ -46,40 +46,6 @@ ...@@ -46,40 +46,6 @@
<div class="group-content"> <div class="group-content">
<GLEditor ref="welcome" :form="'object'" style="line-height: 12px;" :btnList="btnList"></GLEditor> <GLEditor ref="welcome" :form="'object'" style="line-height: 12px;" :btnList="btnList"></GLEditor>
</div> </div>
<!-- <glsx-combi-form class="edit-form-container m-r-20" ref="editFormRefContent" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormDataContent" :formRules="editRule">-->
<!-- <div slot="eventContent" class="content">-->
<!-- <div class="content-bg">-->
<!-- <el-input type="textarea" :disabled="editForm.object ? editForm.object.additionalType == '4' : false" :rows="9" maxlength="280" show-word-limit v-model="editForm.eventContent" @input="textInput" style="-webkit-user-modify: read-write-plaintext-only !important; width: 656px" placeholder="请输入营销文案"></el-input>-->
<!-- <div v-for="(itm, index) in previewList" :key="itm.id">-->
<!-- &lt;!&ndash; additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板) &ndash;&gt;-->
<!-- <div v-if="itm.additionalType" class="welcome-file">-->
<!-- <template>-->
<!-- <img class="event-icon" v-if="itm.additionalType != 4" :src="require(`@/assets/sop/icon-${btnList.find(k => k.id == itm.additionalType).type}.png`)" alt />-->
<!-- <div v-if="itm.additionalType == 4">-->
<!-- <div v-if="itm.attContent.showVideoContent.length">-->
<!-- <video class="model-item-img" :src="itm.attContent.showVideoContent[0].attContent" controls="controls" />-->
<!-- &lt;!&ndash; <video v-for="(subItem, subIndex) in itm.attContent.showVideoContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" controls="controls" /> &ndash;&gt;-->
<!-- </div>-->
<!-- <div v-if="!itm.attContent.showVideoContent.length && itm.attContent.showImgContent.length">-->
<!-- <img class="model-item-img" :src="itm.attContent.showImgContent[0].attContent" />-->
<!-- &lt;!&ndash; <el-image v-for="(subItem, subIndex) in itm.attContent.showImgContent" class="model-item-img" :key="subIndex" :src="subItem.attContent" :preview-src-list="[subItem.attContent]"></el-image> &ndash;&gt;-->
<!-- </div>-->
<!-- </div>-->
<!-- <span v-else :title="itm.attContent.objectName">{{ itm.attContent.objectName }}</span>-->
<!-- </template>-->
<!-- <i class="el-icon-circle-close" @click="close(index)"></i>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="btn-group">-->
<!-- <div class="add-btn" v-for="item in btnList" :key="item.id">-->
<!-- <img class="event-icon" :src="require(`@/assets/sop/add-${item.type}.png`)" alt />-->
<!-- <span>{{ item.name }}</span>-->
<!-- <el-link style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </glsx-combi-form>-->
</div> </div>
<!-- 营销渠道 --> <!-- 营销渠道 -->
<div class="container edit-container"> <div class="container edit-container">
...@@ -560,7 +526,6 @@ export default { ...@@ -560,7 +526,6 @@ export default {
editForm: { editForm: {
handler(val) { handler(val) {
this.editStatus = true this.editStatus = true
console.log(val)
}, },
deep: true deep: true
}, },
...@@ -579,6 +544,7 @@ export default { ...@@ -579,6 +544,7 @@ export default {
this.getDay('weekList', 7) this.getDay('weekList', 7)
this.getDay('monthList', 31) this.getDay('monthList', 31)
this.predictCountObj = JSON.parse(JSON.stringify(this.parentCustomerObj.parentPredictObj)) this.predictCountObj = JSON.parse(JSON.stringify(this.parentCustomerObj.parentPredictObj))
// this.limitQwPhone() // this.limitQwPhone()
}, },
...@@ -672,11 +638,24 @@ export default { ...@@ -672,11 +638,24 @@ export default {
this.editForm.eventStartDate = this.editForm.eventStartDate ? moment(this.editForm.eventStartDate).format('YYYY-MM-DD') : '' this.editForm.eventStartDate = this.editForm.eventStartDate ? moment(this.editForm.eventStartDate).format('YYYY-MM-DD') : ''
this.editForm.eventEndDate = this.editForm.eventEndDate ? moment(this.editForm.eventEndDate).format('YYYY-MM-DD') : '' this.editForm.eventEndDate = this.editForm.eventEndDate ? moment(this.editForm.eventEndDate).format('YYYY-MM-DD') : ''
this.previewList = this.editForm.object ? [{ attContent: JSON.parse(JSON.stringify(this.editForm.object)), additionalType: this.editForm.object.additionalType }] : [] this.previewList = this.editForm.object ? [{ attContent: JSON.parse(JSON.stringify(this.editForm.object)), additionalType: this.editForm.object.additionalType }] : []
this.getWelcomeDetails()
this.recoveryRepeat() this.recoveryRepeat()
this.recoveryEndTime() this.recoveryEndTime()
this.getCustomerNum() this.getCustomerNum()
}, },
getWelcomeDetails(){
if (this.editForm.object.length != 0) {
const previewList = this.editForm.object.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
return item
})
this.$refs.welcome.updateList(previewList)
}
this.$nextTick(() => {
this.editStatus = false
this.previewList = this.$common.utils.deepClone(this.$refs.welcome.previewList)
})
},
handleReachesType(val) { handleReachesType(val) {
this.editForm.reachesTypeSet = val == 1 ? 1 : '' this.editForm.reachesTypeSet = val == 1 ? 1 : ''
}, },
...@@ -701,8 +680,7 @@ export default { ...@@ -701,8 +680,7 @@ export default {
} }
return item return item
}) })
params.object = contentList this.editForm.object = contentList
console.log(params)
}, },
// 素材 // 素材
handleMaterialConfirm(val) { handleMaterialConfirm(val) {
...@@ -849,7 +827,6 @@ export default { ...@@ -849,7 +827,6 @@ export default {
repeatMode: this.editForm.repeatMode, repeatMode: this.editForm.repeatMode,
repeatTime: this.editForm.repeatTime repeatTime: this.editForm.repeatTime
} }
console.log(countParams)
if (this.submit) { if (this.submit) {
return true return true
} }
...@@ -1009,6 +986,7 @@ export default { ...@@ -1009,6 +986,7 @@ export default {
background: #fff; background: #fff;
max-width: 600px; max-width: 600px;
padding: 20px; padding: 20px;
margin-left: 70px;
.w-textarea{ .w-textarea{
background: #fff; background: #fff;
} }
......
...@@ -92,16 +92,16 @@ export default { ...@@ -92,16 +92,16 @@ export default {
click: row => this.handleEdit('look', row) click: row => this.handleEdit('look', row)
} }
}, },
{ // {
type: 'el-button', // type: 'el-button',
name: '复制', // name: '复制',
attrs: { // attrs: {
type: 'text' // type: 'text'
}, // },
listeners: { // listeners: {
click: row => this.handleEdit('copy', row) // click: row => this.handleEdit('copy', row)
} // }
}, // },
{ {
type: 'el-button', type: 'el-button',
name: '编辑', name: '编辑',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!