@@ -75,18 +95,23 @@ import MoodTemplate from '@/component/HomePage/MoodTemplate.vue'
import { useStore } from "vuex";
export default defineComponent({
components:{MoodTemplate},
- setup() {
+ emits:['openCollection'],
+ setup(props, { emit }) {
const store:any = useStore();
let sketch:any = ref([[],[],[]])
let sketchList:any = computed(()=>{
return store.state.UploadFilesModule.showSketchboard})
let allBoardData:any = computed(()=>{
return store.state.UploadFilesModule.allBoardData})
+ const openCollection = (str:any)=>{
+ emit('openCollection',str)
+ }
return {
store,
allBoardData,
sketch,
sketchList,
+ openCollection,
}
},
data(){
@@ -113,8 +138,10 @@ export default defineComponent({
this.imgOpen = true
}
}else{
- this.setSketch()
- this.imgOpen = true
+ nextTick(()=>{
+ this.setSketch()
+ this.imgOpen = true
+ })
}
@@ -215,6 +242,18 @@ export default defineComponent({
// &.color_block_item{
// padding: 0 0.5rem 0 0.3rem;
// }
+ > .title{
+ display: flex;
+ font-size: 1.4rem;
+ font-weight: 900;
+ align-items: center;
+ justify-content: space-between;
+ > i{
+ font-size: 2rem;
+ display: flex;
+ cursor: pointer;
+ }
+ }
.lager_img_item{
display: inline-block;
width: 20.4rem;
diff --git a/src/component/home/chat/index.vue b/src/component/home/chat/index.vue
index 56759922..4267ab6c 100644
--- a/src/component/home/chat/index.vue
+++ b/src/component/home/chat/index.vue
@@ -57,8 +57,8 @@
enableThinking = !enableThinking">Deep Thinking
-
{{ chatContent.length }}/10000
-
+
{{ chatContent?.length }}/10000
+
@@ -118,7 +118,12 @@ export default defineComponent({
const sendChat = ()=>{
if(!data.isFinish)return
if(!data.chatContent)return
- let fileList = JSON.parse(JSON.stringify(data.filList))
+ let fileList
+ if(data.filList){
+ fileList = JSON.parse(JSON.stringify(data.filList))
+ }else{
+ fileList = []
+ }
let fileUrl = (fileList.filter((item:any)=>item.type == 'file').length > 0) ? fileList.filter((item:any)=>item.type == 'file')[0].minioPath : ''
let imageUrlList = (fileList.filter((item:any)=>item.type == 'image').length > 0)? fileList.filter((item:any)=>item.type == 'image').map((item:any)=>item.minioPath).join(',') : ''
data.chatList.push({content:{message:data.chatContent,think:''},role:'user',fileList:fileList})
@@ -148,13 +153,14 @@ export default defineComponent({
data.chatList[data.chatList.length-1].content.think+=JSON.parse(event.data).content
}
}else{
+ let list = ['[MOOD_SIGNAL]','[PRINT_SIGNAL]','[SKETCH_SIGNAL]']
if(JSON.parse(event.data).status == "[DESIGN_SIGNAL]"){
}else if(JSON.parse(event.data).status == "[COLOR_SIGNAL]"){
data.chatList.push({content:{message:''},role:'system'})
data.chatList[data.chatList.length-1].content.color = JSON.parse(JSON.parse(event.data).tools_data).receiveCollectionElementList
data.chatList.push({content:{message:''},role:'system'})
- }else{
+ }else if(list.indexOf(JSON.parse(event.data).status)>-1){
data.chatList.push({content:{message:''},role:'system'})
data.chatList[data.chatList.length-1].content.img = JSON.parse(JSON.parse(event.data).tools_data).receiveCollectionElementList
data.chatList.push({content:{message:''},role:'system'})
diff --git a/src/component/home/design/collection.vue b/src/component/home/design/collection.vue
new file mode 100644
index 00000000..9aa056b7
--- /dev/null
+++ b/src/component/home/design/collection.vue
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/home/design/collection/ColorboardUpload.vue b/src/component/home/design/collection/ColorboardUpload.vue
new file mode 100644
index 00000000..8bd4f40c
--- /dev/null
+++ b/src/component/home/design/collection/ColorboardUpload.vue
@@ -0,0 +1,1468 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Delete
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{$t('ColorboardUpload.SelectSuccessively')}}
+
isSelectSuccessively = !isSelectSuccessively" checked-children="ON" un-checked-children="OFF"/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('ColorboardUpload.Single') }}
+
+
{{ $t('ColorboardUpload.Gradual') }}
+
+
+
+
+
+
{{ $t('ColorboardUpload.Alignment') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('ColorboardUpload.ExtractColor') }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/component/home/design/collection/MoodboardUpload.vue b/src/component/home/design/collection/MoodboardUpload.vue
new file mode 100644
index 00000000..6d654026
--- /dev/null
+++ b/src/component/home/design/collection/MoodboardUpload.vue
@@ -0,0 +1,743 @@
+
+
+
+
+
+ {{ $t('MoodboardUpload.Upload') }}
+
+
+ {{ $t('MoodboardUpload.Library') }}
+
+
+ {{ $t('MoodboardUpload.Generate') }}
+
+
+
+
+
+
+
+
+
+
+ {{ $t('MoodboardUpload.Delete') }}
+
+
+
+
+
+
fileUploadChange(file)"
+ >
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('MoodboardUpload.Maximum') }}
+
+
+
+
+
+
+
+
+
+
+ {{ $t('MoodboardUpload.Thumbnail') }}
+
+
{{ $t('MoodboardUpload.layout') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('MoodboardUpload.selected') }}
+
{{ $t('MoodboardUpload.Edit') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/component/home/design/collection/PrintboardUpload.vue b/src/component/home/design/collection/PrintboardUpload.vue
new file mode 100644
index 00000000..88c26ca3
--- /dev/null
+++ b/src/component/home/design/collection/PrintboardUpload.vue
@@ -0,0 +1,1000 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('PrintboardUpload.Maximum') }}
+
+
+
+
+
+
+
+
+
{{ $t('PrintboardUpload.Thumbnail') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {if(!item?.pin)item.pin = false;item.pin = !item.pin}">
+
+
+ PIN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/component/home/design/collection/SketchboardUpload.vue b/src/component/home/design/collection/SketchboardUpload.vue
new file mode 100644
index 00000000..24aad8e5
--- /dev/null
+++ b/src/component/home/design/collection/SketchboardUpload.vue
@@ -0,0 +1,962 @@
+
+
+
+
+
+ {{ $t('SketchboardUpload.Upload') }}
+
+
+ {{ $t('SketchboardUpload.Library') }}
+
+
+ {{ $t('SketchboardUpload.Generate') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
fileUploadChange(file)"
+ >
+
+
+
+
+
+
+
+
+
+
+ {{ $t('SketchboardUpload.Maximum',{maxImg:20}) }}
+
+
+
+
+
+
+
+
+
+
{{ $t('SketchboardUpload.Thumbnail') }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {if(!item?.pin)item.pin = false;item.pin = !item.pin}">
+
+
+ PIN
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/component/home/design/collection/more.vue b/src/component/home/design/collection/more.vue
new file mode 100644
index 00000000..4b460b96
--- /dev/null
+++ b/src/component/home/design/collection/more.vue
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
{{ $t('more.edit') }}
+
+
+
+
{{ $t('more.enlargement') }}
+
+
+
+
{{ $t('more.down') }}
+
+
+
+
{{ $t('more.delete') }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/component/home/design/index.vue b/src/component/home/design/index.vue
index 05a98a94..cf2171ba 100644
--- a/src/component/home/design/index.vue
+++ b/src/component/home/design/index.vue
@@ -18,8 +18,7 @@