Merge branch 'dev_vite' of http://18.167.251.121:10003/aidlab/aida_front into dev_vite

This commit is contained in:
李志鹏
2025-11-12 10:26:47 +08:00
5 changed files with 69 additions and 59 deletions

View File

@@ -373,8 +373,6 @@ export default defineComponent({
email: this.forgetPasswordEmail, email: this.forgetPasswordEmail,
operationType: "FORGET_PWD", operationType: "FORGET_PWD",
}; };
this.frogetPasswordStep = 2;
(this.forgetEmailCode = ["", "", "", "", "", ""]), this.createTimer();
Https.axiosPost(Https.httpUrls.accountSendEmail, data).then((rv: any) => { Https.axiosPost(Https.httpUrls.accountSendEmail, data).then((rv: any) => {
if (rv) { if (rv) {
this.frogetPasswordStep = 2; this.frogetPasswordStep = 2;

View File

@@ -85,7 +85,7 @@ export default defineComponent({
const routeName = newRoute.name as string const routeName = newRoute.name as string
const shouldCache = newRoute.meta?.cache === true const shouldCache = newRoute.meta?.cache === true
if (shouldCache && routeName && !data.cachedRoutes.includes(routeName)) { if (shouldCache && routeName && !data.cachedRoutes.includes(routeName)) {
if(routeName == 'toolsPage' && !route.query?.id)return if(routeName == 'tools' && !route.query?.id)return
data.cachedRoutes.push(routeName)// 保证缓存只有一个项目 data.cachedRoutes.push(routeName)// 保证缓存只有一个项目
} else if ((!route.query?.id && shouldCache) || (!shouldCache && routeName && data.cachedRoutes.includes(routeName))) { } else if ((!route.query?.id && shouldCache) || (!shouldCache && routeName && data.cachedRoutes.includes(routeName))) {
// } else if (!shouldCache && routeName && data.cachedRoutes.includes(routeName)) { // } else if (!shouldCache && routeName && data.cachedRoutes.includes(routeName)) {
@@ -226,7 +226,7 @@ export default defineComponent({
storeData.positionList = position storeData.positionList = position
store.commit('setProbject',storeData) store.commit('setProbject',storeData)
// setChatData() // setChatData()
if(route.name == 'toolsPage'){ if(route.name == 'tools'){
getCollection('tools',null) getCollection('tools',null)
}else{ }else{
getCollection('design',null) getCollection('design',null)

View File

@@ -384,10 +384,10 @@ export default defineComponent({
type: Boolean, type: Boolean,
default: false default: false
}, },
isState:{ isState: {
type:Boolean, type: Boolean,
default:false, default: false
}, }
}, },
emit: ['unLike'], emit: ['unLike'],
setup(props, { emit }) { setup(props, { emit }) {
@@ -406,8 +406,7 @@ export default defineComponent({
const createProbject: any = inject('createProbject', () => {}) const createProbject: any = inject('createProbject', () => {})
let productImgData: any = reactive({ let productImgData: any = reactive({
isShowMark: false, isShowMark: false,
fileList:{ fileList: {},
},
searchName: { searchName: {
ToProductImage: '', ToProductImage: '',
Relight: '' Relight: ''
@@ -416,37 +415,37 @@ export default defineComponent({
isProductimg: false, //开始生成 isProductimg: false, //开始生成
selectProductimgList: [], selectProductimgList: [],
generateList: { generateList: {
ToProductImage:computed(()=>{ ToProductImage: computed(() => {
if(!route.query?.id && route.query.tools == 'toProduct'){ if (!route.query?.id && route.query.tools == 'toProduct') {
return [] return []
}else{ } else {
return store.state.HomeStoreModule.toProductImageList.list return store.state.HomeStoreModule.toProductImageList.list
} }
}), }),
Relight:computed(()=>{ Relight: computed(() => {
if(!route.query?.id && route.query.tools == 'relight'){ if (!route.query?.id && route.query.tools == 'relight') {
return [] return []
}else{ } else {
return store.state.HomeStoreModule.relightList.list return store.state.HomeStoreModule.relightList.list
} }
}), })
}, },
selectObject: computed(() => store.state.Workspace.probjects), //选择的项目 selectObject: computed(() => store.state.Workspace.probjects), //选择的项目
likeList: { likeList: {
ToProductImage:computed(()=>{ ToProductImage: computed(() => {
if(!route.query?.id && route.query.tools == 'toProduct'){ if (!route.query?.id && route.query.tools == 'toProduct') {
return [] return []
}else{ } else {
return store.state.HomeStoreModule.toProductImageList.likedList return store.state.HomeStoreModule.toProductImageList.likedList
} }
}), }),
Relight:computed(()=>{ Relight: computed(() => {
if(!route.query?.id && route.query.tools == 'relight'){ if (!route.query?.id && route.query.tools == 'relight') {
return [] return []
}else{ } else {
return store.state.HomeStoreModule.relightList.likedList return store.state.HomeStoreModule.relightList.likedList
} }
}), })
} as any, } as any,
similarity: 30, similarity: 30,
brightenValue: 1, brightenValue: 1,
@@ -520,19 +519,23 @@ export default defineComponent({
return store.state.UploadFilesModule.modularData return store.state.UploadFilesModule.modularData
}) })
let userlikeGroupId = 0 let userlikeGroupId = 0
watch(()=>store.state.HomeStoreModule.uploadElement.length,(newVal,oldVal)=>{ watch(
setFileList() () => store.state.HomeStoreModule.uploadElement.length,
}) (newVal, oldVal) => {
const setFileList = () => { setFileList()
if(props.isDesignPage)return }
if(!route.query?.id && route.query.tools){ )
productImgData.fileList[props.productimgMenu.value] = [] const setFileList = () => {
}else{ if (props.isDesignPage) return
productImgData.fileList[props.productimgMenu.value] = store.state.HomeStoreModule.uploadElement if (!route.query?.id && route.query.tools) {
if(productImgData.fileList[props.productimgMenu.value][0]){ productImgData.fileList[props.productimgMenu.value] = []
productImgData.fileList[props.productimgMenu.value][0].isChecked = true } else {
} productImgData.fileList[props.productimgMenu.value] =
} store.state.HomeStoreModule.uploadElement
if (productImgData.fileList[props.productimgMenu.value][0]) {
productImgData.fileList[props.productimgMenu.value][0].isChecked = true
}
}
} }
const openSetData = (designList: any) => { const openSetData = (designList: any) => {
// cleardata() // cleardata()
@@ -545,7 +548,7 @@ export default defineComponent({
productImgData.fileList[props.productimgMenu.value] = designList productImgData.fileList[props.productimgMenu.value] = designList
return return
} }
setFileList() setFileList()
userlikeGroupId = selectDesignList.value.userlikeGroupId userlikeGroupId = selectDesignList.value.userlikeGroupId
// getLikeProductImage(selectDesignList.value.userlikeGroupId) // getLikeProductImage(selectDesignList.value.userlikeGroupId)
productImgDom.generalDragLeft.setItemPosition() productImgDom.generalDragLeft.setItemPosition()
@@ -1260,15 +1263,14 @@ export default defineComponent({
// &.active // &.active
> .item { > .item {
// margin-right: 1rem; margin-right: 1rem;
// width: calc(100% / 2 - 0.5rem); width: calc(100% / 2 - 0.5rem);
width: 9.6rem;
cursor: pointer; cursor: pointer;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-shrink: 0; flex-shrink: 0;
height: 13.4rem; height: 25rem;
position: relative; position: relative;
// &.active{ // &.active{
// border: 2px solid; // border: 2px solid;
@@ -1539,6 +1541,16 @@ export default defineComponent({
} }
.upload_file_item {
:deep(.ant-upload-picture-card-wrapper) {
.ant-upload-list-picture-card {
.ant-upload-select-picture-card {
width: 9.6rem;
height: 13.4rem;
}
}
}
}
.prompt-container { .prompt-container {
margin-top: 4rem; margin-top: 4rem;
margin-bottom: 3rem; margin-bottom: 3rem;
@@ -1556,7 +1568,7 @@ export default defineComponent({
} }
} }
} }
.input_box_btnBox{ .input_box_btnBox {
padding-bottom: 4rem; padding-bottom: 4rem;
} }
.asistant-btn { .asistant-btn {

View File

@@ -92,7 +92,7 @@ export default defineComponent({
(query:any, oldQuery:any) => { (query:any, oldQuery:any) => {
if(oldQuery && query == oldQuery)return if(oldQuery && query == oldQuery)return
const key = Object.keys(query)?.[0] const key = Object.keys(query)?.[0]
if(route.name == 'toolsPage' && key){ if(route.name == 'tools' && key){
data.openType = query[key] data.openType = query[key]
nextTick(()=>{ nextTick(()=>{
open(query[key]) open(query[key])

View File

@@ -67,7 +67,7 @@ const routes: Array<RouteRecordRaw> = [
children: [ children: [
{ {
path: "tools", path: "tools",
name: "toolsPage", name: "tools",
meta: { enter: "all",cache:true }, meta: { enter: "all",cache:true },
component: () => import("@/views/HomeView/Tools.vue"), component: () => import("@/views/HomeView/Tools.vue"),
}, },