Skip to content

Commit 4397c13

Browse files
committed
Java:MultiDataSource 解决 UnitAuto, CVAuto 回车刷新用例列表查不到最新测试记录
1 parent a242f6c commit 4397c13

File tree

3 files changed

+9
-2
lines changed
  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static

3 files changed

+9
-2
lines changed

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/cv/js/main.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8878,6 +8878,9 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
88788878

88798879
if (isEnter) { // enter
88808880
if (isFilter) {
8881+
if (['chainGroup', 'caseGroup', 'testCase', 'random', 'randomSub'].indexOf(type) >= 0) {
8882+
this.reportId = 0;
8883+
}
88818884
this.onFilterChange(type)
88828885
return
88838886
}

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/ui/js/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,9 +1949,9 @@
19491949
'Flow': {
19501950
'@order': 'time-',
19511951
'userId{}': [0, App.User.id],
1952-
'name$*~': search,
1952+
'name*~': search,
19531953
'detail*~': search,
1954-
'@combine': StringUtil.isEmpty(search) ? null : 'name$*~,detail*~'
1954+
'@combine': StringUtil.isEmpty(search) ? null : 'name*~,detail*~'
19551955
},
19561956
'Device': {
19571957
'id@': '/Flow/deviceId'

APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/unit/js/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5842,6 +5842,7 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
58425842
if (isFilter && type == 'caseGroup') {
58435843
this.isCaseGroupEditable = true
58445844
}
5845+
58455846
var obj = event.srcElement ? event.srcElement : event.target;
58465847
if ($(obj).attr('id') == 'vUrl') {
58475848
vUrlComment.value = ''
@@ -5851,6 +5852,9 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
58515852

58525853
if (keyCode == 13) { // enter
58535854
if (isFilter) {
5855+
if (['chainGroup', 'caseGroup', 'testCase', 'random', 'randomSub'].indexOf(type) >= 0) {
5856+
this.reportId = 0;
5857+
}
58545858
this.onFilterChange(type)
58555859
return
58565860
}

0 commit comments

Comments
 (0)