|
@@ -222,7 +222,11 @@ userManagementLink.addEventListener('click', function(event) {
|
|
|
|
|
|
licenseInfoLink.addEventListener('click', function(event) {
|
|
|
event.preventDefault();
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+const container = document.createElement('div');
|
|
|
+
|
|
|
+
|
|
|
|
|
|
const licenseInfoHtml = `
|
|
|
<!-- 包裹搜索框、下拉框、时间选择框和确定按钮的 div -->
|
|
@@ -242,14 +246,27 @@ licenseInfoLink.addEventListener('click', function(event) {
|
|
|
<input type="date" id="end-date" placeholder="结束时间" />
|
|
|
|
|
|
<!-- 搜索框 -->
|
|
|
- <input type="text" id="search-bar" style="display: none; placeholder="搜索..." />
|
|
|
-
|
|
|
+ <input type="text" id="search-bar" style="display: none;" placeholder="搜索..." />
|
|
|
+
|
|
|
<!-- 确定按钮 -->
|
|
|
<button id="submit-button">确定</button>
|
|
|
+ <button id="reset-button">返回</button>
|
|
|
</div>
|
|
|
- <div class="license-info-container" " id="license-info-restaurant-list"> </div>
|
|
|
+ <div class="license-info-container" id="license-info-restaurant-list"> </div>
|
|
|
`; // 这是原来的 License 信息区域 HTML
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ license_info_mainElement.innerHTML = licenseInfoHtml;
|
|
|
searchBar = document.getElementById('search-bar');
|
|
|
statusFilter = document.getElementById('license-status-filter');
|
|
|
startDate = document.getElementById('start-date');
|
|
@@ -259,8 +276,6 @@ licenseInfoLink.addEventListener('click', function(event) {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
- license_info_mainElement.innerHTML = licenseInfoHtml;
|
|
|
|
|
|
LicApplicationData = [];
|
|
|
initializeScrollListeners();
|
|
@@ -277,7 +292,7 @@ licenseInfoLink.addEventListener('click', function(event) {
|
|
|
})();
|
|
|
|
|
|
|
|
|
-
|
|
|
+ location.reload();
|
|
|
});
|
|
|
|
|
|
roleManagementLink.addEventListener('click', function(event) {
|
|
@@ -605,8 +620,10 @@ async function fetchPermissionsByRole(role) {
|
|
|
}else if (hasReadUserPermission){
|
|
|
document.getElementById('user-management-link').click();
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|