Commit fd83e325 by chenwq

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

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