Commit 5a0d713d by 胡悦

修改

1 parent 9ff13cc9
......@@ -417,6 +417,13 @@ export default {
if (v) {
const params = this.getSiftMembers()
params.type = 1
if (this.basicForm.condition.chat.length > 100) {
this.$message({
type: 'error',
message: '所在群聊不可超过100个'
})
return false
}
// params.attachmentList = this.basicForm.attachmentList
params.sendType = this.basicForm.sendType
const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList
......@@ -535,7 +542,7 @@ export default {
let s = list[str.split('.')[0]]
return `[${s}]`
})
item.attContent = replaceImg
item.attContent = replaceImg.substring(0, 600)
// item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
......
......@@ -221,9 +221,9 @@ export default {
// this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss')
const previewList = res.attachmentList.map(item => {
if (item.attType == 7 && item.attContent) item.attContent = JSON.parse(item.attContent)
if (item.attType == 1) {
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
}
// if (item.attType == 1) {
// item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
// }
return item
})
this.eventBus.$emit('update', previewList)
......
......@@ -454,7 +454,8 @@ export default {
this.previewList = val
this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1)
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
// let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
let attContent = obj.attContent
const htm = attContent.replace(/\[[\u4E00-\u9FA5]{1,3}]/gi, function(res) {
let word = res.replace(/\[|\]/gi, '')
const list = [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!