Spaces:
Sleeping

doluong6 commited on
Commit
bf0eb9a
·
verified ·
1 Parent(s): afa03bc

Update static/script.js

Browse files
Files changed (1) hide show
  1. static/script.js +10 -0
static/script.js CHANGED
@@ -49,11 +49,21 @@ async function hienThiPYCChoXuLy() {
49
 
50
  // Gọi khi click vào menu
51
  function chonMuc(muc) {
 
 
 
52
  if (muc === "cho_xu_ly") {
53
  hienThiPYCChoXuLy();
 
 
 
 
 
 
54
  }
55
  }
56
 
 
57
  // Xử lý mở rộng / thu gọn submenu
58
  function toggleSubmenu(id) {
59
  const allMenus = document.querySelectorAll(".submenu");
 
49
 
50
  // Gọi khi click vào menu
51
  function chonMuc(muc) {
52
+ // Ẩn tất cả .fade-in nếu có
53
+ document.querySelectorAll(".fade-in").forEach(el => el.style.display = "none");
54
+
55
  if (muc === "cho_xu_ly") {
56
  hienThiPYCChoXuLy();
57
+ } else if (muc === "completedRequests") {
58
+ hienThiDaHoanThanh();
59
+ } else if (muc === "requestRevenue") {
60
+ hienThiDoanhThuPYC();
61
+ } else if (muc === "pyc") {
62
+ hienThiDanhSachPYC();
63
  }
64
  }
65
 
66
+
67
  // Xử lý mở rộng / thu gọn submenu
68
  function toggleSubmenu(id) {
69
  const allMenus = document.querySelectorAll(".submenu");