优化
This commit is contained in:
parent
22e2a330ef
commit
11eed00b8d
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user