Commit fd83e325 by chenwq

选择客户-取消;去掉冗余代码

1 parent 10262383
......@@ -48,7 +48,6 @@ export default {
},
handleInfoConfirm(info) {
this.eventObj.addOrEdit == 'add' ? this.$refs.baseInfoRef.editForm.eventList.push(info.baseInfo) : this.$set(this.$refs.baseInfoRef.editForm.eventList, this.eventIndex, info.baseInfo)
console.log(this.$refs.baseInfoRef.editForm)
this.$refs.baseInfoRef.dealSopTime()
this.jumpBaseInfo({ activeName: 'baseInfo' })
},
......
......@@ -200,7 +200,6 @@ export default {
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
console.log(this.routeInfo)
if (this.routeInfo.addOrEdit == 'edit') {
this.getInfo()
}
......@@ -286,7 +285,6 @@ export default {
cancelButtonText: '取消',
type: 'warning',
callback: action => {
console.log(action)
if (action == 'confirm') {
this.changeCustomer(obj)
}
......@@ -311,7 +309,6 @@ export default {
cancelButtonText: '取消',
type: 'warning',
callback: action => {
console.log(action)
if (action == 'confirm') {
this.editForm.customerInfoList = []
this.$refs.editFormRef.$refs[this.editChildRef].validateField('customerInfoList')
......@@ -436,7 +433,7 @@ export default {
}
})
}
console.log(params)
// console.log(params)
if (this.editDisabled) {
var batchEditParams = {
sopId: params.id,
......
......@@ -103,7 +103,6 @@ export default {
if (item.equityClassId) {
this.selectItem.id = item.equityClassId
}
console.log(this.selectItem)
},
handleSelect() {
if (!this.selectItem.id) {
......@@ -114,14 +113,12 @@ export default {
return
}
this.dialogVisible = false
console.log(this.selectItem)
var typeToObj = {
2: 5,
3: 6,
4: 7,
5: 8
}
console.log()
// this.$emit('selectActivity', { marketingId: this.selectItem.id ? this.selectItem.id : this.selectItem.equityClassId, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.equityName : this.activeName == 4 ? this.selectItem.packageName : this.activeName == 5 ? this.selectItem.activityName : this.activeName == 2 ? this.selectItem.couponName : this.selectItem.equityName })
this.$emit('selectActivity', {
objectId: this.selectItem.id ? this.selectItem.id : this.selectItem.equityClassId,
......@@ -226,7 +223,6 @@ export default {
return
}
item.children.forEach(itm => {
// console.log(itm.path)
if (itm.path == '/couponManage/index') {
this.couponMenu = true
}
......
......@@ -174,7 +174,6 @@ export default {
}
tableData.push(item)
})
console.log(this.modelList)
})
},
handleReset() {
......
......@@ -123,7 +123,6 @@ export default {
this.getModelList()
},
handleNicknameConfirm() {
console.log(this.selectItem)
// activeName 0-纯文字,1-单图+文,2-多图+文,3-视频+文,4-链接+文
var valToType = {
0: 4,
......
......@@ -52,7 +52,7 @@ export default {
{
label: '客户名称',
prop: 'customerName',
line: 1,
// line: 1,
width: 160,
formatter: cellValue => {
return cellValue.customerName || '-'
......
......@@ -45,7 +45,7 @@
<select-customer v-if="activeName == 'customer'" ref="customerRef" :selectedLabelList="selectedLabelList" :condLimitObj.sync="condLimitObj" :selectedCustomerList.sync="selectedCustomerList" @handleChangeTag="handleChangeTag"></select-customer>
<span slot="footer" class="dialog-footer">
<!-- <a class="dialog-jump" @click="jumpUrl" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2">没有意向标签?点我创建</a> -->
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" @click="handleClose">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
</el-dialog>
......@@ -158,7 +158,7 @@ export default {
this.querylabeltree()
},
querylabeltree(selectItem) {
console.log(selectItem, '-----')
// console.log(selectItem, '-----')
this.$apis.customerTransform
.querylabeltree({
labelTreeReq: {
......@@ -174,7 +174,6 @@ export default {
})
.then(res => {
if (selectItem && selectItem.length > 0) {
console.log(res.labelTreeRets)
this.labelTreeRets = res.labelTreeRets.map(item => {
return {
labelType: item.labelType,
......@@ -192,7 +191,6 @@ export default {
if (item.labelGroup.id == tag.labelGroup.id) {
let labelId = item.labelList[0].id
let index = tag.labelList.findIndex(iem => iem.id == labelId)
console.log(index)
// tag.tagChecked = item.tagChecked
tag.tagChecked = tag.labelList[index]
}
......@@ -256,6 +254,10 @@ export default {
})
})
},
handleClose() {
this.activeName = 'tag'
this.dialogVisible = false
},
//选中
handleSelect() {
this.selectedLabelList = this.labelTreeRetSelect
......@@ -269,7 +271,7 @@ export default {
}
})
.filter(item => item)
console.log(this.selectedLabelList)
// console.log(this.selectedLabelList)
// 标签
if (this.activeName == 'tag') {
this.activeName = 'customer'
......
......@@ -377,7 +377,6 @@ export default {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
Object.assign(this.editForm, this.eventObj.info)
console.log(this.editForm)
this.$nextTick(() => {
this.editStatus = false
})
......@@ -461,7 +460,6 @@ export default {
// 朋友圈模板
handleNicknameConfirm(val) {
console.log(val)
// additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板)
// objectType 对象类型(1朋友圈模板-单图文,2朋友圈模板-多图文,3朋友圈模板-文字+视频,4朋友圈模板-文字,5优惠券-商城券,6活动-权益卡使用,7活动-权益套餐,8活动-秒杀活动,10-素材)
this.editForm.object = JSON.parse(JSON.stringify(val))
......@@ -523,7 +521,6 @@ export default {
},
handleConfirm() {
// console.log(this.editForm)
var countParams = {
eventStartDate: this.editForm.eventStartDate,
eventEndDate: this.editForm.eventEndDate,
......
......@@ -140,7 +140,6 @@ export default {
pageSize: 999999
}
this.$apis.sop.getSopInfoListApi(params).then(res => {
// console.log(res)
this.sopList = res.list
this.dealListData()
this.$nextTick(() => {
......@@ -166,7 +165,6 @@ export default {
})
},
drawPie() {
console.log(this.sopList)
this.sopList.forEach(item => {
let chartDom = document.getElementById('sopPie' + item.id)
let myChart = echarts.init(chartDom)
......
......@@ -146,8 +146,6 @@ export default {
}
]
console.log(option)
option && myChart.setOption(option)
},
......
......@@ -167,7 +167,6 @@ export default {
.getEventListApi(params)
.then(res => {
this.baseData.sopEventList = res.list
console.log(res)
if (this.baseData.sopEventList.length) {
this.baseData.sopEventList.forEach(item => {
item.confName = item.eventStartDate + (item.repeatFlag == 'Y' ? '-' + item.eventEndDate : '') + ' ' + item.eventTime + ' ' + pushChannelTypeList[item.pushChannelType]
......@@ -238,8 +237,6 @@ export default {
}
]
console.log(option)
option && myChart.setOption(option)
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!