Commit af4c33b9 by 前端

Merge branch 'xuyl_3.2.0_fix' into 'v3.2.0'

修复营销bug

See merge request !40
2 parents 3700bdca 860731f6
...@@ -279,7 +279,6 @@ const validateTime = (rule, value, callback) => { ...@@ -279,7 +279,6 @@ const validateTime = (rule, value, callback) => {
} }
} }
const validateContent = (rule, value, callback) => { const validateContent = (rule, value, callback) => {
console.log(value)
if (value == `【${Vue.prototype.$globalState.session.merchantName}】`) { if (value == `【${Vue.prototype.$globalState.session.merchantName}】`) {
callback(new Error('请选择短信模板')) callback(new Error('请选择短信模板'))
} else { } else {
...@@ -396,7 +395,6 @@ export default { ...@@ -396,7 +395,6 @@ export default {
}, },
crowding: { crowding: {
handler() { handler() {
console.log(this.crowding)
if (this.crowding.length == 0) { if (this.crowding.length == 0) {
this.contactNum = 0 this.contactNum = 0
return return
...@@ -407,7 +405,6 @@ export default { ...@@ -407,7 +405,6 @@ export default {
}, },
labeling: { labeling: {
handler() { handler() {
console.log(this.labeling.length)
if (this.labeling.length == 0) { if (this.labeling.length == 0) {
this.contactNum = 0 this.contactNum = 0
this.filterTagging = [] this.filterTagging = []
...@@ -443,7 +440,6 @@ export default { ...@@ -443,7 +440,6 @@ export default {
this.labeling = [] this.labeling = []
this.crowding = [] this.crowding = []
this.contactNum = 0 this.contactNum = 0
console.log('清空')
}) })
.catch(() => { .catch(() => {
this.selectType = oldVal this.selectType = oldVal
...@@ -457,7 +453,6 @@ export default { ...@@ -457,7 +453,6 @@ export default {
}) })
.then(() => { .then(() => {
this.clearFile() this.clearFile()
console.log('清空了')
}) })
.catch(() => { .catch(() => {
this.selectType = oldVal this.selectType = oldVal
...@@ -481,7 +476,6 @@ export default { ...@@ -481,7 +476,6 @@ export default {
this.$router.push('/market/index') this.$router.push('/market/index')
}, },
handleCancel() { handleCancel() {
console.log(this.saveStatus)
if (this.saveStatus || (this.$refs.welcome && this.$refs.welcome.previewList.length > 0 && this.editStatus)) { if (this.saveStatus || (this.$refs.welcome && this.$refs.welcome.previewList.length > 0 && this.editStatus)) {
this.dialogVisible = true this.dialogVisible = true
} else { } else {
...@@ -504,7 +498,6 @@ export default { ...@@ -504,7 +498,6 @@ export default {
const file = e.srcElement.files[0] const file = e.srcElement.files[0]
let AllImgExt = '.xls|.xlsx' let AllImgExt = '.xls|.xlsx'
let extName = file.name.substring(file.name.lastIndexOf('.')).toLowerCase() let extName = file.name.substring(file.name.lastIndexOf('.')).toLowerCase()
console.log(extName)
if (AllImgExt.indexOf(extName) === -1) { if (AllImgExt.indexOf(extName) === -1) {
this.$message.error('上传格式不正确') this.$message.error('上传格式不正确')
return false return false
...@@ -551,7 +544,6 @@ export default { ...@@ -551,7 +544,6 @@ export default {
}, },
selectActivity(item) { selectActivity(item) {
this.ModelItem = item this.ModelItem = item
console.log(this.ModelItem)
}, },
handleSaveImport() { handleSaveImport() {
const groupIds = this.crowding.map(item => item.crowdId) const groupIds = this.crowding.map(item => item.crowdId)
...@@ -601,7 +593,7 @@ export default { ...@@ -601,7 +593,7 @@ export default {
this.$message.error('请上传客户信息') this.$message.error('请上传客户信息')
return return
} }
if (!this.imName) { if (!this.addForm.imName) {
this.imNameStatus = true this.imNameStatus = true
return return
} }
...@@ -691,7 +683,6 @@ export default { ...@@ -691,7 +683,6 @@ export default {
this.$refs.screenTagForm.init(this.labeling) this.$refs.screenTagForm.init(this.labeling)
}, },
handleCrowd() { handleCrowd() {
console.log(this.crowding)
this.$refs.selectCrowdForm.init(this.crowding) this.$refs.selectCrowdForm.init(this.crowding)
}, },
crowdChecked(item) { crowdChecked(item) {
...@@ -724,7 +715,6 @@ export default { ...@@ -724,7 +715,6 @@ export default {
const taggingList = tagging.map(item => { const taggingList = tagging.map(item => {
let name = item.name.split(',') let name = item.name.split(',')
let ids = item.tagIds.split(',') let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => { let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag } return { id: ids[index], name: tag }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!