File tree Expand file tree Collapse file tree
file_classification_webapi/static/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ function listFileGroupsByFilter() {
1313
1414 // 构造查询参数
1515 let params = new URLSearchParams ( ) ;
16- if ( fileId ) params . append ( 'file_id' , fileId ) ;
17- if ( groupId ) params . append ( 'group_id' , groupId ) ;
16+ if ( fileId ) params . append ( 'file_id' , parseInt ( fileId ) ) ;
17+ if ( groupId ) params . append ( 'group_id' , parseInt ( groupId ) ) ;
1818
1919 // 构造分页参数
2020 const options = {
@@ -24,8 +24,8 @@ function listFileGroupsByFilter() {
2424
2525 // 保存当前条件
2626 currentFileGroupConditions = { } ;
27- if ( fileId ) currentFileGroupConditions . file_id = fileId ;
28- if ( groupId ) currentFileGroupConditions . group_id = groupId ;
27+ if ( fileId ) currentFileGroupConditions . file_id = parseInt ( fileId ) ;
28+ if ( groupId ) currentFileGroupConditions . group_id = parseInt ( groupId ) ;
2929
3030 // 标记使用filter查询
3131 currentFileGroupQueryType = 'filter' ;
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ function listGroupRelationsByFilter() {
1414
1515 // 构造查询参数
1616 let params = new URLSearchParams ( ) ;
17- if ( firstId ) params . append ( 'first_group_id' , firstId ) ;
18- if ( secondId ) params . append ( 'second_group_id' , secondId ) ;
19- if ( relationType ) params . append ( 'relation_type' , relationType ) ;
17+ if ( firstId ) params . append ( 'first_group_id' , parseInt ( firstId ) ) ;
18+ if ( secondId ) params . append ( 'second_group_id' , parseInt ( secondId ) ) ;
19+ if ( relationType ) params . append ( 'relation_type' , parseInt ( relationType ) ) ;
2020
2121 // 构造分页参数
2222 const options = {
@@ -26,9 +26,9 @@ function listGroupRelationsByFilter() {
2626
2727 // 保存当前条件
2828 currentGroupRelationConditions = { } ;
29- if ( firstId ) currentGroupRelationConditions . first_group_id = firstId ;
30- if ( secondId ) currentGroupRelationConditions . second_group_id = secondId ;
31- if ( relationType ) currentGroupRelationConditions . relation_type = relationType ;
29+ if ( firstId ) currentGroupRelationConditions . first_group_id = parseInt ( firstId ) ;
30+ if ( secondId ) currentGroupRelationConditions . second_group_id = parseInt ( secondId ) ;
31+ if ( relationType ) currentGroupRelationConditions . relation_type = parseInt ( relationType ) ;
3232
3333 // 标记使用filter查询
3434 currentGroupRelationQueryType = 'filter' ;
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ function listGroupTagsByFilter() {
1313
1414 // 构造查询参数
1515 let params = new URLSearchParams ( ) ;
16- if ( groupId ) params . append ( 'group_id' , groupId ) ;
17- if ( tagId ) params . append ( 'tag_id' , tagId ) ;
16+ if ( groupId ) params . append ( 'group_id' , parseInt ( groupId ) ) ;
17+ if ( tagId ) params . append ( 'tag_id' , parseInt ( tagId ) ) ;
1818
1919 // 构造分页参数
2020 const options = {
@@ -24,8 +24,8 @@ function listGroupTagsByFilter() {
2424
2525 // 保存当前条件
2626 currentGroupTagConditions = { } ;
27- if ( groupId ) currentGroupTagConditions . group_id = groupId ;
28- if ( tagId ) currentGroupTagConditions . tag_id = tagId ;
27+ if ( groupId ) currentGroupTagConditions . group_id = parseInt ( groupId ) ;
28+ if ( tagId ) currentGroupTagConditions . tag_id = parseInt ( tagId ) ;
2929
3030 // 标记使用filter查询
3131 currentGroupTagQueryType = 'filter' ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ function listTagsByFilter() {
2424
2525 // 保存当前条件
2626 currentTagConditions = { } ;
27- if ( tagId ) currentTagConditions . id = tagId ;
27+ if ( tagId ) currentTagConditions . id = parseInt ( tagId ) ;
2828 if ( tagName ) currentTagConditions . name = tagName ;
2929
3030 // 标记使用filter查询
You can’t perform that action at this time.
0 commit comments