|
@@ -105,7 +105,7 @@
|
|
|
<span
|
|
|
v-if=" !subItem.personInCharge || subItem.personInCharge.indexOf(username) > -1 "
|
|
|
class="Hold"
|
|
|
- @click.stop="setHold(index, subIndex, subItem)"
|
|
|
+ @click.stop="setHold(index, subIndex, subItem,parentIndex)"
|
|
|
>{{ subItem.isHold ? '解除Hold' : 'Hold' }}</span
|
|
|
>
|
|
|
</span>
|
|
@@ -158,7 +158,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- setHold(index, subIndex, subItem) {
|
|
|
+ setHold(index, subIndex, subItem, parentIndex) {
|
|
|
subItem.isProgressEdit = false
|
|
|
// console.log(this.analyticFeedback)
|
|
|
if (subItem.isHold) {
|
|
@@ -166,16 +166,16 @@ export default {
|
|
|
this.$forceUpdate()
|
|
|
return
|
|
|
}
|
|
|
- this.$refs.Hold.open(index, subIndex, subItem.holdReason)
|
|
|
+ this.$refs.Hold.open(index, subIndex, subItem.holdReason, parentIndex)
|
|
|
},
|
|
|
- upHold({ index, subIndex, holdReason }) {
|
|
|
- // console.log({ index, subIndex, holdReason })
|
|
|
- this.analyticFeedback.analyticContents[index].improvementItems[
|
|
|
+ upHold({ index, subIndex, holdReason, parentIndex }) {
|
|
|
+ console.log({ index, subIndex, holdReason, analyticFeedbackList: this.analyticFeedbackList })
|
|
|
+ this.analyticFeedbackList[parentIndex].analyticContents[index].improvementItems[
|
|
|
subIndex
|
|
|
].isHold = true
|
|
|
if (holdReason) {
|
|
|
window.log({ c: 'report_view', d: 'report_view_Feeback_hold' })
|
|
|
- this.analyticFeedback.analyticContents[index].improvementItems[
|
|
|
+ this.analyticFeedbackList[parentIndex].analyticContents[index].improvementItems[
|
|
|
subIndex
|
|
|
].holdReason = holdReason
|
|
|
}
|