From 8de14edf9d8090314e01acecab92a3278cc1bb25 Mon Sep 17 00:00:00 2001 From: bwstudio <7469504@qq.com> Date: Thu, 18 Sep 2025 08:12:15 +0800 Subject: [PATCH] 20250918 --- car_info.db | Bin 36864 -> 36864 bytes templates/query.html | 14 +++++++------- templates/users_management.html | 24 ++++++++++++------------ 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/car_info.db b/car_info.db index eeb643cc403708bcadebca1c5148088973516bf8..4a964b0903b47c587f7eeca26cc51b6e4e1d337c 100644 GIT binary patch delta 1388 zcmaJ>%WD%s7~iH;(&n+P=_`F@#X}lOrt{72?9QYwY!wka_99*ysHdu+K|F4?b8Eqt z2qJi>;6aK9Z4gQ>3O#s}9t5u*+S>jDp8YnP&8yKQ41wL>{$Ag=>${=#-O%=EM`mYi zsU!1g<;g-QWR!j`OdI4-)4%E)`c3^({9Al0emfqEeUEL&mSY3aAJJFQJJE^AugGp> zH8R=rr{}QL*IVduyY6a3W-=L0-C921c+V)~St_&O7~tfnGQxN@G0=Kd7}U;jnWKEw z{{V9c#V<^&R0Wb~4-q-;p6>50HbEH&!YG|l z$>Pyk(rr-rd;i^%?FdN&7Q7RLom0bAjp>tv=O=H<4H_E)y+DKxxtv!+en8z*EdhzF z2?lksbiWSa)!`ihI|xA-W3y_o8gcqUM3mKhf|QOexk()nJOEq8#MMCCIswU%+x^EZ zNDPU?jOzEeuV~>`>%RJ`__NIyH!Yy1UDGZ(0aTu-dQZ3Y?x80tqiB2Hy(5qgf)hTg zE*E#!h9+f}`eHq;$K?;#fSDE#ZpHuDr#Ywkit+m+`G%ouGvUG{9E9riBMGOQr^esG zN+N<`nplUdOL7Pkvq~>UAC9NXG@Y%4)v))JrzaTU>?inTA!G3ZKdY8)>)?+DNW_liMIMLl+0jQB`4Z)940!9t#bMDN0^HEBPq5&)V$*k_V=bm%VebaOG({uHY_SAJh z-aAm&y>xD>zrOBI?tA~?sIy?%pY6N$puIivB{CBkiZq7T!ZYEaa3J(GG#fe@3I@Lg z9|TVaTbq6~E#z97Cz>*zycMw8NPByrrivo+gDDDZyIb&SEoB?JI zQXddGrE$AzBjP_qn=AJ6bpg44kZaWnQczD9po{B3e#h{dGFydz{K^6wHSF0 z2JA+Lj5P^{Yn69pa0VU)$t*_Gx9NK*MB0oD{<|uLv ze&hYqA&)aEi~ymSz)Q$pUI3xQAyN*&{7Ud4xjCFPh8XzbaXzrXS1Q@LDj__nf3

Z>%F$v2KM$n_ zBQYqSfN8_^V+{8|S*9dkF_Qlu0lM#qZ30AQR7PY_q}7wp5H@*fc{QyQ&LtHQprT&q(bbOqtU wSdTs82okm|tHEBi?7Y2hujX2!Z|xn;4cn~Nec@Cpr4MQ1_V8qGJ%gJ60-zdeDF6Tf diff --git a/templates/query.html b/templates/query.html index ae9968f..e48c269 100644 --- a/templates/query.html +++ b/templates/query.html @@ -95,7 +95,7 @@ 后台登录信息

- + 退出 @@ -688,7 +688,7 @@ formData.append('new_password', newPassword); formData.append('confirm_password', confirmPassword); - fetch('{{ url_for('change_password') }}', { + fetch('{{ url_for('user.change_password') }}', { method: 'POST', body: formData }) @@ -698,7 +698,7 @@ // 密码修改成功,先执行退出功能,再跳转到登录页面 alert(data.message); // 重定向到退出路由,系统会自动完成退出并跳转到登录页面 - window.location.href = '{{ url_for('logout') }}'; + window.location.href = '{{ url_for('user.logout') }}'; } else if (data.error) { // 显示服务器返回的错误信息 showPasswordError(data.error); @@ -747,7 +747,7 @@ document.getElementById('profileSuccess').classList.add('hidden'); // 加载用户信息 - fetch('{{ url_for('get_user_profile') }}') + fetch('{{ url_for('user.get_user_profile') }}') .then(response => response.json()) .then(data => { if (data.success) { @@ -823,7 +823,7 @@ formData.append('phone', phone); formData.append('department', department); - fetch('{{ url_for('update_user_profile') }}', { + fetch('{{ url_for('user.update_user_profile') }}', { method: 'POST', body: formData }) @@ -940,7 +940,7 @@ {% endif %} // 异步提交修改 - fetch('{{ url_for('update_login_info') }}', { + fetch('{{ url_for('user.update_login_info') }}', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -987,7 +987,7 @@ // 检查用户名是否为admin if (currentUsername === 'admin') { // 如果是admin用户,重定向到用户管理页面 - window.location.href = '{{ url_for('users_management') }}'; + window.location.href = '{{ url_for('user.users_management') }}'; } else { // 如果不是admin用户,显示提示信息 alert('只有管理员才可以进行用户管理'); diff --git a/templates/users_management.html b/templates/users_management.html index 3db1a80..effeb9e 100644 --- a/templates/users_management.html +++ b/templates/users_management.html @@ -85,7 +85,7 @@ 修改密码 - + 用户管理 @@ -95,7 +95,7 @@ 后台登录信息
- + 退出 @@ -491,7 +491,7 @@ // 加载用户列表 function loadUsers() { - fetch('{{ url_for('get_users') }}') + fetch('{{ url_for('user.get_users') }}') .then(response => response.json()) .then(data => { if (data.success) { @@ -583,7 +583,7 @@ const filterDepartment = document.getElementById('filterDepartment').value; const filterStatus = document.getElementById('filterStatus').value; - fetch('{{ url_for('get_users') }}') + fetch('{{ url_for('user.get_users') }}') .then(response => response.json()) .then(data => { if (data.success) { @@ -614,7 +614,7 @@ const confirmMessage = `确定要${newStatus === 'active' ? '启用' : '禁用'}用户 ${username} 吗?`; if (confirm(confirmMessage)) { - fetch('{{ url_for('update_user_status') }}', { + fetch('{{ url_for('user.update_user_status') }}', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -670,7 +670,7 @@ const username = document.getElementById('editUsername').value; const newDepartment = document.getElementById('editUserDepartment').value; - fetch('{{ url_for('update_user_department') }}', { + fetch('{{ url_for('user.update_user_department') }}', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -715,7 +715,7 @@ const userId = document.getElementById('resetUserId').value; const username = document.getElementById('resetUsername').value; - fetch('{{ url_for('reset_user_password') }}', { + fetch('{{ url_for('user.reset_user_password') }}', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -810,7 +810,7 @@ } // 异步提交修改 - fetch('{{ url_for('change_password') }}', { + fetch('{{ url_for('user.change_password') }}', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' @@ -829,7 +829,7 @@ // 3秒后跳转登录页 setTimeout(() => { - window.location.href = '{{ url_for('login') }}'; + window.location.href = '{{ url_for('user.login') }}'; }, 3000); } else { // 显示错误信息 @@ -865,7 +865,7 @@ // 个人信息相关函数 function showUserProfileModal() { // 获取个人信息 - fetch('{{ url_for('get_user_profile') }}') + fetch('{{ url_for('user.get_user_profile') }}') .then(response => response.json()) .then(data => { if (data.success) { @@ -910,7 +910,7 @@ } // 异步提交修改 - fetch('{{ url_for('update_user_profile') }}', { + fetch('{{ url_for('user.update_user_profile') }}', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' @@ -1018,7 +1018,7 @@ {% endif %} // 异步提交修改 - fetch('{{ url_for('update_login_info') }}', { + fetch('{{ url_for('user.update_login_info') }}', { method: 'POST', headers: { 'Content-Type': 'application/json'