diff --git a/src/views/property-marketing/assignment-management/components/draw-popup.vue b/src/views/property-marketing/assignment-management/components/draw-popup.vue index 29d3c5e..aa49955 100644 --- a/src/views/property-marketing/assignment-management/components/draw-popup.vue +++ b/src/views/property-marketing/assignment-management/components/draw-popup.vue @@ -62,14 +62,18 @@
-
+
+ + +
+ +
-

AI会参考添加的文本、图片、视频等素材,完成符合需求的创作

@@ -134,7 +138,7 @@ { // 处理原料库选择确认 const handleMaterialConfirm = (result) => { + console.log('handleMaterialConfirm', result); selectedMaterials.value = { keys: result.selectedKeys, data: result.selectedData, text: result.choseText, - images: result.choseImgArray + images: result.choseImgArray, + texts: result.selectedTexts || [] }; hasChoseMaterial.value = result.selectedKeys.length > 0; }; @@ -285,7 +292,7 @@ const handleProductConfirm = (result) => { keys: result.selectedKeys, data: result.selectedData, text: result.choseText, - images: result.choseImgArray + images: result.choseImgArray, }; }; diff --git a/src/views/property-marketing/assignment-management/components/finished-product-drawer.vue b/src/views/property-marketing/assignment-management/components/finished-product-drawer.vue index 18bd125..ea327d8 100644 --- a/src/views/property-marketing/assignment-management/components/finished-product-drawer.vue +++ b/src/views/property-marketing/assignment-management/components/finished-product-drawer.vue @@ -74,13 +74,6 @@
已选择:
{{ choseText }}
-
- 选中的内容 -
@@ -182,22 +175,22 @@ watchEffect(() => { // 监听选中项变化 watch(selectedRowKeys, (newKeys) => { const filteredData = materialData.value.filter((item) => newKeys.includes(item.id)); + choseText.value = filteredData.length + '个稿件'; + // // 统计各类型数量 + // const typeCount = filteredData.reduce((acc, item) => { + // const typeKey = item.type === EnumManuscriptType.Image ? 'image' : 'video'; + // acc[typeKey] = (acc[typeKey] || 0) + 1; + // return acc; + // }, {}); - // 统计各类型数量 - const typeCount = filteredData.reduce((acc, item) => { - const typeKey = item.type === EnumManuscriptType.Image ? 'image' : 'video'; - acc[typeKey] = (acc[typeKey] || 0) + 1; - return acc; - }, {}); + // // 生成选中文本 + // choseText.value = []; + // if (typeCount.image) choseText.value.push(`图文: ${typeCount.image}个`); + // if (typeCount.video) choseText.value.push(`视频: ${typeCount.video}个`); + // choseText.value = choseText.value.join(' '); - // 生成选中文本 - choseText.value = []; - if (typeCount.image) choseText.value.push(`图文: ${typeCount.image}个`); - if (typeCount.video) choseText.value.push(`视频: ${typeCount.video}个`); - choseText.value = choseText.value.join(' '); - - // 筛选选中的内容用于预览 - choseImgArray.value = filteredData; + // // 筛选选中的内容用于预览 + // choseImgArray.value = filteredData; }); // 格式化审核状态显示 diff --git a/src/views/property-marketing/assignment-management/components/raw-material-drawer.vue b/src/views/property-marketing/assignment-management/components/raw-material-drawer.vue index a059a3b..18e5688 100644 --- a/src/views/property-marketing/assignment-management/components/raw-material-drawer.vue +++ b/src/views/property-marketing/assignment-management/components/raw-material-drawer.vue @@ -22,7 +22,11 @@ >