From 57c8863113f430457bc1302272c6007af3e04e35 Mon Sep 17 00:00:00 2001 From: WangLeo <690854599@qq.com> Date: Fri, 27 Mar 2026 15:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=99=9A=E6=8B=9F=E6=BB=9A=E5=8A=A8=E6=9C=AA?= =?UTF-8?q?=E5=81=9A=E5=AE=8C=EF=BC=8C=E6=96=B0=E5=8A=A0=E6=94=B6=E8=97=8F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + out.txt | 344 ++++------ src/apis/display/index.js | 2 +- src/assets/display/collection-active.svg | 3 + .../virtual-scroller/VirtualScroller.vue | 587 ++++++++---------- src/utils/websocket.js | 3 - src/views/home/display/components/set.vue | 23 +- src/views/home/display/index.vue | 3 +- src/views/home/index.vue | 23 - 9 files changed, 394 insertions(+), 595 deletions(-) create mode 100644 src/assets/display/collection-active.svg diff --git a/components.d.ts b/components.d.ts index 7c35fd4..8cefacb 100644 --- a/components.d.ts +++ b/components.d.ts @@ -12,6 +12,7 @@ export {} declare module 'vue' { export interface GlobalComponents { Canvas: typeof import('./src/components/canvas/index.vue')['default'] + copy: typeof import('./src/components/virtual-scroller/VirtualScroller copy.vue')['default'] DialogBox: typeof import('./src/components/dialogBox/index.vue')['default'] ElButton: typeof import('element-plus/es')['ElButton'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] diff --git a/out.txt b/out.txt index 3dda8ab..4a1b822 100644 --- a/out.txt +++ b/out.txt @@ -1,231 +1,113 @@ -{ - "code": "0", - "msg": "ok", - "success": true, - "timestamp": 1774247913094, - "data": { - "list": [ - { - "id": "793783789028385477", - "createUser": "779313132404212546", - "createTime": "2025-12-23 10:13:23", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "d7265fba-2a9c-4787-9212-0a543aa0079d", - "title": "生成图片", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "sub_account_1", - "consumptionPoints": 1, - "fileUrl": "https://sxwz.xueai.art/file/2025/12/23/6949fac3e4b0ca6c273243e6.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "801756644529676772", - "createUser": "779313132404212546", - "createTime": "2026-01-14 10:14:40", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "be7fa32f-a64c-4502-9241-5b299aba3007", - "title": "生成图片", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "sub_account_1", - "consumptionPoints": 1, - "fileUrl": "https://sxwz.xueai.art/file/2026/1/14/6966fc0fe4b0ca6c27324493.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "801757022436467181", - "createUser": "779313132404212546", - "createTime": "2026-01-14 10:16:10", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "a11eca7f-a974-40a5-9ba7-633e59c34203", - "title": "生成图片", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "sub_account_1", - "consumptionPoints": 1, - "fileUrl": "https://sxwz.xueai.art/file/2026/1/14/6966fc6ae4b0ca6c27324494.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "808634443160891624", - "createUser": "779313132404212546", - "createTime": "2026-02-02 01:44:35", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "wKAM2KIQQ_riW0pTAAAL", - "title": "图片生成", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "sub_account_1", - "consumptionPoints": 1, - "fileUrl": "https://sxwz.xueai.art/file/2026/2/2/69800182bd04d39e54d076dd.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "808634548240789744", - "createUser": "779313132404212546", - "createTime": "2026-02-02 01:45:00", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "ULX6qR65vnBzhx52AAAN", - "title": "图片生成", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "sub_account_1", - "consumptionPoints": 1, - "fileUrl": "https://sxwz.xueai.art/file/2026/2/2/6980019bbd04d39e54d076de.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "808643919486136683", - "createUser": "779313132404212546", - "createTime": "2026-02-02 02:22:14", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "WiVJhf1U-CPFyyEiAAAb", - "title": "图片生成", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "sub_account_1", - "consumptionPoints": 1, - "fileUrl": "https://sxwz.xueai.art/file/2026/2/2/69800a56bd04d39e54d076e7.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "808666588717789637", - "createUser": "779313132404212546", - "createTime": "2026-02-02 03:52:19", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "gH7baTTfPSfawbcUAAAf", - "title": "图片生成", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "sub_account_1", - "consumptionPoints": 1, - "fileUrl": "https://sxwz.xueai.art/file/2026/2/2/69801f73bd04d39e54d076e9.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "808703764197290551", - "createUser": "779313132404212546", - "createTime": "2026-02-02 06:20:02", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "xpW7ykBix5s4b3j6AAAz", - "title": "图片生成", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "main_account", - "consumptionPoints": 9, - "fileUrl": "https://sxwz.xueai.art/file/2026/2/2/69804212bd04d39e54d076f3.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "819160907316737522", - "createUser": "779313132404212546", - "createTime": "2026-03-03 02:53:00", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "LYLIzOdaCCBZ8qV-AACt", - "title": "图片生成", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "main_account", - "consumptionPoints": 15, - "fileUrl": "https://sxwz.xueai.art/file/2026/3/3/69a64d0bbd04d39e54d0772b.png", - "platformCode": "10000", - "result": null, - "tokens": null - }, - { - "id": "821520405306029717", - "createUser": "779313132404212546", - "createTime": "2026-03-09 15:08:48", - "updateUser": null, - "updateTime": null, - "userId": "779313132404212546", - "platformId": 10000, - "taskId": "eIKMWxL9GzzeAfvsAAC_", - "title": "图片生成", - "taskType": 1, - "chargeType": 1, - "type": null, - "fileType": null, - "modelName": "Flux", - "accountType": "main_account", - "consumptionPoints": 8, - "fileUrl": "https://sxwz.xueai.art/file/2026/3/9/69aee27fbd04d39e54d07748.png", - "platformCode": "10000", - "result": null, - "tokens": null - } - ], - "total": 45 - } -} \ No newline at end of file +
\ No newline at end of file diff --git a/src/apis/display/index.js b/src/apis/display/index.js index d5061a5..68f977e 100644 --- a/src/apis/display/index.js +++ b/src/apis/display/index.js @@ -7,5 +7,5 @@ export function getGenerateHistoryList(query) { // 取消或收藏 export function cancelOrCollect(query) { - return service.post('/collect/toggle', query) + return service.post('/collect/toggle', null, { params: query }) } \ No newline at end of file diff --git a/src/assets/display/collection-active.svg b/src/assets/display/collection-active.svg new file mode 100644 index 0000000..dbefcd7 --- /dev/null +++ b/src/assets/display/collection-active.svg @@ -0,0 +1,3 @@ + diff --git a/src/components/virtual-scroller/VirtualScroller.vue b/src/components/virtual-scroller/VirtualScroller.vue index 869bcfd..db45316 100644 --- a/src/components/virtual-scroller/VirtualScroller.vue +++ b/src/components/virtual-scroller/VirtualScroller.vue @@ -13,8 +13,10 @@ ref="renderContainerRef" class="virtual-scroller-render-container" :style="renderContainerStyle" + @scroll.passive="handleScroll" + @wheel="handleWheel" > - +