diff --git a/src/views/kpi/assessment/performance/components/process.vue b/src/views/kpi/assessment/performance/components/process.vue index 4989ec3..254b0e8 100644 --- a/src/views/kpi/assessment/performance/components/process.vue +++ b/src/views/kpi/assessment/performance/components/process.vue @@ -368,12 +368,10 @@ export default { this.pinglunForm = {} }, handleCheckStaffIds (list) { - console.log('๐Ÿš€ ~ file: process.vue ~ line 321 ~ handleCheckStaffIds ~ list', list) this.staffList = list this.isShow = false this.$nextTick(() => { - const pingList = this.$refs.pingList - pingList.scrollTop = pingList.scrollHeight + this.handleScroll() }) }, handleCloseItem (item) { @@ -390,10 +388,9 @@ export default { this.$message.error(res.msg) return } - this.nowPingLunList = res.data.list.reverse() + this.nowPingLunList = res.data.list this.$nextTick(() => { - const pingList = this.$refs.pingList - pingList.scrollTop = pingList.scrollHeight + this.handleScroll() }) }, // ๅ‘้€่ฏ„่ฎบ @@ -423,10 +420,13 @@ export default { }) this.dialogFormVisible = false this.pinglunForm = Object.assign({}, item) - const pingList = this.$refs.pingList - pingList.scrollTop = pingList.scrollHeight + this.handleScroll() this.$refs.input.focus() }, + handleScroll () { + const pingList = this.$refs.pingList + pingList.scrollTop = 0 + }, // ่Žทๅ–ๅฝ“ๅ‰ไปปๅŠก็š„่ฏ„่ฎบ async handleShowAll (i) { if (i.showTask) {