| @@ -190,8 +190,7 @@ limitations under the License. | |||||
| 'tag-active': index == scope.row.activeLabelIndex, | 'tag-active': index == scope.row.activeLabelIndex, | ||||
| 'tag-tp': tag.type == 'tp', | 'tag-tp': tag.type == 'tp', | ||||
| 'tag-fn': tag.type == 'fn', | 'tag-fn': tag.type == 'fn', | ||||
| 'tag-fp': tag.type == 'fp', | |||||
| 'tag-tn': tag.type == 'tn' | |||||
| 'tag-fp': tag.type == 'fp' | |||||
| }" | }" | ||||
| @click="changeActiveLabel(scope.row, index)"> | @click="changeActiveLabel(scope.row, index)"> | ||||
| <div class="first">{{ tag.label }}</div> | <div class="first">{{ tag.label }}</div> | ||||
| @@ -227,8 +226,7 @@ limitations under the License. | |||||
| 'tag-active': index == scope.row.activeLabelIndex, | 'tag-active': index == scope.row.activeLabelIndex, | ||||
| 'tag-tp': tag.type == 'tp', | 'tag-tp': tag.type == 'tp', | ||||
| 'tag-fn': tag.type == 'fn', | 'tag-fn': tag.type == 'fn', | ||||
| 'tag-fp': tag.type == 'fp', | |||||
| 'tag-tn': tag.type == 'tn' | |||||
| 'tag-fp': tag.type == 'fp' | |||||
| }" | }" | ||||
| @click="changeActiveLabel(scope.row, index)"> | @click="changeActiveLabel(scope.row, index)"> | ||||
| <div></div> | <div></div> | ||||
| @@ -584,25 +582,31 @@ export default { | |||||
| */ | */ | ||||
| queryPageInfo(params) { | queryPageInfo(params) { | ||||
| this.queryParameters = params; | this.queryParameters = params; | ||||
| this.ifTableLoading = true; | |||||
| requestService.queryPageInfo(params) | requestService.queryPageInfo(params) | ||||
| .then( | .then( | ||||
| (res) => { | (res) => { | ||||
| if (res && res.data && res.data.samples) { | if (res && res.data && res.data.samples) { | ||||
| if (this.minConfidence === '--') { | if (this.minConfidence === '--') { | ||||
| this.tableData = this.processTableData(res.data.samples, false); | this.tableData = this.processTableData(res.data.samples, false); | ||||
| this.pageInfo.total = res.data.count !== undefined ? res.data.count : 0; | |||||
| } else { | } else { | ||||
| this.tableData = this.processTableData(res.data.samples, this.minConfidence); | this.tableData = this.processTableData(res.data.samples, this.minConfidence); | ||||
| this.pageInfo.total = res.data.count !== undefined ? res.data.count : 0; | |||||
| } | } | ||||
| } else { | |||||
| this.pageInfo.total = 0; | |||||
| } | } | ||||
| this.ifError = false; | |||||
| this.ifTableLoading = false; | this.ifTableLoading = false; | ||||
| }, | }, | ||||
| (error) => { | (error) => { | ||||
| this.ifTableLoading = false; | |||||
| this.ifError = true; | |||||
| this.ifTableLoading = true; | |||||
| }, | }, | ||||
| ) | ) | ||||
| .catch((e) => { | .catch((e) => { | ||||
| this.ifTableLoading = false; | |||||
| this.ifError = true; | |||||
| this.ifTableLoading = true; | |||||
| }); | }); | ||||
| }, | }, | ||||
| /** | /** | ||||