Korsum 弹窗右侧表格切换数据不更新的问题
This commit is contained in:
parent
1845a928df
commit
5433dff98d
|
@ -14,9 +14,14 @@ export default {
|
|||
props: {
|
||||
text: Number,
|
||||
},
|
||||
computed: {
|
||||
value() {
|
||||
return this.text
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
value: this.text,
|
||||
// value: this.text,
|
||||
editable: false,
|
||||
}
|
||||
},
|
||||
|
|
|
@ -281,7 +281,6 @@ export default {
|
|||
...this.efficiency,
|
||||
energys: this.list.map((item) => item.energy),
|
||||
})
|
||||
console.log(success)
|
||||
if (success) {
|
||||
this.list = result
|
||||
} else {
|
||||
|
@ -301,7 +300,6 @@ export default {
|
|||
this.isLoading = false
|
||||
if (success) {
|
||||
this.analyseData = result
|
||||
console.log(result)
|
||||
} else {
|
||||
this.$message.error(message)
|
||||
}
|
||||
|
@ -346,15 +344,12 @@ export default {
|
|||
this.outputTableList = result
|
||||
},
|
||||
onCellChange(idx, label, value) {
|
||||
console.log(this.outputTableList)
|
||||
console.log(value)
|
||||
const dataSource = [...this.outputTableList]
|
||||
const target = dataSource.find((item, index) => index == idx)
|
||||
if (target) {
|
||||
target[label] = value
|
||||
this.outputTableList = dataSource
|
||||
}
|
||||
console.log(this.outputTableList)
|
||||
},
|
||||
|
||||
// 导出到excel
|
||||
|
@ -372,7 +367,6 @@ export default {
|
|||
console.log('Cancel')
|
||||
},
|
||||
onCancel() {
|
||||
console.log(_this.fileName)
|
||||
if (_this.fileName) {
|
||||
// saveAs(blob, `${_this.fileName}`)
|
||||
// 创建工作簿
|
||||
|
|
Loading…
Reference in New Issue
Block a user