File tree 2 files changed +12
-3
lines changed
plugins/systemlogs/frontend/public
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 210
210
return x < y ? - 1 : x > y ? 1 : 0 ;
211
211
} ) ;
212
212
return arr ;
213
+ } ,
214
+ handleTableRowClick : function ( row ) {
215
+ // Only expand row if text inside of it are not highlighted
216
+ if ( window . getSelection ( ) . toString ( ) . length === 0 ) {
217
+ this . $refs . table . $refs . elTable . toggleRowExpansion ( row ) ;
218
+ }
219
+ } ,
220
+ tableRowClassName : function ( ) {
221
+ return 'bu-is-clickable' ;
213
222
}
214
223
}
215
224
} ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ <h2> {{i18n('systemlogs.title')}} </h2>
10
10
< cly-main >
11
11
< cly-date-picker-g class ="bu-mb-4 "> </ cly-date-picker-g >
12
12
< cly-section class ="bu-mt-4 ">
13
- < cly-datatable-n :data-source ="remoteTableDataSource " :export-api ="getExportAPI " :default-sort ="{prop: 'ts', order: 'descending'} ">
13
+ < cly-datatable-n :data-source ="remoteTableDataSource " :export-api ="getExportAPI " :default-sort ="{prop: 'ts', order: 'descending'} " @row-click =" handleTableRowClick " ref =" table " :row-class-name =" tableRowClassName " >
14
14
< template v-slot ="scope ">
15
15
< el-table-column type ="expand ">
16
16
< template slot-scope ="rowScope ">
@@ -43,14 +43,14 @@ <h2> {{i18n('systemlogs.title')}} </h2>
43
43
< template v-slot:header-left >
44
44
< cly-select-x
45
45
:search-placeholder ="i18n('common.search') "
46
- placeholder =""
46
+ placeholder =""
47
47
v-model ="selectAction "
48
48
v-on:change ="changeAction "
49
49
:options ="allActions ">
50
50
</ cly-select-x >
51
51
< cly-select-x
52
52
:search-placeholder ="i18n('common.search') "
53
- placeholder =""
53
+ placeholder =""
54
54
v-model ="selectUser "
55
55
v-on:change ="changeUser "
56
56
:options ="allUsers " class ="bu-ml-4 ">
You can’t perform that action at this time.
0 commit comments