File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
apps/application/serializers Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ def to_row(row: Dict):
176176 paragraph_list = details .get ('search_step' ).get (
177177 'paragraph_list' ) if 'search_step' in details and 'paragraph_list' in details .get ('search_step' ) else []
178178 for key , node in details .items ():
179- if node .get ('type' ) == 'search-dataset-node' :
179+ if node .get ('type' ) == 'search-dataset-node' and node .get ('paragraph_list' ) is not None and len (
180+ node .get ('paragraph_list' )) > 0 :
180181 paragraph_list = node .get ('paragraph_list' )
181182 improve_paragraph_list = row .get ('improve_paragraph_list' )
182183 vote_status_map = {'-1' : '未投票' , '0' : '赞同' , '1' : '反对' }
Original file line number Diff line number Diff line change 3838 <app-table
3939 :data =" tableData"
4040 :pagination-config =" paginationConfig"
41- @sizeChange =" handleSizeChange "
41+ @sizeChange =" getList "
4242 @changePage =" getList"
4343 @row-click =" rowClickHandle"
4444 v-loading =" loading"
@@ -362,13 +362,7 @@ function deleteLog(row: any) {
362362 .catch (() => {})
363363}
364364
365- function handleSizeChange() {
366- paginationConfig .current_page = 1
367- getList ()
368- }
369-
370365function getList() {
371- paginationConfig .current_page = 1
372366 let obj: any = {
373367 start_time: daterange .value .start_time ,
374368 end_time: daterange .value .end_time ,
You can’t perform that action at this time.
0 commit comments