diff --git a/src/views/crm/business/Detail.vue b/src/views/crm/business/Detail.vue index d849eaf..b22f30f 100644 --- a/src/views/crm/business/Detail.vue +++ b/src/views/crm/business/Detail.vue @@ -421,7 +421,7 @@ export default { request(params) .then(res => { const userList = res.data.list || res.data - console.log(userList) + // console.log(userList) this.userOptions = userList.map(item => { return item }) @@ -604,14 +604,15 @@ export default { h('textarea', { attrs: { class: 'el-textarea__inner', - type: 'textarea', autocomplete: 'off', - rows: 4 + rows: 4, + id: 'commentContent' + }, + domProps: { + value: this.commentContent }, - value: this.inputValue, on: { input: v => { - console.log(v) - this.inputValue + this.commentContent = v.target.value } } }), h('p', '审核人:'), @@ -626,7 +627,7 @@ export default { on: { input: val => { this.value = val - console.log(val) + // console.log(val) }, change: e => { this.value = e @@ -651,11 +652,13 @@ export default { }) .then(({ value }) => { this.loading = true + const commentContent = document.getElementById('commentContent').value crmBusinessAdvanceAPI({ + check_user_id: this.$refs['selectView'].value, business_id: this.id, status_id: item.status_id, is_end: item.type, - statusRemark: value + statusRemark: commentContent }) .then(res => { this.loading = false @@ -730,8 +733,10 @@ export default { /** * 刷新value的值 */ - updateVal(val) { - this.value = val + onCommentInputChange() { + this.$forceUpdate() + this.commentContent = document.getElementById('commentContent').value + console.log(this.commentContent) } } }