Merge branch 'dev_vite' of ssh://18.167.251.121:10002/aidlab/aida_front into dev_vite
This commit is contained in:
12
components.d.ts
vendored
12
components.d.ts
vendored
@@ -9,14 +9,11 @@ export {}
|
|||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
ABadge: typeof import('ant-design-vue/es')['Badge']
|
ABadge: typeof import('ant-design-vue/es')['Badge']
|
||||||
ABreadcrumb: typeof import('ant-design-vue/es')['Breadcrumb']
|
|
||||||
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
|
ACheckbox: typeof import('ant-design-vue/es')['Checkbox']
|
||||||
ADatePicker: typeof import('ant-design-vue/es')['DatePicker']
|
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
|
||||||
ADrawer: typeof import('ant-design-vue/es')['Drawer']
|
ADrawer: typeof import('ant-design-vue/es')['Drawer']
|
||||||
AImage: typeof import('ant-design-vue/es')['Image']
|
AImage: typeof import('ant-design-vue/es')['Image']
|
||||||
AInputNumber: typeof import('ant-design-vue/es')['InputNumber']
|
AInputNumber: typeof import('ant-design-vue/es')['InputNumber']
|
||||||
AMenu: typeof import('ant-design-vue/es')['Menu']
|
|
||||||
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
|
|
||||||
AModal: typeof import('ant-design-vue/es')['Modal']
|
AModal: typeof import('ant-design-vue/es')['Modal']
|
||||||
APagination: typeof import('ant-design-vue/es')['Pagination']
|
APagination: typeof import('ant-design-vue/es')['Pagination']
|
||||||
APopover: typeof import('ant-design-vue/es')['Popover']
|
APopover: typeof import('ant-design-vue/es')['Popover']
|
||||||
@@ -24,16 +21,17 @@ declare module 'vue' {
|
|||||||
ASelect: typeof import('ant-design-vue/es')['Select']
|
ASelect: typeof import('ant-design-vue/es')['Select']
|
||||||
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
ASelectOption: typeof import('ant-design-vue/es')['SelectOption']
|
||||||
ASlider: typeof import('ant-design-vue/es')['Slider']
|
ASlider: typeof import('ant-design-vue/es')['Slider']
|
||||||
ASpace: typeof import('ant-design-vue/es')['Space']
|
|
||||||
ASpin: typeof import('ant-design-vue/es')['Spin']
|
ASpin: typeof import('ant-design-vue/es')['Spin']
|
||||||
ASubMenu: typeof import('ant-design-vue/es')['SubMenu']
|
|
||||||
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
ASwitch: typeof import('ant-design-vue/es')['Switch']
|
||||||
ATable: typeof import('ant-design-vue/es')['Table']
|
ATable: typeof import('ant-design-vue/es')['Table']
|
||||||
ATabPane: typeof import('ant-design-vue/es')['TabPane']
|
ATabPane: typeof import('ant-design-vue/es')['TabPane']
|
||||||
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
ATabs: typeof import('ant-design-vue/es')['Tabs']
|
||||||
ATimeRangePicker: typeof import('ant-design-vue/es')['TimeRangePicker']
|
|
||||||
AUpload: typeof import('ant-design-vue/es')['Upload']
|
AUpload: typeof import('ant-design-vue/es')['Upload']
|
||||||
ElCascader: typeof import('element-plus/es')['ElCascader']
|
ElCascader: typeof import('element-plus/es')['ElCascader']
|
||||||
|
ElLoading: typeof import('element-plus/es')['ElLoading']
|
||||||
|
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||||
|
ElTable: typeof import('element-plus/es')['ElTable']
|
||||||
|
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div
|
<div
|
||||||
class="image-list-trigger"
|
class="image-list-trigger"
|
||||||
@click="showPanel = true"
|
@click="showPanel = true"
|
||||||
:title="$t('打开图片库')"
|
:title="$t('Canvas.photoGallery')"
|
||||||
>
|
>
|
||||||
<SvgIcon name="CImageList" :size="20" />
|
<SvgIcon name="CImageList" :size="20" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
134
src/component/Detail/historyDetail/index.vue
Normal file
134
src/component/Detail/historyDetail/index.vue
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
<template>
|
||||||
|
<a-modal
|
||||||
|
class="hsitory_detail_modal_component"
|
||||||
|
v-model:visible="hsitoryDetailShow"
|
||||||
|
:footer="null"
|
||||||
|
width="80%"
|
||||||
|
:maskClosable="false"
|
||||||
|
:keyboard="false"
|
||||||
|
:centered="true"
|
||||||
|
:closable="false"
|
||||||
|
>
|
||||||
|
<!-- <template #closeIcon>
|
||||||
|
<div class="close_icon" @click.stop="changeDetailShow()">
|
||||||
|
<span class="icon iconfont icon-guanbi"></span>
|
||||||
|
</div>
|
||||||
|
</template> -->
|
||||||
|
<template #title>
|
||||||
|
<div class="custom_title">
|
||||||
|
<div class="title_text">{{ collectionName }}</div>
|
||||||
|
<div class="close_icon" @click.stop="changeDetailShow()">
|
||||||
|
<span class="icon iconfont icon-guanbi"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<div class="history_detail_content scroll_style">
|
||||||
|
<div class="history_img_block" v-for="img in groupDetails" :key="img">
|
||||||
|
<div class="history_img_item">
|
||||||
|
<img class="element_img" :src="img.url" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
<script lang="ts">
|
||||||
|
import { defineComponent } from 'vue'
|
||||||
|
|
||||||
|
export default defineComponent({
|
||||||
|
props: {
|
||||||
|
groupDetails: {
|
||||||
|
default: {}
|
||||||
|
},
|
||||||
|
collectionName: {
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
setup() {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
hsitoryDetailShow: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
changeDetailShow() {
|
||||||
|
this.hsitoryDetailShow = !this.hsitoryDetailShow
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.hsitory_detail_modal_component {
|
||||||
|
// .ant-modal-close {
|
||||||
|
// width: 3.6rem;
|
||||||
|
// height: 3.6rem;
|
||||||
|
// position: absolute;
|
||||||
|
// top: -1.8rem;
|
||||||
|
// right: -1.8rem;
|
||||||
|
// }
|
||||||
|
|
||||||
|
.custom_title {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.title_text {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-modal-header {
|
||||||
|
background: #f7f7f7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-modal-body {
|
||||||
|
background: #f2f3fb;
|
||||||
|
height: 80vh;
|
||||||
|
min-height: 72rem;
|
||||||
|
overflow-y: hidden;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close_icon {
|
||||||
|
width: 3.6rem;
|
||||||
|
height: 3.6rem;
|
||||||
|
background: #000000;
|
||||||
|
border-radius: 50%;
|
||||||
|
line-height: 3.6rem;
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
.icon-guanbi {
|
||||||
|
font-size: 2rem;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.history_detail_content {
|
||||||
|
padding: 2.6rem 2rem 2.6rem 3.7rem;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
background: #ffffff;
|
||||||
|
|
||||||
|
.history_img_block {
|
||||||
|
width: 16.5rem;
|
||||||
|
height: 16.5rem;
|
||||||
|
border: 0.1rem solid #343579;
|
||||||
|
margin: 0 1.7rem 1.7rem 0;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
.history_img_item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.element_img {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
<div class="rename_form_content">
|
<div class="rename_form_content">
|
||||||
<input class="rename_form_input" :placeholder="$t('LibraryPage.inputContent3')" v-model="newPicName" @keydown.enter="confrimRename()">
|
<input class="rename_form_input" :placeholder="$t('LibraryPage.inputContent3')" v-model="newPicName" @keydown.enter="confrimRename()">
|
||||||
</div>
|
</div>
|
||||||
|
<template v-if="!isHistory">
|
||||||
<div class="collection_rename_title">{{$t('LibraryPage.Tag')}}</div>
|
<div class="collection_rename_title">{{$t('LibraryPage.Tag')}}</div>
|
||||||
<el-cascader
|
<el-cascader
|
||||||
:options="options"
|
:options="options"
|
||||||
@@ -35,6 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-cascader>
|
</el-cascader>
|
||||||
|
</template>
|
||||||
<div v-show="selectCode == 'Sketchboard' || selectCode == 'Printboard'" class="collection_rename_title">{{$t('LibraryPage.Category')}}</div>
|
<div v-show="selectCode == 'Sketchboard' || selectCode == 'Printboard'" class="collection_rename_title">{{$t('LibraryPage.Category')}}</div>
|
||||||
<!-- <div v-show="selectCode == 'Sketchboard' || selectCode == 'Printboard'" class="collection_rename_title">{{$t('LibraryPage.Category')}}</div> -->
|
<!-- <div v-show="selectCode == 'Sketchboard' || selectCode == 'Printboard'" class="collection_rename_title">{{$t('LibraryPage.Category')}}</div> -->
|
||||||
<div v-show="selectCode == 'Sketchboard' || selectCode == 'Printboard'" class="rename_form_content">
|
<div v-show="selectCode == 'Sketchboard' || selectCode == 'Printboard'" class="rename_form_content">
|
||||||
@@ -90,6 +92,12 @@ import { Modal,message,Upload,CascaderProps } from 'ant-design-vue';
|
|||||||
import { ElCascader } from 'element-plus'
|
import { ElCascader } from 'element-plus'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
props:{
|
||||||
|
isHistory:{
|
||||||
|
type:Boolean,
|
||||||
|
default:false
|
||||||
|
},
|
||||||
|
},
|
||||||
components:{
|
components:{
|
||||||
VueCropper,
|
VueCropper,
|
||||||
ElCascader,
|
ElCascader,
|
||||||
|
|||||||
112
src/component/common/TableSearchBar.vue
Normal file
112
src/component/common/TableSearchBar.vue
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
<template>
|
||||||
|
<div class="table_search_bar flex flex-justify-between flex-align-center">
|
||||||
|
<div class="search_preset flex flex-1">
|
||||||
|
<div
|
||||||
|
class="preset_item gallery_btn white"
|
||||||
|
v-for="item in buttonList"
|
||||||
|
:class="{ active: searchParams.currentPreset === item.value }"
|
||||||
|
:key="item.value"
|
||||||
|
@click="handleButtonClick(item.value)"
|
||||||
|
>
|
||||||
|
{{ item.label }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="search_input flex flex-align-center">
|
||||||
|
<input
|
||||||
|
class="search_input_inner flex-1"
|
||||||
|
v-model="searchParams.searchText"
|
||||||
|
:bordered="false"
|
||||||
|
@keydown.enter="handleSearch"
|
||||||
|
:placeholder="placeholder"
|
||||||
|
/>
|
||||||
|
<SearchOutlined @click="handleSearch" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, reactive } from 'vue'
|
||||||
|
import { SearchOutlined } from '@ant-design/icons-vue'
|
||||||
|
|
||||||
|
interface ButtonItem {
|
||||||
|
label: string
|
||||||
|
value: string
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
buttonList: ButtonItem[]
|
||||||
|
placeholder?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
interface SearchParams {
|
||||||
|
searchText: string
|
||||||
|
currentPreset: string
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Emits {
|
||||||
|
(e: 'search', params: SearchParams): void
|
||||||
|
}
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
|
placeholder: 'batchGeneration.Search'
|
||||||
|
})
|
||||||
|
|
||||||
|
const emit = defineEmits<Emits>()
|
||||||
|
|
||||||
|
// 内部状态管理
|
||||||
|
const searchParams = reactive({
|
||||||
|
searchText: '',
|
||||||
|
currentPreset:props.buttonList[0]?.value || ''
|
||||||
|
})
|
||||||
|
|
||||||
|
// 处理按钮点击
|
||||||
|
const handleButtonClick = (value: string) => {
|
||||||
|
searchParams.currentPreset = value
|
||||||
|
handleSearch()
|
||||||
|
}
|
||||||
|
|
||||||
|
// 处理搜索
|
||||||
|
const handleSearch = () => {
|
||||||
|
emit('search', searchParams)
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
.flex {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.flex-1 {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.flex-justify-between {
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.flex-align-center {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.table_search_bar {
|
||||||
|
.search_preset {
|
||||||
|
column-gap: 2rem;
|
||||||
|
.preset_item {
|
||||||
|
line-height: 4rem;
|
||||||
|
min-width: 10rem;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search_input {
|
||||||
|
height: 4rem;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 0.1rem solid #000;
|
||||||
|
border-radius: 43rem;
|
||||||
|
// column-gap: 3rem;
|
||||||
|
padding-right: 1rem;
|
||||||
|
.search_input_inner {
|
||||||
|
border: none;
|
||||||
|
height: 100%;
|
||||||
|
padding-left: 3rem;
|
||||||
|
border-radius: 4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -295,6 +295,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
let obj = {
|
let obj = {
|
||||||
value:'mannquin',
|
value:'mannquin',
|
||||||
|
// type:'Mannquin',
|
||||||
type:data.locale == "ENGLISH"?'Mannquin':'模特',
|
type:data.locale == "ENGLISH"?'Mannquin':'模特',
|
||||||
imgList:list
|
imgList:list
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -351,8 +351,8 @@ export default {
|
|||||||
CollectionsName: "名字",
|
CollectionsName: "名字",
|
||||||
source: "来源",
|
source: "来源",
|
||||||
UptateTime: "修改时间",
|
UptateTime: "修改时间",
|
||||||
SketchCounts: "项目名字",
|
SketchCounts: "草图数量",
|
||||||
Operations: "Operations",
|
Operations: "操作",
|
||||||
jsContent1: "删除成功",
|
jsContent1: "删除成功",
|
||||||
jsContent2: "您确定要删除这个收藏吗?",
|
jsContent2: "您确定要删除这个收藏吗?",
|
||||||
jsContent3: "修改成功",
|
jsContent3: "修改成功",
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ export default {
|
|||||||
CollectionsName: "Collections Name",
|
CollectionsName: "Collections Name",
|
||||||
source: "Source",
|
source: "Source",
|
||||||
UptateTime: "Uptate Time",
|
UptateTime: "Uptate Time",
|
||||||
SketchCounts: "Project Name",
|
SketchCounts: "SketchCounts",
|
||||||
Operations: "Operations",
|
Operations: "Operations",
|
||||||
jsContent1: "Deleted successfully",
|
jsContent1: "Deleted successfully",
|
||||||
jsContent2: "Do you really want to delete this collection? ",
|
jsContent2: "Do you really want to delete this collection? ",
|
||||||
|
|||||||
@@ -348,18 +348,24 @@ const navTypeList = (t)=>{
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
history:{
|
// history:{
|
||||||
|
// icon:'fi-br-time-past',
|
||||||
|
// label:t('HistoryPage.History'),
|
||||||
|
// value:'history',
|
||||||
|
// Todaylist:[
|
||||||
|
// ],
|
||||||
|
// Yesterdaylist:[
|
||||||
|
// ],
|
||||||
|
// WithinAWeeklist:[
|
||||||
|
// ],
|
||||||
|
// Earlierlist:[
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
history111:{
|
||||||
icon:'fi-br-time-past',
|
icon:'fi-br-time-past',
|
||||||
label:t('HistoryPage.History'),
|
label:t('HistoryPage.History'),
|
||||||
value:'history',
|
value:'history111',
|
||||||
Todaylist:[
|
router:'/home/history111'
|
||||||
],
|
|
||||||
Yesterdaylist:[
|
|
||||||
],
|
|
||||||
WithinAWeeklist:[
|
|
||||||
],
|
|
||||||
Earlierlist:[
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
gallery:{
|
gallery:{
|
||||||
icon:'fi-rr-gallery',
|
icon:'fi-rr-gallery',
|
||||||
|
|||||||
@@ -18,17 +18,17 @@
|
|||||||
<p>{{$t('Header.NewProject')}}</p>
|
<p>{{$t('Header.NewProject')}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="navList ">
|
<div class="navList ">
|
||||||
<div class="tools list" v-for="item in navTypeList" :class="{active:openType == item.value,history:item.value == 'history'}">
|
<div class="tools list" v-for="item in navTypeList" :class="{active:openType == item.value,history:item.value == 'history','show-history' : showHistory && item.value === 'history111','isHistory' : item.value === 'history111'}">
|
||||||
<div class="titleBox" @click="setOpenType(item.value,item.list)">
|
<div class="titleBox" @click="setOpenType(item.value,item.list)">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<i :class="['fi',item.icon]"></i>
|
<i :class="['fi',item.icon]"></i>
|
||||||
<span>{{item.label}}</span>
|
<span>{{item.label}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right" v-if="item.value !== 'history111' ">
|
||||||
<i class="fi fi-br-angle-small-down"></i>
|
<i class="fi fi-br-angle-small-down"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="detailBox" v-show="openType">
|
<div class="detailBox" v-if="item.value != 'history111'" v-show="openType">
|
||||||
<div class="detail" v-if="item.value != 'history' && item.value != 'cloud'" v-show="openType == item.value">
|
<div class="detail" v-if="item.value != 'history' && item.value != 'cloud'" v-show="openType == item.value">
|
||||||
<div class="detailItem" v-for="childItem in item.list" @click="setRouter(item,childItem)" :class="{active:openTypeChild == childItem.value}">
|
<div class="detailItem" v-for="childItem in item.list" @click="setRouter(item,childItem)" :class="{active:openTypeChild == childItem.value}">
|
||||||
<i v-show="childItem.icon" :class="['fi',childItem.icon]"></i>
|
<i v-show="childItem.icon" :class="['fi',childItem.icon]"></i>
|
||||||
@@ -342,7 +342,8 @@ export default defineComponent({
|
|||||||
isWithinAWeek:false,
|
isWithinAWeek:false,
|
||||||
isEarlier:false,
|
isEarlier:false,
|
||||||
},
|
},
|
||||||
bathGenerationList:["poseTransfer","SERIES_DESIGN","toProduct","relight"]
|
bathGenerationList: ["poseTransfer", "SERIES_DESIGN", "toProduct", "relight"],
|
||||||
|
showHistory:false
|
||||||
})
|
})
|
||||||
let userDetail= computed(()=>{
|
let userDetail= computed(()=>{
|
||||||
return store.state.UserHabit.userDetail
|
return store.state.UserHabit.userDetail
|
||||||
@@ -366,6 +367,8 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
// watch(()=>locale.value,(newVal,oldVal)=>{
|
// watch(()=>locale.value,(newVal,oldVal)=>{
|
||||||
// if(newVal == oldVal)return
|
// if(newVal == oldVal)return
|
||||||
// console.log(newVal , oldVal)
|
// console.log(newVal , oldVal)
|
||||||
@@ -420,7 +423,21 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
{ immediate: true } // 立即触发一次以处理初始参数
|
{ immediate: true } // 立即触发一次以处理初始参数
|
||||||
);
|
);
|
||||||
// watch(()=>homeMainData.navTypeList,()=>{
|
|
||||||
|
// 监听路由,当路由地址为/home/history111时homeMainData.showHistory为true,改变左侧菜单颜色
|
||||||
|
watch(() => route.path, () => {
|
||||||
|
if(route.path == '/home/history111'){
|
||||||
|
homeMainData.showHistory = true
|
||||||
|
}else{
|
||||||
|
homeMainData.showHistory = false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ immediate: true }
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// watch(()=>homeMainData.openTypeList,()=>{
|
||||||
// homeMainData.historyData.page = 1
|
// homeMainData.historyData.page = 1
|
||||||
// })
|
// })
|
||||||
|
|
||||||
@@ -547,16 +564,15 @@ export default defineComponent({
|
|||||||
let imgParent = document.querySelector('.homeMain_max .detail .material_content_list_loding .historyPage_loading')
|
let imgParent = document.querySelector('.homeMain_max .detail .material_content_list_loding .historyPage_loading')
|
||||||
if(Observer?.unobserve)Observer.unobserve(imgParent);
|
if(Observer?.unobserve)Observer.unobserve(imgParent);
|
||||||
})
|
})
|
||||||
const setOpenType = (type,list)=>{
|
const setOpenType = (type, list) => {
|
||||||
|
|
||||||
if(homeMainData.openType == type){
|
if(homeMainData.openType == type){
|
||||||
homeMainData.openType = ''
|
homeMainData.openType = ''
|
||||||
}else {
|
}else {
|
||||||
homeMainData.openType = type
|
homeMainData.openType = type
|
||||||
// if(type == 'history'){
|
if (type === 'history111') {
|
||||||
// if(list.length == 0){
|
router.push('/home/history111')
|
||||||
|
}
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let Observer = null
|
let Observer = null
|
||||||
@@ -1129,6 +1145,10 @@ export default defineComponent({
|
|||||||
// padding: 1.2rem;
|
// padding: 1.2rem;
|
||||||
max-height: 5rem;
|
max-height: 5rem;
|
||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
|
&.show-history{
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0.8rem;
|
||||||
|
}
|
||||||
&.active{
|
&.active{
|
||||||
> .detailBox{
|
> .detailBox{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -1377,6 +1397,11 @@ export default defineComponent({
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
background: #00000008;
|
background: #00000008;
|
||||||
|
&.isHistory{
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0.8rem;
|
||||||
|
max-height: 5rem;
|
||||||
|
}
|
||||||
> .titleBox{
|
> .titleBox{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: 1.6rem;
|
margin-bottom: 1.6rem;
|
||||||
@@ -1388,6 +1413,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.language{
|
&.language{
|
||||||
> .titleBox{
|
> .titleBox{
|
||||||
padding: .8rem;
|
padding: .8rem;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user