diff --git a/package.json b/package.json index 11197d9..5603932 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "vite --open", "clean": "node scripts/clean-dist.mjs", - "build": "vite build", + "build": "node --max-old-space-size=4096 ./node_modules/vite/bin/vite.js build", "preview": "vite preview" }, "dependencies": { diff --git a/src/api/accountPool.js b/src/api/accountPool.js index 2206e2e..719af51 100644 --- a/src/api/accountPool.js +++ b/src/api/accountPool.js @@ -51,6 +51,30 @@ export function updateAccountPoolRemark(module, data) { }); } +export function setAccountPoolUnavailable(module, data) { + return request({ + url: `${base(module)}/setUnavailable`, + method: 'post', + data, + }); +} + +export function updateAccountPoolPlatform(module, data) { + return request({ + url: `${base(module)}/updatePlatform`, + method: 'post', + data, + }); +} + +export function unextractAccountPool(module, data) { + return request({ + url: `${base(module)}/unextract`, + method: 'post', + data, + }); +} + export function replenishAccountPool(module, data) { return request({ url: `${base(module)}/replenish`, diff --git a/src/views/accountpool/cursor/components/detail.vue b/src/views/accountpool/cursor/components/detail.vue index c0db780..37bed82 100644 --- a/src/views/accountpool/cursor/components/detail.vue +++ b/src/views/accountpool/cursor/components/detail.vue @@ -1,6 +1,6 @@ @@ -87,84 +161,406 @@ function copyToken() { - - {{ row.id }} - {{ typeText(row.type) }} - {{ row.account || '-' }} - {{ row.password || '-' }} - - {{ row.token || '-' }} - - - {{ - row.extractStatus === 2 ? '补号' : row.extracted ? '已提取' : '未提取' - }} - - - {{ - row.isUsed === null || row.isUsed === undefined - ? '未探测' - : Number(row.isUsed) === 1 - ? '可用' - : Number(row.isUsed) === 0 - ? '已用完' - : String(row.isUsed) - }} - - {{ row.extractedAt || '-' }} - - - {{ platformLabel }} - - - - - -
- 账号+密码 - Token + + +
+
+
+
ID
+
{{ row?.id || "-" }}
+
+
+
账号类型
+
+ {{ typeInfo.label }} +
+
+
+
提取状态
+
+ + {{ statusInfo.label }} + +
+
+
+
提取平台
+
+ + {{ platformInfo.label }} + + - +
+
+
+
提取时间
+
{{ row.extractedAt || "-" }}
+
+
+
可用检测
+
+ + {{ isUsedInfo.label }} + +
+
+
+
账号
+
{{ row.account || "-" }}
+
+
+
密码
+
{{ row.password || "-" }}
+
+
+ +
+
+
+
Token
+
+ 长 Token 已做自动换行,便于检查与复制 +
+
+ + 复制 Token
- - +
{{ row.token || "暂无 Token" }}
+
+ +
+
+
+
快捷功能
+
按使用场景复制账号信息
+
+
+
+ + 复制账号+密码 + + + 复制 Token + + + 复制全部 + +
+
+ +
+
+
+
维护操作
+
+ 点击按钮后打开确认/编辑弹窗,再执行对应操作 +
+
+
+
+ + 改不可用 + + + 改平台 + + + 反提取 + + + 改备注 + +
+
+ +
+
+
+
备注
+
备注改为弹窗编辑,当前仅展示
+
+
+
{{ row.remark || "暂无备注" }}
+
+
+ + + + + 确认将当前账号标记为不可用/已用完? + + + + + + + + + + + + + + + + + + 反提取会把账号恢复为未提取,并清空提取时间与提取平台。 + + + + + + + diff --git a/src/views/accountpool/cursor/components/edit.vue b/src/views/accountpool/cursor/components/edit.vue index b6c00d8..dc58fa0 100644 --- a/src/views/accountpool/cursor/components/edit.vue +++ b/src/views/accountpool/cursor/components/edit.vue @@ -1,5 +1,6 @@