WuChuSheng1 commented on code in PR #274:
URL:
https://github.com/apache/skywalking-banyandb/pull/274#discussion_r1205654524
##########
ui/src/components2/Read/index.vue:
##########
@@ -185,14 +201,23 @@ function getTableData() {
data.tableData = []
data.loading = true
setTableParam()
- let paramList = param
+ let paramList = JSON.parse(JSON.stringify(param))
+ if(data.type == 'measure') {
+ paramList.tagProjection = paramList.projection
+ delete paramList.projection
+ }
/* paramList.offset = data.queryInfo.pagenum
paramList.limit = data.queryInfo.pagesize */
paramList.metadata = data.resourceData.metadata
- getTableList(paramList)
+ getTableList(paramList, data.type)
.then((res) => {
if (res.status == 200) {
- setTableData(res.data.elements)
+ if(data.type == 'stream') {
+ setTableData(res.data.elements)
+ } else {
+ setTableData(res.data.dataPoints)
Review Comment:
I will improve it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]