Update static/script.js
Browse files- static/script.js +6 -6
static/script.js
CHANGED
|
@@ -78,15 +78,15 @@ function chonMuc(muc) {
|
|
| 78 |
const noiDung = document.getElementById("noiDungBang");
|
| 79 |
|
| 80 |
if (muc === "cho_xu_ly") {
|
| 81 |
-
document.getElementById("choXuLy").style.display = "flex";
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
document.getElementById("pycCount_detail").textContent = data.tong_dang_xu_ly || data.tong_so_pyc || "Không tải được";
|
| 85 |
document.getElementById("bangChiTiet").style.display = "block";
|
| 86 |
document.getElementById("tieuDeBang").textContent = "Danh sách phiếu chờ xử lý";
|
| 87 |
-
hienThiBangTuAPI("/ds_pyc_cho_xu_ly", document.getElementById("noiDungBang"));
|
| 88 |
-
}
|
| 89 |
|
|
|
|
|
|
|
|
|
|
| 90 |
else if (muc === "completedRequests") {
|
| 91 |
document.getElementById("daHoanThanh").style.display = "flex";
|
| 92 |
const res = await fetch("/dem_pyc_hoan_thanh");
|
|
|
|
| 78 |
const noiDung = document.getElementById("noiDungBang");
|
| 79 |
|
| 80 |
if (muc === "cho_xu_ly") {
|
| 81 |
+
document.getElementById("choXuLy").style.display = "flex"; // hiện số
|
| 82 |
+
hienThiDanhSachPYC(); // cập nhật số
|
| 83 |
+
|
|
|
|
| 84 |
document.getElementById("bangChiTiet").style.display = "block";
|
| 85 |
document.getElementById("tieuDeBang").textContent = "Danh sách phiếu chờ xử lý";
|
|
|
|
|
|
|
| 86 |
|
| 87 |
+
const noiDung = document.getElementById("noiDungBang");
|
| 88 |
+
hienThiBangTuAPI("/ds_pyc_cho_xu_ly", noiDung);
|
| 89 |
+
}
|
| 90 |
else if (muc === "completedRequests") {
|
| 91 |
document.getElementById("daHoanThanh").style.display = "flex";
|
| 92 |
const res = await fetch("/dem_pyc_hoan_thanh");
|