fix: 通用脚本用户添加额外展示项
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-col :span="6">
|
||||
<a-form-item name="status">
|
||||
<template #label>
|
||||
<a-tooltip title="是否启用该用户">
|
||||
@@ -88,10 +88,7 @@
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12">
|
||||
<a-col :span="6">
|
||||
<a-form-item name="remainedDay">
|
||||
<template #label>
|
||||
<a-tooltip title="账号剩余的有效天数,「-1」表示无限">
|
||||
|
||||
@@ -3,14 +3,6 @@
|
||||
<div class="header-title">
|
||||
<h1>历史记录</h1>
|
||||
</div>
|
||||
<a-space size="middle">
|
||||
<a-button size="large" @click="handleRefresh" class="default">
|
||||
<template #icon>
|
||||
<ReloadOutlined />
|
||||
</template>
|
||||
刷新
|
||||
</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
|
||||
<!-- 搜索筛选区域 -->
|
||||
@@ -296,14 +288,6 @@
|
||||
<template #extra>
|
||||
<a-space>
|
||||
<FileTextOutlined />
|
||||
<a-button
|
||||
type="link"
|
||||
size="small"
|
||||
@click="handleRefreshLog"
|
||||
:loading="detailLoading"
|
||||
>
|
||||
刷新日志
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
<a-spin :spinning="detailLoading">
|
||||
@@ -327,7 +311,6 @@
|
||||
import { ref, reactive, onMounted, computed } from 'vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
import {
|
||||
ReloadOutlined,
|
||||
SearchOutlined,
|
||||
ClearOutlined,
|
||||
HistoryOutlined,
|
||||
@@ -527,11 +510,6 @@ const handleReset = () => {
|
||||
activeKeys.value = []
|
||||
}
|
||||
|
||||
// 刷新数据
|
||||
const handleRefresh = () => {
|
||||
handleSearch()
|
||||
}
|
||||
|
||||
// 快捷时间选择处理
|
||||
const handleQuickTimeSelect = (preset: (typeof timePresets)[0]) => {
|
||||
currentPreset.value = preset.key
|
||||
@@ -587,13 +565,6 @@ const loadUserLog = async (jsonFile: string) => {
|
||||
}
|
||||
}
|
||||
|
||||
// 刷新日志
|
||||
const handleRefreshLog = async () => {
|
||||
if (currentJsonFile.value) {
|
||||
await loadUserLog(currentJsonFile.value)
|
||||
}
|
||||
}
|
||||
|
||||
// 获取日期状态颜色
|
||||
const getDateStatusColor = (users: Record<string, HistoryData>) => {
|
||||
const hasError = Object.values(users).some(
|
||||
|
||||
@@ -33,14 +33,6 @@
|
||||
class="activity-card"
|
||||
:loading="loading"
|
||||
>
|
||||
<template #extra>
|
||||
<a-button type="text" @click="refreshActivity" :loading="loading">
|
||||
<template #icon>
|
||||
<ReloadOutlined />
|
||||
</template>
|
||||
刷新
|
||||
</a-button>
|
||||
</template>
|
||||
|
||||
<div v-if="error" class="error-message">
|
||||
<a-alert :message="error" type="error" show-icon closable @close="error = ''" />
|
||||
@@ -251,7 +243,6 @@
|
||||
import { ref, onMounted, computed } from 'vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
import {
|
||||
ReloadOutlined,
|
||||
ClockCircleOutlined,
|
||||
UserOutlined,
|
||||
BellOutlined,
|
||||
@@ -451,13 +442,6 @@ const fetchActivityData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
const refreshActivity = async () => {
|
||||
await fetchActivityData()
|
||||
if (error.value) {
|
||||
message.error(error.value)
|
||||
}
|
||||
}
|
||||
|
||||
// 获取代理状态颜色
|
||||
const getProxyStatusColor = () => {
|
||||
const hasError = Object.values(proxyData.value).some(proxy => proxy.ErrorTimes > 0)
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
</a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="6">
|
||||
<a-form-item name="remainedDay">
|
||||
<a-form-item name="medicineNumb">
|
||||
<template #label>
|
||||
<a-tooltip title="吃理智药数量">
|
||||
<span class="form-label">
|
||||
|
||||
@@ -38,13 +38,6 @@
|
||||
删除当前计划
|
||||
</a-button>
|
||||
</a-popconfirm>
|
||||
|
||||
<a-button size="large" @click="handleRefresh">
|
||||
<template #icon>
|
||||
<ReloadOutlined />
|
||||
</template>
|
||||
刷新
|
||||
</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
</div>
|
||||
@@ -187,7 +180,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, ref, watch, nextTick } from 'vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { PlusOutlined, ReloadOutlined, DeleteOutlined, EditOutlined } from '@ant-design/icons-vue'
|
||||
import { PlusOutlined, DeleteOutlined, EditOutlined } from '@ant-design/icons-vue'
|
||||
import { usePlanApi } from '../composables/usePlanApi'
|
||||
|
||||
// API 相关
|
||||
@@ -691,14 +684,6 @@ const savePlanData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 刷新计划列表
|
||||
const handleRefresh = async () => {
|
||||
loading.value = true
|
||||
await initPlans()
|
||||
loading.value = false
|
||||
// message.success('刷新成功')
|
||||
}
|
||||
|
||||
// 自动保存功能
|
||||
watch(
|
||||
() => [currentPlanName.value, currentMode.value, tableData.value],
|
||||
|
||||
@@ -38,13 +38,6 @@
|
||||
删除当前队列
|
||||
</a-button>
|
||||
</a-popconfirm>
|
||||
|
||||
<a-button size="large" @click="handleRefresh">
|
||||
<template #icon>
|
||||
<ReloadOutlined />
|
||||
</template>
|
||||
刷新
|
||||
</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
</div>
|
||||
@@ -211,7 +204,7 @@
|
||||
<script setup lang="ts">
|
||||
import { nextTick, onMounted, ref, watch } from 'vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { DeleteOutlined, EditOutlined, PlusOutlined, ReloadOutlined, QuestionCircleOutlined } from '@ant-design/icons-vue'
|
||||
import { DeleteOutlined, EditOutlined, PlusOutlined, QuestionCircleOutlined } from '@ant-design/icons-vue'
|
||||
import { Service } from '@/api'
|
||||
import TimeSetManager from '@/components/queue/TimeSetManager.vue'
|
||||
import QueueItemManager from '@/components/queue/QueueItemManager.vue'
|
||||
@@ -634,13 +627,6 @@ const saveQueueData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 刷新队列列表
|
||||
const handleRefresh = async () => {
|
||||
loading.value = true
|
||||
await fetchQueues()
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
// 自动保存功能
|
||||
watch(
|
||||
() => [
|
||||
|
||||
@@ -16,12 +16,6 @@
|
||||
</template>
|
||||
新建脚本
|
||||
</a-button>
|
||||
<a-button size="large" @click="handleRefresh" class="default">
|
||||
<template #icon>
|
||||
<ReloadOutlined />
|
||||
</template>
|
||||
刷新
|
||||
</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
|
||||
@@ -229,7 +223,6 @@ import {
|
||||
FileSearchOutlined,
|
||||
FileTextOutlined,
|
||||
PlusOutlined,
|
||||
ReloadOutlined,
|
||||
SettingOutlined,
|
||||
UserOutlined,
|
||||
} from '@ant-design/icons-vue'
|
||||
@@ -494,11 +487,6 @@ const handleDeleteUser = async (user: User) => {
|
||||
}
|
||||
}
|
||||
|
||||
const handleRefresh = () => {
|
||||
loadScripts()
|
||||
message.success('刷新成功')
|
||||
}
|
||||
|
||||
const handleMAAConfig = async (script: Script) => {
|
||||
try {
|
||||
// 检查是否已有连接
|
||||
|
||||
@@ -386,7 +386,7 @@
|
||||
<a-row :gutter="24"></a-row>
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="6">
|
||||
<a-form-item name="remainedDay">
|
||||
<a-form-item name="medicineNumb">
|
||||
<template #label>
|
||||
<a-tooltip title="吃理智药数量">
|
||||
<span class="form-label">
|
||||
|
||||
Reference in New Issue
Block a user