Update static/script.js
Browse files- static/script.js +2 -2
static/script.js
CHANGED
|
@@ -72,9 +72,9 @@ async function hienThiSoPYCHoanThanh() {
|
|
| 72 |
const data = await res.json();
|
| 73 |
|
| 74 |
if (res.ok && data.tong_so_hoan_thanh !== undefined) {
|
| 75 |
-
document.getElementById("completedRequests").textContent = data.tong_so_hoan_thanh;
|
| 76 |
} else {
|
| 77 |
-
document.getElementById("completedRequests").textContent = "Không
|
| 78 |
}
|
| 79 |
} catch (err) {
|
| 80 |
console.error("Lỗi khi gọi API hoàn thành:", err);
|
|
|
|
| 72 |
const data = await res.json();
|
| 73 |
|
| 74 |
if (res.ok && data.tong_so_hoan_thanh !== undefined) {
|
| 75 |
+
document.getElementById("completedRequests").textContent = data.tong_so_hoan_thanh + " phiếu";
|
| 76 |
} else {
|
| 77 |
+
document.getElementById("completedRequests").textContent = "Không xác định";
|
| 78 |
}
|
| 79 |
} catch (err) {
|
| 80 |
console.error("Lỗi khi gọi API hoàn thành:", err);
|