From 72a6e436b2e8f505b08e45356f23b5aa1cffe0f6 Mon Sep 17 00:00:00 2001
From: WangLeo <690854599@qq.com>
Date: Wed, 18 Mar 2026 09:23:33 +0800
Subject: [PATCH] =?UTF-8?q?whm=E4=BC=98=E5=8C=96=E7=9A=84set=E6=96=87?=
=?UTF-8?q?=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/home/display/components/set.vue | 81 +++++++++++++++--------
1 file changed, 55 insertions(+), 26 deletions(-)
diff --git a/src/views/home/display/components/set.vue b/src/views/home/display/components/set.vue
index 2dedf6a..f8f48f2 100644
--- a/src/views/home/display/components/set.vue
+++ b/src/views/home/display/components/set.vue
@@ -4,7 +4,15 @@
-
{{ props.item.text }}
+
{{ props.item.text }}
+
+
{{ props.item.model }}
+
+
{{ props.item.proportion }}
+
{{ props.item.resolution }}
+
{{ props.item.quantity }}张
+
+
源自 {{ props.item.parentTime }}
@@ -97,31 +105,27 @@ const useDisplay = useDisplayStore()
const useParams = useParamStore()
const useUser = useUserStore()
+const generateStatusText = computed(() => {
+ if (props.item.status === 'generate') {
+ return '正在生成中...'
+ }
+ return ''
+})
+
const AIvideo = (file, index) => {
emit('open-canvas', file)
}
const reEdit = (url, number) => {
console.log(number)
- // const index = String(number + 1)
- // useDisplay.DialogModification = true
- // useDisplay.AIvideo = false
- // useParams.dialogModificationImage = { title: '对话修改', url, time: props.item.time, parentIndex: index, parentTaskId: props.item.id }
}
const againGenerate = (url, number) => {
console.log(number)
- // const index = String(number + 1)
- // useDisplay.AIvideo = true
- // useDisplay.DialogModification = false
- // useParams.AIvideoImage = { title: '对话修改', url, time: props.item.time, parentIndex: index, parentTaskId: props.item.id }
}
const deleteImage = (url, number) => {
console.log(number)
- // const index = String(number + 1)
- // useDisplay.deleteImage = true
- // useParams.deleteImage = { title: '删除图片', url, time: props.item.time, parentIndex: index, parentTaskId: props.item.id }
}
const bottomBtnGroup = [
@@ -143,15 +147,7 @@ const bottomBtnGroup = [
]
const addCollection = (url) => {
- setCollectImg({ userId: useUser.userInfo.id, url, clothesId: 0 }).then((res) => {
- if (res.code === '0' && res.success === true) {
- // eslint-disable-next-line no-undef
- ElMessage.success('添加收藏成功')
- } else {
- // eslint-disable-next-line no-undef
- ElMessage.error(res.msg || '添加收藏失败')
- }
- })
+ console.log('添加收藏:', url)
}
@@ -170,25 +166,55 @@ const addCollection = (url) => {
}
.title{
- height: 25px;
+ // height: 25px;
width: 100%;
display: flex;
align-items: center;
gap: 20px;
.style{
- display: flex;
- align-items: center;
- gap: 10px;
+ width: 100%;
+ display: inline;
}
+
.name{
color: #333;
font-family: "Microsoft YaHei";
font-size: 15px;
font-style: normal;
font-weight: 700;
- line-height: normal;
+ line-height: 1.5;
+ word-break: break-all;
+ display: inline;
+ margin-right: 20px;
}
+
+ .generate-data{
+ display: inline-flex;
+ align-items: center;
+ }
+
+ .detailed-data{
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ color: #999;
+ font-family: "Microsoft YaHei";
+ font-size: 14px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: normal;
+ padding: 0 10px;
+ border-left: 1px solid #999;
+ white-space: nowrap;
+ height: 12px;
+ }
+
+ .first-detailed-data{
+ border-left: none;
+ padding-left: 0;
+ }
+
.time{
color: #333;
font-family: "Microsoft YaHei";
@@ -197,13 +223,16 @@ const addCollection = (url) => {
font-weight: 400;
line-height: normal;
}
+
.dividing-line{
height: 100%;
border: 1px solid #ccc;
}
+
.delete-btn{
cursor: pointer;
}
+
.delete-btn:hover{
color: #ff4949;
}