|
@@ -67,7 +67,7 @@
|
|
<modify-knowledge-comment
|
|
<modify-knowledge-comment
|
|
ref="ModifyKnowledgeComment"
|
|
ref="ModifyKnowledgeComment"
|
|
:instance="curRow"
|
|
:instance="curRow"
|
|
- :modified="modified"
|
|
|
|
|
|
+ @modified="modified"
|
|
></modify-knowledge-comment>
|
|
></modify-knowledge-comment>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -103,8 +103,11 @@ export default {
|
|
this.$refs.ModifyKnowledgeComment.open();
|
|
this.$refs.ModifyKnowledgeComment.open();
|
|
},
|
|
},
|
|
modified(data) {
|
|
modified(data) {
|
|
- const ind = this.dataList.findIndex(item => item.level === data.level);
|
|
|
|
- this.dataList[ind] = this.$objAssign(this.dataList[ind], data);
|
|
|
|
|
|
+ const ind = this.dataList.findIndex(
|
|
|
|
+ item => item.levelCode === data.levelCode
|
|
|
|
+ );
|
|
|
|
+ const row = this.$objAssign(this.dataList[ind], data);
|
|
|
|
+ this.dataList.splice(ind, 1, row);
|
|
},
|
|
},
|
|
rateChange() {
|
|
rateChange() {
|
|
this.$emit("data-change", this.dataList);
|
|
this.$emit("data-change", this.dataList);
|