This commit is contained in:
xiongchengqiang 2020-12-16 15:57:52 +08:00
parent 22e2a330ef
commit 11eed00b8d

View File

@ -368,12 +368,10 @@ export default {
this.pinglunForm = {} this.pinglunForm = {}
}, },
handleCheckStaffIds (list) { handleCheckStaffIds (list) {
console.log('🚀 ~ file: process.vue ~ line 321 ~ handleCheckStaffIds ~ list', list)
this.staffList = list this.staffList = list
this.isShow = false this.isShow = false
this.$nextTick(() => { this.$nextTick(() => {
const pingList = this.$refs.pingList this.handleScroll()
pingList.scrollTop = pingList.scrollHeight
}) })
}, },
handleCloseItem (item) { handleCloseItem (item) {
@ -390,10 +388,9 @@ export default {
this.$message.error(res.msg) this.$message.error(res.msg)
return return
} }
this.nowPingLunList = res.data.list.reverse() this.nowPingLunList = res.data.list
this.$nextTick(() => { this.$nextTick(() => {
const pingList = this.$refs.pingList this.handleScroll()
pingList.scrollTop = pingList.scrollHeight
}) })
}, },
// //
@ -423,10 +420,13 @@ export default {
}) })
this.dialogFormVisible = false this.dialogFormVisible = false
this.pinglunForm = Object.assign({}, item) this.pinglunForm = Object.assign({}, item)
const pingList = this.$refs.pingList this.handleScroll()
pingList.scrollTop = pingList.scrollHeight
this.$refs.input.focus() this.$refs.input.focus()
}, },
handleScroll () {
const pingList = this.$refs.pingList
pingList.scrollTop = 0
},
// //
async handleShowAll (i) { async handleShowAll (i) {
if (i.showTask) { if (i.showTask) {