feat: 用户列表显示任务开启时间
This commit is contained in:
@@ -29,6 +29,7 @@ interface UserRow {
|
||||
study_paused: boolean;
|
||||
study_ignore_window: boolean;
|
||||
study_started: boolean;
|
||||
study_opened_at: string | null;
|
||||
hours_month: string;
|
||||
study_active: boolean | null;
|
||||
study_state: string;
|
||||
@@ -186,6 +187,7 @@ function asUser(value: unknown): UserRow | null {
|
||||
study_paused: value.study_paused === true,
|
||||
study_ignore_window: value.study_ignore_window === true,
|
||||
study_started: value.study_started === true,
|
||||
study_opened_at: typeof value.study_opened_at === "string" && value.study_opened_at ? value.study_opened_at : null,
|
||||
hours_month: textOf(value.hours_month),
|
||||
study_active: typeof value.study_active === "boolean" ? value.study_active : null,
|
||||
study_state: textOf(value.state) || textOf(value.study_state),
|
||||
@@ -899,9 +901,9 @@ onMounted(() => {
|
||||
<th>用户名称</th>
|
||||
<th>公司</th>
|
||||
<th>凭据</th>
|
||||
<th>有效</th>
|
||||
<th>本月学时</th>
|
||||
<th>任务</th>
|
||||
<th>开启任务时间</th>
|
||||
<th>代理</th>
|
||||
<th>上次刷新时间</th>
|
||||
<th>自动刷新</th>
|
||||
@@ -916,10 +918,10 @@ onMounted(() => {
|
||||
<td class="employee">{{ row.employee_id }}</td>
|
||||
<td class="name">{{ row.user_name || "—" }}</td>
|
||||
<td class="company">{{ row.company || "—" }}</td>
|
||||
<td>{{ row.has_credential ? "已保存凭据" : "未保存凭据" }}</td>
|
||||
<td :class="validityClass(validityText(row))">{{ validityText(row) }}</td>
|
||||
<td class="when">{{ monthHoursText(row) }}</td>
|
||||
<td :class="taskText(row) === '运行中' ? 'ok' : 'quiet'">{{ taskText(row) }}</td>
|
||||
<td class="when">{{ formatRefreshTime(row.study_opened_at) || "—" }}</td>
|
||||
<td class="when">{{ row.proxy || "—" }}</td>
|
||||
<td class="when">{{ formatRefreshTime(row.last_refresh_at) }}</td>
|
||||
<td>{{ row.refresh_paused ? "已停止" : "开启" }}</td>
|
||||
|
||||
Reference in New Issue
Block a user