-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: hubin6 <[email protected]>
- Loading branch information
hubin6
committed
Nov 11, 2017
1 parent
5ec528f
commit 8b0ad63
Showing
47 changed files
with
507 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
62 changes: 42 additions & 20 deletions
62
dashboard-web/src/main/resources/metrics/sample1/chart.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
select stat_date, cast(max(func_value)as signed) as func_value | ||
from T_RESULT | ||
where func_name='在库SKU' | ||
and warehouse_name='#{{warehouse}}' | ||
and date_cycle='#{{dateCycle}}' | ||
and stat_date between DATE_FORMAT(DATE_SUB('#{{sysDate}}',INTERVAL 13 DAY),'%Y/%m/%d') and DATE_FORMAT('#{{sysDate}}','%Y/%m/%d') | ||
group by stat_date order by stat_date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
dashboard-web/src/main/resources/metrics/sample1/number-day.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT '在库SKU数'as f1, '14,300' as v1, | ||
'日环比'as f2, 8.8 as v2, | ||
'周同比'as f3, -4.3 as v3, | ||
'昨日全天'as f4, '13,222' as v4, | ||
'上周同日'as f5, '15,775' as v5 |
5 changes: 5 additions & 0 deletions
5
dashboard-web/src/main/resources/metrics/sample1/number-month.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT '在库SKU数'as f1, '424,367' as v1, | ||
'月环比'as f2, 2.8 as v2, | ||
'年同比'as f3, 4.3 as v3, | ||
'整月数据'as f4, '413,733' as v4, | ||
'去年同月'as f5, '417,662' as v5 |
5 changes: 5 additions & 0 deletions
5
dashboard-web/src/main/resources/metrics/sample1/number-week.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT '在库SKU数'as f1, '104,123' as v1, | ||
'周环比'as f2, 4.8 as v2, | ||
'年同比'as f3, -2.3 as v3, | ||
'整周数据'as f4, '103,468' as v4, | ||
'去年同周'as f5, '105,637' as v5 |
44 changes: 29 additions & 15 deletions
44
dashboard-web/src/main/resources/metrics/sample1/number.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
<v-flex xs6 v-if="data.day"> | ||
<v-flex xs6 v-if="data.value"> | ||
<v-card> | ||
<v-layout row wrap> | ||
<v-flex xs8 box-func-name-tag>{{data.day.f1}}</v-flex> | ||
<v-flex xs4 box-idx-name> | ||
<span>{{data.day.f2}}<br><span class="box-idx-value"><b>{{data.day.v2}}%</b></span> | ||
<div v-if="data.day.v2 > 0" class="trending-up"></div> | ||
<div v-else-if="data.day.v2 == 0" class="trending-flat"></div> | ||
<div v-else-if="data.day.v2 < 0" class="trending-down"></div></span> | ||
<v-layout row wrap @click="goDetails('sample1')"> | ||
<v-flex xs8 box-func-name-tag>{{data.value.f1}}</v-flex> | ||
<v-flex xs4> | ||
<v-layout row wrap> | ||
<v-flex xs12 box-idx-name>{{data.value.f2}}</v-flex> | ||
<v-flex xs9 box-idx-value>{{data.value.v2}}%</v-flex> | ||
<v-flex xs3 text-xs-left> | ||
<div v-if="data.value.v2 > 0" class="trending-up"></div> | ||
<div v-else-if="data.value.v2 == 0" class="trending-flat"></div> | ||
<div v-else-if="data.value.v2 < 0" class="trending-down"></div> | ||
</v-flex> | ||
</v-layout> | ||
</v-flex> | ||
<v-flex xs8 box-func-value-tag><b>{{data.day.v1}}</b></v-flex> | ||
<v-flex xs4 box-idx-name> | ||
<span>{{data.day.f3}}<br><span class="box-idx-value"><b>{{data.day.v3}}%</b></span> | ||
<div v-if="data.day.v3 > 0" class="trending-up"></div> | ||
<div v-else-if="data.day.v3 == 0" class="trending-flat"></div> | ||
<div v-else-if="data.day.v3 < 0" class="trending-down"></div></span> | ||
<v-flex xs8> | ||
<v-layout row wrap> | ||
<v-flex xs12 box-func-value-tag><b>{{data.value.v1}}</b></v-flex> | ||
<v-flex xs9 under-bar></v-flex> | ||
</v-layout> | ||
</v-flex> | ||
<v-flex xs4> | ||
<v-layout row wrap> | ||
<v-flex xs12 box-idx-name>{{data.value.f3}}</v-flex> | ||
<v-flex xs9 box-idx-value>{{data.value.v3}}%</v-flex> | ||
<v-flex xs3 text-xs-left> | ||
<div v-if="data.value.v3 > 0" class="trending-up"></div> | ||
<div v-else-if="data.value.v3 == 0" class="trending-flat"></div> | ||
<div v-else-if="data.value.v3 < 0" class="trending-down"></div> | ||
</v-flex> | ||
</v-layout> | ||
</v-flex> | ||
<v-flex xs6 under-bar></v-flex> | ||
</v-layout> | ||
</v-card> | ||
</v-flex> |
Oops, something went wrong.