From d71544f89ce75c79aaf5bfc60b4f1519b66e7c0f Mon Sep 17 00:00:00 2001 From: datang Date: Wed, 8 Mar 2023 14:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=8D=95=E5=AE=A1=E6=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/crm/business/Detail.vue | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) 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) } } }