Skip to content

Commit

Permalink
fix(data): get the type of tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and ysfscream committed Jan 12, 2022
1 parent 237c554 commit ca4e38f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/pages/menus/Status/dataMonitoring.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,14 @@ export default {
const canUseTableKey = tableKeyWithTimeStamp.filter((i) => i !== 'tstp')
this.count = canUseTableKey.length
const currentTableKey = paginateWithTimeStamp(tableKeyWithTimeStamp, this.pageSize, this.page)
currentTableKey.forEach((i) => {
const checked = this.multipleSelection.find((j) => j.prop === i)
const type = (this.currentAttrList[i] || {}).oatt || 'word'
currentTableKey.forEach((key) => {
const checked = this.multipleSelection.find((j) => j.prop === key)
const type = (this.currentAttrList.find(({ attn }) => attn === key) || {}).attt || 'word'
console.log(type)
data.push({
prop: i === 'tstp' ? 'Time' : i,
val: this.tableData[0][i],
writable: this.currentWritableData ? !!this.currentWritableData[i] : false,
prop: key === 'tstp' ? 'Time' : key,
val: this.tableData[0][key],
writable: this.currentWritableData ? !!this.currentWritableData[key] : false,
checked: checked ? checked.check : false,
type,
})
Expand Down

0 comments on commit ca4e38f

Please sign in to comment.