fix: 完善打包历史与登录提示
This commit is contained in:
@@ -325,7 +325,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>密码 *</label>
|
||||
<input v-model="userForm.password" type="password" placeholder="至少 6 位">
|
||||
<input v-model="userForm.password" type="password" placeholder="至少 12 位">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="checkbox-label">
|
||||
@@ -349,7 +349,7 @@
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>新密码</label>
|
||||
<input v-model="newPassword" type="password" placeholder="至少 6 位">
|
||||
<input v-model="newPassword" type="password" placeholder="至少 12 位">
|
||||
</div>
|
||||
<div style="margin-top: 20px; display: flex; gap: 12px; justify-content: flex-end;">
|
||||
<button class="action-btn" style="padding: 8px 16px;" @click="showPasswordModal = false">取消</button>
|
||||
@@ -650,6 +650,10 @@ const createUser = async () => {
|
||||
alert('请填写用户名和密码')
|
||||
return
|
||||
}
|
||||
if (userForm.value.password.length < 12) {
|
||||
alert('密码至少 12 位')
|
||||
return
|
||||
}
|
||||
try {
|
||||
const res = await authFetch('/api/users', {
|
||||
method: 'POST',
|
||||
@@ -674,8 +678,8 @@ const openPasswordModal = (u) => {
|
||||
}
|
||||
|
||||
const changePassword = async () => {
|
||||
if (!newPassword.value || newPassword.value.length < 6) {
|
||||
alert('密码至少 6 位')
|
||||
if (!newPassword.value || newPassword.value.length < 12) {
|
||||
alert('密码至少 12 位')
|
||||
return
|
||||
}
|
||||
try {
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</span>
|
||||
</td>
|
||||
<td>{{ task.scheme_name }}</td>
|
||||
<td>
|
||||
<td class="status-cell">
|
||||
<span :class="['task-status', `status-${task.status}`]">{{ statusText(task.status) }}</span>
|
||||
<span v-if="task.status === 'failed' && task.error_category" class="error-cat-badge">
|
||||
{{ errorCategoryLabel(task.error_category) }}
|
||||
@@ -365,9 +365,9 @@ const errorCategoryLabel = (cat) => {
|
||||
.config-table th:nth-child(2) { width: 14%; }
|
||||
.config-table th:nth-child(3) { width: 8%; }
|
||||
.config-table th:nth-child(4) { width: 10%; }
|
||||
.config-table th:nth-child(5) { width: 10%; }
|
||||
.config-table th:nth-child(5) { width: 12%; }
|
||||
.config-table th:nth-child(6) { width: 16%; }
|
||||
.config-table th:nth-child(7) { width: 28%; }
|
||||
.config-table th:nth-child(7) { width: 26%; }
|
||||
.config-table tr:hover { background: #fafafa; }
|
||||
|
||||
.build-type-badge { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
|
||||
@@ -381,6 +381,8 @@ const errorCategoryLabel = (cat) => {
|
||||
.action-btn:hover { border-color: #1890ff; color: #1890ff; }
|
||||
|
||||
.task-status { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
|
||||
.status-cell { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
|
||||
.status-cell .task-status, .status-cell .error-cat-badge { display: inline-block; margin-bottom: 4px; }
|
||||
.status-pending { background: #f0f0f0; color: #666; }
|
||||
.status-running { background: #e6f7ff; color: #1890ff; }
|
||||
.status-completed { background: #f6ffed; color: #52c41a; }
|
||||
|
||||
Reference in New Issue
Block a user