Merge branch 'dev' into pr@dev_memory_component

This commit is contained in:
dataeaseShu 2022-12-26 17:40:38 +08:00
commit a1c49d2c54
3 changed files with 5 additions and 2 deletions

View File

@ -1121,7 +1121,7 @@ public class SqlserverQueryProvider extends QueryProvider {
whereValue = "'%" + value.get(0) + "%'";
} else if (StringUtils.containsIgnoreCase(request.getOperator(), "between")) {
if (request.getDatasetTableField().getDeType() == DeTypeConstants.DE_TIME) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String startTime = simpleDateFormat.format(new Date(Long.parseLong(value.get(0))));
String endTime = simpleDateFormat.format(new Date(Long.parseLong(value.get(1))));
whereValue = String.format(SqlServerSQLConstants.WHERE_BETWEEN, startTime, endTime);

View File

@ -413,7 +413,8 @@ export default {
}
},
created() {
if (this.canvasId === 'canvas-main') {
//
if (this.canvasId === 'canvas-main' && !this.showPosition.includes('multiplexing')) {
listenGlobalKeyDownPreview()
}
//

View File

@ -74,6 +74,8 @@ export function listenGlobalKeyDown() {
export function listenGlobalKeyDownPreview() {
window.onkeydown = (e) => {
const { keyCode } = e
e.preventDefault()
e.stopPropagation()
if (keyCode === ctrlKey || keyCode === commandKey) {
isCtrlOrCommandDown = true
} else if (isCtrlOrCommandDown) {