Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
devezhao committed Mar 14, 2024
1 parent 4fb3632 commit da12886
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/main/resources/web/assets/css/view-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ body {
padding: 41px 0;
}

.view-body.loading .main-content {
display: none;
}

.view-body.loading .view-header > .header-icon::before {
animation: flash 2s infinite;
}

.tab-container {
margin-top: -8px;
padding-right: 4px;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/assets/js/general/rb-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ const RbViewPage = {

renderRbcomp(<RbViewForm entity={entity[0]} id={id} onViewEditable={ep && ep.U} />, 'tab-rbview', function () {
RbViewPage._RbViewForm = this
setTimeout(() => $('.main-content>.row.hide').removeClass('hide'), 100)
setTimeout(() => $('.view-body.loading').removeClass('loading'), 100)
})

$('.J_close').on('click', () => this.hide())
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/web/general/detail-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" th:href="@{/assets/css/view-page.css}" />
<title th:text="${entityLabel}"></title>
</head>
<body class="view-body">
<body class="view-body loading">
<div class="view-header">
<i class="header-icon zmdi" th:classappend="|zmdi-${entityIcon}|"></i>
<h3 class="title" th:text="${bundle.L('%s详情', entityLabel)}"></h3>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/web/general/record-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" type="text/css" th:href="@{/assets/css/view-page.css}" />
<title th:text="${entityLabel}"></title>
</head>
<body class="view-body">
<body class="view-body loading">
<div class="view-header">
<i class="header-icon zmdi" th:classappend="|zmdi-${entityIcon}|"></i>
<h3 class="title" th:text="${bundle.L('%s详情', entityLabel)}"></h3>
Expand All @@ -23,7 +23,7 @@ <h3 class="title" th:text="${bundle.L('%s详情', entityLabel)}"></h3>
</span>
</div>
<div class="main-content container-fluid">
<div class="row hide">
<div class="row">
<div class="col-12 col-md-9">
<div class="tab-container">
<ul class="nav nav-tabs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ void testDateFunc() {
}

@Test
void testRepe() {
void testRep() {
JSONObject filterExp = new JSONObject();
filterExp.put("entity", TestAllFields);
JSONArray items = new JSONArray();
filterExp.put("items", items);

items.add(JSON.parseObject("{ op:'REPE', field:'TestAllFieldsName', value:2 }"));
items.add(JSON.parseObject("{ op:'REP', field:'TestAllFieldsName', value:2 }"));
System.out.println(new AdvFilterParser(filterExp).toSqlWhere());
}
}

0 comments on commit da12886

Please sign in to comment.