修改bug

This commit is contained in:
b110212000 2021-07-19 12:53:04 +08:00
parent 0348d28998
commit f4c2b2368c
2 changed files with 5 additions and 4 deletions

View File

@ -173,7 +173,8 @@
var stationOverview; var stationOverview;
var recode; var recode;
var selected_work_type = -1; var selected_work_type = -1;
var err_status = 0;//異常紀錄0:為解決 1:已解決 var err_status = 1;//異常紀錄1:未解決 0:已解決
var err_status = 1;//異常紀錄1:未解決 0:已解決
var groupType = 0; //0:日 1:月 2:年 3:歷年 var groupType = 0; //0:日 1:月 2:年 3:歷年
var historyRange = ""; var historyRange = "";
var selectInverterkwhBarType = 0; var selectInverterkwhBarType = 0;
@ -1559,7 +1560,7 @@
//#region 改變項目(運維) //#region 改變項目(運維)
function ChangeType(type) { function ChangeType(type) {
err_status = type; Type = type;
for (var i = 0; i < 4; i++) { for (var i = 0; i < 4; i++) {
var name = "button" + i; var name = "button" + i;
document.getElementById(name).setAttribute("class", "btn btn-secondary waves-effect waves-themed"); document.getElementById(name).setAttribute("class", "btn btn-secondary waves-effect waves-themed");

View File

@ -1,8 +1,8 @@
<div class="row mb-5 d-flex justify-content-start"> <div class="row mb-5 d-flex justify-content-start">
<div class="pr-3"> <div class="pr-3">
<div class="btn-group btn-group-md"> <div class="btn-group btn-group-md">
<button type="button" class="btn btn-success waves-effect waves-themed" onclick="ChangeStatus(0)" id="errbutton0">未解決</button> <button type="button" class="btn btn-success waves-effect waves-themed" onclick="ChangeStatus(1)" id="errbutton1">未解決</button>
<button type="button" class="btn btn-secondary waves-effect waves-themed" onclick="ChangeStatus(1)" id="errbutton1">己解決</button> <button type="button" class="btn btn-secondary waves-effect waves-themed" onclick="ChangeStatus(0)" id="errbutton0">己解決</button>
</div> </div>
</div> </div>
<div class="pr-3"> <div class="pr-3">