Commit c477dd39 by 胡悦

提交

1 parent c6d2a58f
...@@ -308,7 +308,8 @@ export default { ...@@ -308,7 +308,8 @@ export default {
basicForm: { basicForm: {
selectType: 1, selectType: 1,
condition: { condition: {
sex: '' sex: '',
chat: []
} }
}, },
basicRules: { basicRules: {
...@@ -418,7 +419,7 @@ export default { ...@@ -418,7 +419,7 @@ export default {
if (v) { if (v) {
const params = this.getSiftMembers() const params = this.getSiftMembers()
params.type = 1 params.type = 1
if (this.basicForm.condition.chat.length > 100) { if (this.basicForm.condition.chat.length && this.basicForm.condition.chat.length > 100) {
this.$message({ this.$message({
type: 'error', type: 'error',
message: '所在群聊不可超过100个' message: '所在群聊不可超过100个'
...@@ -538,7 +539,6 @@ export default { ...@@ -538,7 +539,6 @@ export default {
'右太极' '右太极'
] ]
const cutImg = item.attContent.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '') const cutImg = item.attContent.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '')
console.log(cutImg)
const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function(str) { const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function(str) {
let s = list[str.split('.')[0]] let s = list[str.split('.')[0]]
return `[${s}]` return `[${s}]`
...@@ -566,10 +566,8 @@ export default { ...@@ -566,10 +566,8 @@ export default {
if (params.sendType == 2) { if (params.sendType == 2) {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
} }
console.log(params)
this.addLoading = true this.addLoading = true
this.$apis.customerTransform.insert(params).then(res => { this.$apis.customerTransform.insert(params).then(res => {
console.log(res)
if (res.code == '-1') { if (res.code == '-1') {
this.$message({ this.$message({
type: 'error', type: 'error',
...@@ -630,7 +628,6 @@ export default { ...@@ -630,7 +628,6 @@ export default {
} }
}, },
getSiftMembers() { getSiftMembers() {
console.log(this.basicForm.condition, this.tagging)
const chatFlag = this.basicForm.condition.chat && this.basicForm.condition.chat.length const chatFlag = this.basicForm.condition.chat && this.basicForm.condition.chat.length
const tagFlag = this.tagging && this.tagging.length const tagFlag = this.tagging && this.tagging.length
const params = { const params = {
...@@ -673,7 +670,6 @@ export default { ...@@ -673,7 +670,6 @@ export default {
this.groupNumber = res this.groupNumber = res
// } // }
this.isUpdate = false this.isUpdate = false
console.log(res)
}) })
.catch(err => { .catch(err => {
this.groupNumber = 0 this.groupNumber = 0
......
...@@ -423,7 +423,6 @@ export default { ...@@ -423,7 +423,6 @@ export default {
'右太极' '右太极'
] ]
const cutImg = item.attContent.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '') const cutImg = item.attContent.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '')
console.log(cutImg)
const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function(str) { const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function(str) {
let s = list[str.split('.')[0]] let s = list[str.split('.')[0]]
return `[${s}]` return `[${s}]`
......
...@@ -144,7 +144,6 @@ export default { ...@@ -144,7 +144,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) {
......
...@@ -218,7 +218,6 @@ export default { ...@@ -218,7 +218,6 @@ export default {
}, },
watch: { watch: {
basicInfo(val) { basicInfo(val) {
console.log(val)
if (val.userList.length > 4) { if (val.userList.length > 4) {
this.limitUserList = val.userList.slice(0, 4) this.limitUserList = val.userList.slice(0, 4)
} else { } else {
......
...@@ -54,7 +54,6 @@ export default { ...@@ -54,7 +54,6 @@ export default {
}, },
watch: { watch: {
previewList(val) { previewList(val) {
console.log(val)
if (val.length && val[0].attType == 1) { if (val.length && val[0].attType == 1) {
const attContent = val[0].attContent const attContent = val[0].attContent
const htm = attContent.replace(/\[[\u4E00-\u9FA5]{1,3}]/gi, function(res) { const htm = attContent.replace(/\[[\u4E00-\u9FA5]{1,3}]/gi, function(res) {
...@@ -169,7 +168,6 @@ export default { ...@@ -169,7 +168,6 @@ export default {
let index = list.indexOf(word) let index = list.indexOf(word)
return `<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${index}.gif">` return `<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${index}.gif">`
}) })
console.log(htm)
val[0].attContent = htm val[0].attContent = htm
} }
} }
......
...@@ -89,7 +89,6 @@ export default { ...@@ -89,7 +89,6 @@ export default {
}, },
//查询 //查询
searchEmp() { searchEmp() {
console.log(1111)
this.$refs.selectEmpTabel.searchTable(this.newTag) this.$refs.selectEmpTabel.searchTable(this.newTag)
}, },
onSubmit() { onSubmit() {
......
...@@ -366,7 +366,6 @@ export default { ...@@ -366,7 +366,6 @@ export default {
// 即时更新数据 // 即时更新数据
this.updateData(target.innerHTML) this.updateData(target.innerHTML)
let htm = target.innerHTML let htm = target.innerHTML
console.log(htm)
const list = [ const list = [
'微笑', '微笑',
'撇嘴', '撇嘴',
...@@ -475,7 +474,6 @@ export default { ...@@ -475,7 +474,6 @@ export default {
'右太极' '右太极'
] ]
const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '') const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '')
console.log(cutImg)
const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function(str) { const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function(str) {
let s = list[str.split('.')[0]] let s = list[str.split('.')[0]]
return `[${s}]` return `[${s}]`
...@@ -498,7 +496,6 @@ export default { ...@@ -498,7 +496,6 @@ export default {
} }
}, },
inputClick(e) { inputClick(e) {
console.log(this.tag.toUpperCase(), e.target.nodeName, e)
// 监听点击事件 // 监听点击事件
this.isLocked = true this.isLocked = true
const TAG_NAME = e.target.nodeName const TAG_NAME = e.target.nodeName
......
...@@ -293,14 +293,12 @@ export default { ...@@ -293,14 +293,12 @@ export default {
this.$refs.textContent.addImg(`https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${index}.gif`) this.$refs.textContent.addImg(`https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${index}.gif`)
}, },
updateText(val) { updateText(val) {
console.log(val)
this.textInput(val) this.textInput(val)
}, },
// 上传图片 // 上传图片
handleImgChange(e, targetItem) { handleImgChange(e, targetItem) {
var reader = new FileReader() var reader = new FileReader()
var file = e.srcElement.files[0] var file = e.srcElement.files[0]
console.log(file)
// 默认1MB // 默认1MB
const limitSize = targetItem.limitSize || 1 const limitSize = targetItem.limitSize || 1
const isLt = file.size / 1024 / 1024 < limitSize const isLt = file.size / 1024 / 1024 < limitSize
...@@ -318,7 +316,6 @@ export default { ...@@ -318,7 +316,6 @@ export default {
var image = new Image() var image = new Image()
image.src = e.target.result image.src = e.target.result
image.onload = () => { image.onload = () => {
console.log(file, targetItem)
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.$apis.common.pictureUpload({ file: base64 }).then(res => { this.$apis.common.pictureUpload({ file: base64 }).then(res => {
...@@ -352,7 +349,6 @@ export default { ...@@ -352,7 +349,6 @@ export default {
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.$apis.common.pictureUpload({ file: base64 }).then(res => { this.$apis.common.pictureUpload({ file: base64 }).then(res => {
if (res) { if (res) {
console.log(res)
this.previewList.push({ this.previewList.push({
attType: ATT_TYPE.VEDIO, attType: ATT_TYPE.VEDIO,
attContent: res attContent: res
...@@ -437,7 +433,6 @@ export default { ...@@ -437,7 +433,6 @@ export default {
} }
}, },
changeInput: utils.debounce(function() { changeInput: utils.debounce(function() {
console.log(document.getElementById('editor').childNodes)
var allNodes = document.getElementById('editor').childNodes var allNodes = document.getElementById('editor').childNodes
var str = '' var str = ''
allNodes.forEach(item => { allNodes.forEach(item => {
...@@ -447,11 +442,9 @@ export default { ...@@ -447,11 +442,9 @@ export default {
str += item.data str += item.data
} }
}) })
console.log(str)
this.textInput(str) this.textInput(str)
}, 300), }, 300),
updateList(val) { updateList(val) {
console.log(val)
this.previewList = val this.previewList = val
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1) const obj = val.find(item => item.attType == 1)
......
...@@ -199,7 +199,6 @@ export default { ...@@ -199,7 +199,6 @@ export default {
const id = this.$route.params.id const id = this.$route.params.id
this.$apis.customerTransform.customerDetail({ id }).then(res => { this.$apis.customerTransform.customerDetail({ id }).then(res => {
this.basicInfo = res this.basicInfo = res
console.log(res)
const date = new Date(res.sendTime) const date = new Date(res.sendTime)
const currentDate = new Date() const currentDate = new Date()
this.isDisabled = date > currentDate this.isDisabled = date > currentDate
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!