Commit c477dd39 by 胡悦

提交

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