This commit is contained in:
xiongchengqiang 2020-12-14 18:29:47 +08:00
parent 740a395b36
commit 2479f91f7c

View File

@ -387,7 +387,8 @@ export default {
const str = this.staffList.list.map(i => i.staffId).join(',') const str = this.staffList.list.map(i => i.staffId).join(',')
let params = {} let params = {}
// debugger // debugger
if (!this.form.content) return if (!this.form.content.replace(/(^\s*)|(\s*$)/g, '')) return
this.form.content = this.form.content.replace(/(^\s*)|(\s*$)/g, '')
params.content = this.form.content params.content = this.form.content
if (str) params.atStaffIds = str if (str) params.atStaffIds = str
params[this.pinglunForm.id ? 'taskId' : 'detailId'] = this.pinglunForm.id ? this.pinglunForm.id : this.taskInfo.detailId params[this.pinglunForm.id ? 'taskId' : 'detailId'] = this.pinglunForm.id ? this.pinglunForm.id : this.taskInfo.detailId