fix: Korsum右侧table展示问题,及如果先选中核素再点Analysis会出现右侧table没值的问题

This commit is contained in:
Xu Zhimeng 2023-12-12 15:58:11 +08:00
parent d77247a262
commit 570ac48c5d
2 changed files with 11 additions and 5 deletions

View File

@ -15,13 +15,16 @@ export default {
text: Number, text: Number,
}, },
watch: { watch: {
text(newValue, oldValue) { text: {
handler(newValue, oldValue) {
this.value = newValue this.value = newValue
} },
immediate: true,
},
}, },
data() { data() {
return { return {
value: "", value: '',
editable: false, editable: false,
} }
}, },

View File

@ -221,7 +221,7 @@ export default {
list: [], list: [],
nuclideList: [], nuclideList: [],
selectedItem: {}, // output selectedItem: null, // output
outputTableList: [], // output outputTableList: [], // output
filterWord: '', // filterWord: '', //
@ -300,6 +300,9 @@ export default {
this.isLoading = false this.isLoading = false
if (success) { if (success) {
this.analyseData = result this.analyseData = result
if(this.selectedItem) {
this.handleOutputItemClick(this.selectedItem)
}
} else { } else {
this.$message.error(message) this.$message.error(message)
} }