Commit 62a4bda5 by 徐忆琳

Merge branch 'xuyl_dev_v3.12.0' into 'v3.12.0'

更新联调后代码

See merge request !485
2 parents 0b93d081 c6251e4f
...@@ -131,6 +131,7 @@ export default { ...@@ -131,6 +131,7 @@ export default {
this.querylabeltree() this.querylabeltree()
}, },
querylabeltree(selectItem) { querylabeltree(selectItem) {
console.log('?????????')
this.loading = true this.loading = true
this.$apis.common this.$apis.common
.querylabeltree({ .querylabeltree({
...@@ -159,7 +160,9 @@ export default { ...@@ -159,7 +160,9 @@ export default {
} }
}) })
//回显 //回显
console.log('????????')
selectItem.forEach(item => { selectItem.forEach(item => {
console.log(item)
this.labelTreeRets.forEach(tag => { this.labelTreeRets.forEach(tag => {
if (item.labelGroup.id == tag.labelGroup.id) { if (item.labelGroup.id == tag.labelGroup.id) {
let labelList = [] let labelList = []
......
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
</div> </div>
</div> </div>
<div class="event-btns"> <div class="event-btns">
<el-button v-if="new Date(item.eventStartDate) > new Date()" type="primary" size="small" <el-button v-if="editForm.sopStatus !==1" type="primary" size="small"
@click="handleEventView(item)">查看 @click="handleEventView(item)">查看
</el-button> </el-button>
<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'"
...@@ -1041,6 +1041,7 @@ export default { ...@@ -1041,6 +1041,7 @@ export default {
break break
case 1: case 1:
this.isTagVisible = !this.isTagVisible this.isTagVisible = !this.isTagVisible
console.log(JSON.parse(JSON.stringify(this.customerDataList[idx].list)))
this.$refs.selectTagForm.init(JSON.parse(JSON.stringify(this.customerDataList[idx].list))) this.$refs.selectTagForm.init(JSON.parse(JSON.stringify(this.customerDataList[idx].list)))
break break
case 2: case 2:
......
...@@ -28,9 +28,15 @@ ...@@ -28,9 +28,15 @@
</template> </template>
</div> </div>
</template> </template>
<template v-else-if="!hasAttTypeOne && previewList.length==2 &&(previewList[0].attType==4 ||previewList[0].attType==6 || previewList[0].attType==7) && (previewList[1].attType==4 ||previewList[1].attType==6 || previewList[1].attType==7)">
<div
class="preview-info">
<img class="avatar"
src="@/assets/guestCustom/default-customer.png"
alt/>
<div class="preview-text text">https//dwz.cn/Fk9vs7ri</div>
</div>
</template>
<template v-else> <template v-else>
<div <div
:class="{'preview-info':true,'isMargin':(previewList && previewList[2] && previewList[2].attType == 6 && item.attType ==6) || previewList && previewList[1] && previewList[0].attType == 7 && previewList[1].attType ==6 &&item.attType ==6}" :class="{'preview-info':true,'isMargin':(previewList && previewList[2] && previewList[2].attType == 6 && item.attType ==6) || previewList && previewList[1] && previewList[0].attType == 7 && previewList[1].attType ==6 &&item.attType ==6}"
...@@ -42,13 +48,7 @@ ...@@ -42,13 +48,7 @@
alt/> alt/>
<div class="preview-text text" v-html="textContent"></div> <div class="preview-text text" v-html="textContent"></div>
</template> </template>
<template v-if="previewList.length ==2 && ((item.attType == 4 || item.attType == 7) && item.attType == 6)"> <template v-if="!hasAttTypeOne && (item.attType == 4 || item.attType == 6 || item.attType == 7) || (item.attType == 6 &&(item.attType == 4||item.attType == 7))">
<img class="avatar"
src="@/assets/guestCustom/default-customer.png"
alt/>
<div class="preview-text text">https//dwz.cn/Fk9vs7ri</div>
</template>
<template v-if="!hasAttTypeOne && (item.attType == 4 || item.attType == 6 || item.attType == 7)">
<img class="avatar" <img class="avatar"
src="@/assets/guestCustom/default-customer.png" src="@/assets/guestCustom/default-customer.png"
alt/> alt/>
...@@ -102,6 +102,7 @@ export default { ...@@ -102,6 +102,7 @@ export default {
this.hasSevenType = val.some(item => item.attType == 7) this.hasSevenType = val.some(item => item.attType == 7)
this.hasFourType = val.some(item => item.attType == 4) this.hasFourType = val.some(item => item.attType == 4)
val.forEach(item => { val.forEach(item => {
console.log(item)
if (item.attType == 1) { if (item.attType == 1) {
this.hasAttTypeOne = true this.hasAttTypeOne = true
const attContent = item.attContent const attContent = item.attContent
......
...@@ -7,32 +7,9 @@ ...@@ -7,32 +7,9 @@
<div class="preview-box" v-for="item in previewListFilter" :key="item.id"> <div class="preview-box" v-for="item in previewListFilter" :key="item.id">
<div class="preview-box-desc"> <div class="preview-box-desc">
<template v-if="item.attType == 1"> <template v-if="item.attType == 1">
<div class="preview-text text" v-html="item.attContent"></div> <div class="preview-text text" v-html="textContent"></div>
</template> </template>
<!-- <template v-if="item.attType == 7">-->
<!-- <div class="preview-text preview-link">-->
<!-- <img src="@/assets/guestCustom/preview-link.png" alt />-->
<!-- <div>{{ item.attContent[0].marketingName }}</div>-->
<!-- </div>-->
<!-- </template>-->
<!-- <template v-else-if="item.attType == 2" v-for="(imgItem, index) in item.attContent">-->
<!-- <el-image style="width: 52px; height: 52px" class="img-list" :src="imgItem" fit="fit" :key="index" :preview-src-list="item.attContent"></el-image>-->
<!-- </template>-->
<!-- <template v-else-if="item.attType == 3">-->
<!-- &lt;!&ndash; <el-image style="width: 100px" :src="item.attContent" fit="contain"></el-image> &ndash;&gt;-->
<!-- <div class="video-panel">-->
<!-- <video id="video" width="100%" height="100%" preload loop muted>-->
<!-- <source :src="item.attContent" type="video/mp4" />-->
<!-- </video>-->
<!-- <i-->
<!-- class="el-icon-video-play"-->
<!-- @click="-->
<!-- videoShow = true-->
<!-- videoUrl = item.attContent-->
<!-- "-->
<!-- ></i>-->
<!-- </div>-->
<!-- </template>-->
</div> </div>
</div> </div>
</div> </div>
...@@ -48,14 +25,14 @@ export default { ...@@ -48,14 +25,14 @@ export default {
props: { previewView: Array }, props: { previewView: Array },
data() { data() {
return { return {
previewListFilter:[] previewListFilter:[],
textContent:''
} }
}, },
watch: { watch: {
previewView: { previewView: {
handler(val) { handler(val) {
const previewVal = this.$common.utils.deepClone(val).filter(item => item) const previewVal = this.$common.utils.deepClone(val).filter(item => item)
console.log(previewVal)
this.previewListFilter = [] this.previewListFilter = []
for (let i in previewVal) { for (let i in previewVal) {
if (previewVal[i].attType == 1) { if (previewVal[i].attType == 1) {
...@@ -74,18 +51,16 @@ export default { ...@@ -74,18 +51,16 @@ export default {
}) })
this.previewListFilter.push({ this.previewListFilter.push({
attType: 1, attType: 1,
attContent: htm // attContent: htm
}) })
} else if (previewVal[i].attType == 2) { this.textContent = htm
const pindex = this.previewListFilter.findIndex(item => item.attType == 2) } else if (previewVal[i].attType == 4 || previewVal[i].attType == 6 || previewVal[i].attType == 7) {
if (pindex == -1) {
this.previewListFilter.push({ this.previewListFilter.push({
attType: 2, attType: previewVal[i].attType,
attContent: [previewVal[i].attContent] // attContent: previewVal[i].attContent
}) })
} else { let str = 'https//dwz.cn/Fk9vs7ri'
this.previewListFilter[pindex].attContent.push(previewVal[i].attContent) this.textContent = this.textContent ? this.textContent + str : str
}
} else { } else {
this.previewListFilter.push({ this.previewListFilter.push({
attType: previewVal[i].attType, attType: previewVal[i].attType,
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
handleJump(path, row = {}) { handleJump(path, row = {}) {
this.$router.push({ this.$router.push({
path: '/sop/' + path, path: '/sop/' + path,
query: row ? {id: row.id, fromPage: '/marketing/sop/index'} : '' query: row ? {id: row.id, fromPage: '/marketing/sop/index',sopType:row.sopType} : ''
}) })
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<el-tab-pane label="触达率分析" name="touchList"> <el-tab-pane label="触达率分析" name="touchList">
<touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id"></touch-list> <touch-list v-if="activeName == 'touchList'" :sopId="routeInfo.id"></touch-list>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="员工完成率分析" name="staffList"> <el-tab-pane label="员工完成率分析" name="staffList" v-if=" routeInfo.sopType == 1">
<staff-list v-if="activeName == 'staffList'" :sopId="routeInfo.id"></staff-list> <staff-list v-if="activeName == 'staffList'" :sopId="routeInfo.id"></staff-list>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="效果分析" name="resultList"> <el-tab-pane label="效果分析" name="resultList">
...@@ -46,7 +46,6 @@ export default { ...@@ -46,7 +46,6 @@ export default {
created() { created() {
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
console.log(this.$route.query)
console.log(this.routeInfo) console.log(this.routeInfo)
}, },
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<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-20">{{ item.eventTime }}</p> <p class="m-r-20">{{item.firstPushDate}} {{ 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">每周{{
item.repeatTime item.repeatTime
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!