发布新版本v20250422120008

This commit is contained in:
ui-beam-9
2025-04-22 12:20:44 +08:00
parent 5faaeb3891
commit 21e4a46357
10 changed files with 331 additions and 768 deletions

View File

@@ -570,18 +570,18 @@
</div>
<div class="form-group">
<label>Breeze工单系统 Cookie</label>
<input type="text" name="breeze_cookie" placeholder="请输入Breeze系统Cookie" required>
<label>Breeze工单系统 Cookie(可选)</label>
<input type="text" name="breeze_cookie" placeholder="请输入Breeze系统Cookie(可选)">
<div style="color: #ff4d4f; font-size: 12px; margin-top: 5px;">
必填项
此选项可填可不填适用于您需要监控Breeze系统工单的情况
</div>
</div>
<div class="form-group">
<label>CMS系统 Cookie</label>
<input type="text" name="cms_cookie" placeholder="请输入CMS系统Cookie" required>
<label>CMS系统 Cookie(可选)</label>
<input type="text" name="cms_cookie" placeholder="请输入CMS系统Cookie(可选)">
<div style="color: #ff4d4f; font-size: 12px; margin-top: 5px;">
必填项
此选项可填可不填适用于您需要监控CMS系统操作的情况
</div>
</div>
@@ -593,6 +593,10 @@
</div>
</div>
<div class="form-info" style="background-color: #fffbe6; border: 1px solid #ffe58f; padding: 10px; border-radius: 4px; margin-bottom: 15px;">
<p style="margin: 0; color: #d48806; font-size: 13px;">请至少填写一项系统Cookie否则无法获取任何审核数据</p>
</div>
<div class="cookie-guide">
<a href="http://cos.ui-beam.com/work_scripts/monitor/cookie-extension/README.html" target="_blank">如何获取Cookie点击查看详细指南</a>
</div>
@@ -630,6 +634,16 @@
const formData = new FormData(this);
// 检查是否至少有一个Cookie填写了
const breezeCookie = formData.get('breeze_cookie');
const cmsCookie = formData.get('cms_cookie');
const inspectCookie = formData.get('inspect_cookie');
if (!breezeCookie && !cmsCookie && !inspectCookie) {
showMessage('error', '请至少填写一个系统的Cookie');
return;
}
fetch('/login', {
method: 'POST',
body: formData
@@ -654,4 +668,4 @@
});
</script>
</body>
</html>
</html>