Browse Source

操作流程 --- 11:24 去除重名方法

wanggongfeng 3 years ago
parent
commit
c30e094095
  1. 69
      src/views/modules/events/item-deal-detail-view.vue

69
src/views/modules/events/item-deal-detail-view.vue

@ -969,75 +969,6 @@ export default {
}) })
.catch(() => {}) .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) { deleteComment (val) {
this.$confirm('确定要屏蔽该评论吗?屏蔽后不可恢复。', '提示', { this.$confirm('确定要屏蔽该评论吗?屏蔽后不可恢复。', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

Loading…
Cancel
Save