[Frontend] 修改歷史紀錄的日曆樣式 | 報表管理新增單位
This commit is contained in:
parent
655ad8e589
commit
04bc7fa53e
@ -40,7 +40,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input class="form-control" id="his_startdate" data-val="" type="date" name="date" value="">
|
<input class="form-control flatpickr flatpickr-input selectDate" id="his_startdate" data-val="" type="date" name="date" value="">
|
||||||
<input class="form-control" id="getmonth" type="month" style="display: none" />
|
<input class="form-control" id="getmonth" type="month" style="display: none" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -75,14 +75,13 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var historyTable = null;
|
var historyTable = null;
|
||||||
var buildingTag = null;
|
var buildingTag = null;
|
||||||
pageAct.hisBuiName = "";
|
pageAct.hisBuiName = "";
|
||||||
hisFirst = true;
|
hisFirst = true;
|
||||||
$(function () {
|
$(function () {
|
||||||
console.log(1);
|
flatpickr(".selectDate", {});
|
||||||
let html = "";
|
let html = "";
|
||||||
for (let building of pageAct.buildList) {
|
for (let building of pageAct.buildList) {
|
||||||
html += `<label class="btn btn-secondary">
|
html += `<label class="btn btn-secondary">
|
||||||
|
@ -171,7 +171,7 @@
|
|||||||
<button type="button" class="btn btn-danger ml-2" onclick="CleanAll()">全部清除</button>
|
<button type="button" class="btn btn-danger ml-2" onclick="CleanAll()">全部清除</button>
|
||||||
<button type="button" class="btn btn-info allbtn ml-2" onclick="LookRealTime()">查看即時資訊</button> -->
|
<button type="button" class="btn btn-info allbtn ml-2" onclick="LookRealTime()">查看即時資訊</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
<span class="d-flex justify-content-end">單位:kWh </span>
|
||||||
<table id="report_table"
|
<table id="report_table"
|
||||||
class="table table-bordered table-striped text-center m-0"></table>
|
class="table table-bordered table-striped text-center m-0"></table>
|
||||||
</div>
|
</div>
|
||||||
@ -799,11 +799,18 @@
|
|||||||
title: "單價",
|
title: "單價",
|
||||||
data: "price",
|
data: "price",
|
||||||
sWidth: "45px",
|
sWidth: "45px",
|
||||||
|
render: function (data) {
|
||||||
|
return parseInt(data) === 0 ? "" : data;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "金額總計",
|
title: "金額總計",
|
||||||
data: "total_price",
|
data: "total_price",
|
||||||
sWidth: "70px",
|
sWidth: "70px",
|
||||||
|
render: function (data) {
|
||||||
|
console.log(data)
|
||||||
|
return parseInt(data) === 0 ? "" : data;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const tableType = $("li.active [name=reportTypeRadio]").data("value");
|
const tableType = $("li.active [name=reportTypeRadio]").data("value");
|
||||||
|
@ -77,6 +77,8 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="lib\bootstrap-datepicker\bootstrap-datepicker.min.css"
|
href="lib\bootstrap-datepicker\bootstrap-datepicker.min.css"
|
||||||
type="text/css" />
|
type="text/css" />
|
||||||
|
<link rel="stylesheet"
|
||||||
|
href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css" />
|
||||||
</head>
|
</head>
|
||||||
<!-- BEGIN Body -->
|
<!-- BEGIN Body -->
|
||||||
<!-- Possible Classes
|
<!-- Possible Classes
|
||||||
@ -818,6 +820,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
+ smartpanels.js (extension)
|
+ smartpanels.js (extension)
|
||||||
+ src/../jquery-snippets.js (core) -->
|
+ src/../jquery-snippets.js (core) -->
|
||||||
<!-- verdors.bundle.js 已含有 jquery Library v3.5.1-->
|
<!-- verdors.bundle.js 已含有 jquery Library v3.5.1-->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
|
||||||
<script src="lib/vendors.bundle.js"></script>
|
<script src="lib/vendors.bundle.js"></script>
|
||||||
<!-- toast 第三方套件 若 require 此套件只能用 define 使用,先暫時 html 引用-->
|
<!-- toast 第三方套件 若 require 此套件只能用 define 使用,先暫時 html 引用-->
|
||||||
<script src="lib/notifications/toastr/toastr.min.js"></script>
|
<script src="lib/notifications/toastr/toastr.min.js"></script>
|
||||||
@ -852,7 +855,6 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
<script src="js/n4js/elevatorbaja.js"></script>
|
<script src="js/n4js/elevatorbaja.js"></script>
|
||||||
<script src="js/bajascript/require.config.js"></script>
|
<script src="js/bajascript/require.config.js"></script>
|
||||||
<script src="js/FileSaver.js"></script>
|
<script src="js/FileSaver.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/*$('#js-page-content').smartPanel();*/
|
/*$('#js-page-content').smartPanel();*/
|
||||||
var cookies = null;
|
var cookies = null;
|
||||||
@ -2048,7 +2050,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li
|
|||||||
<a href="javascript:;" id="sysMonTopBtn" class="text-center dropdown-toggle" data-toggle="dropdown" data-tabname="topFunBtn" class="text-center">
|
<a href="javascript:;" id="sysMonTopBtn" class="text-center dropdown-toggle" data-toggle="dropdown" data-tabname="topFunBtn" class="text-center">
|
||||||
<i class="fal fa-tv fa-2x"></i><br>${v.subName}
|
<i class="fal fa-tv fa-2x"></i><br>${v.subName}
|
||||||
</a>
|
</a>
|
||||||
<div style="transform: translateY(55px)">
|
<div style="transform: translateY(5%)">
|
||||||
<div class="dropdown-menu dropdown-menu-right sys_building_dropdown_menu" >
|
<div class="dropdown-menu dropdown-menu-right sys_building_dropdown_menu" >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user