diff --git a/src/views/modules/events/item-deal-detail-view.vue b/src/views/modules/events/item-deal-detail-view.vue index 8bce3ef5..161039e8 100644 --- a/src/views/modules/events/item-deal-detail-view.vue +++ b/src/views/modules/events/item-deal-detail-view.vue @@ -969,75 +969,6 @@ export default { }) .catch(() => {}) }, - deleteComment (val) { - this.$confirm('确定要屏蔽该评论吗?屏蔽后不可恢复。', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.$http['post']('/events/item/deleteComment', { commentIds: [val] }) - .then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.dataForm = { - ...this.dataForm, - ...res.data - } - this.dataForm.handleProgressResultDTOS.forEach( - (item, index, arr) => { - if (index === arr.length - 1) { - item.type = 'issue-project' - } else { - item.type = 'project' - } - } - ) - this.dataForm.issueProgressResultDTOS.forEach( - (item, index, arr) => { - if (index === arr.length - 1) { - item.type = 'init' - } else { - item.type = 'issue' - } - } - ) - this.timeLineList = [ - ...this.dataForm.handleProgressResultDTOS, - ...this.dataForm.issueProgressResultDTOS - ] - console.log(this.timeLineList) - this.$nextTick(() => { - this.timeLineList.forEach((item, index) => { - const oDiv = document.getElementById(`content${index}`) - const oBorder = - oDiv.parentNode.parentNode.parentNode.firstChild - if (item.type === 'issue' || item.type === 'issue-project') { - oBorder.style.borderLeft = '1px solid #ffa546' - } else if (item.type === 'project') { - oBorder.style.borderLeft = '1px solid #009688' - } - }) - }) - this.initBmap( - this.dataForm.issueLatitude, - this.dataForm.issueLongitude - ) - for ( - let index = 0; - index < res.data.handleResultDTOS.length; - index++ - ) { - const handleResultDTO = res.data.handleResultDTOS[index] - if (handleResultDTO.select === true) { - this.dataForm.handleCategoryShow = - handleResultDTO.processResult - } - } - }) - .catch(() => {}) - }) - }, deleteComment (val) { this.$confirm('确定要屏蔽该评论吗?屏蔽后不可恢复。', '提示', { confirmButtonText: '确定',