2025-01-23 09:36:21 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="modelindex">
|
2025-02-17 09:34:28 +08:00
|
|
|
<div class="modelindex_left">
|
|
|
|
|
<modelNav></modelNav>
|
2025-01-24 13:41:13 +08:00
|
|
|
</div>
|
2025-02-17 09:34:28 +08:00
|
|
|
<div class="modelindex_right">
|
|
|
|
|
<div class="detail_btn">
|
|
|
|
|
<!-- 全屏 -->
|
|
|
|
|
<i class="fi fi-bs-expand-arrows-alt" @click="showDesignImgDetail(2)"></i>
|
|
|
|
|
<!-- 编辑 -->
|
|
|
|
|
<i class="fi fi-rr-edit" :title="$t('DesignDetail.editTitle')" @click="showDesignImgDetail(3)"></i>
|
|
|
|
|
<!-- <i v-show="!body && !deleteShow" :title="$t('DesignDetail.DetailTitle')" class="fi fi-rr-trash" @click="deleteNav(0)"></i>
|
|
|
|
|
<i v-show="!body && deleteShow" class="fi fi-br-check" @click="deleteNav(1)"></i> -->
|
|
|
|
|
|
|
|
|
|
<!-- 层 -->
|
|
|
|
|
<!-- <i class="fi fi-rr-copy" :title="$t('DesignDetail.compareTitle')" @mousedown="mousedownDesignImg" @mouseup="mouseupDesignImg" @touchstart="mousedownDesignImg" @touchend="mouseupDesignImg"></i> -->
|
|
|
|
|
<!-- <i v-show="revocationShow>1" class="icon iconfont icon-chehui" @click="revocation"></i>
|
|
|
|
|
<i v-show="oppositeRevocationShow>=1" class="icon iconfont icon-fanchehui" @click="oppositeRevocation"></i> -->
|
|
|
|
|
</div>
|
|
|
|
|
<position ref="position"></position>
|
2025-01-23 09:36:21 +08:00
|
|
|
</div>
|
2025-02-17 09:34:28 +08:00
|
|
|
|
2025-01-23 09:36:21 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts">
|
2025-01-24 13:41:13 +08:00
|
|
|
import { defineComponent,computed,ref,inject,nextTick,createVNode,toRefs, reactive} from 'vue'
|
2025-01-23 09:36:21 +08:00
|
|
|
// import setDesignItem from '@/component/Detail/setDesignItem2.vue'
|
|
|
|
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
|
|
|
|
import { Https } from "@/tool/https";
|
|
|
|
|
import { useStore } from "vuex";
|
|
|
|
|
import { useI18n } from 'vue-i18n'
|
2025-01-24 13:41:13 +08:00
|
|
|
import position from './modelPosition.vue';
|
2025-02-17 09:34:28 +08:00
|
|
|
import modelNav from './modelNav.vue';
|
2025-01-23 09:36:21 +08:00
|
|
|
export default defineComponent({
|
|
|
|
|
components:{
|
2025-02-17 09:34:28 +08:00
|
|
|
position,modelNav
|
2025-01-23 09:36:21 +08:00
|
|
|
},
|
|
|
|
|
setup(props,{emit}) {
|
|
|
|
|
const store = useStore();
|
|
|
|
|
const detailData = reactive({
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
const getDetailListData = reactive({
|
|
|
|
|
total:0,
|
|
|
|
|
pageSize:10,
|
|
|
|
|
currentPage:1,
|
2025-02-17 09:34:28 +08:00
|
|
|
designDetail:computed(()=>store.state.DesignDetailCopy.designDetail),
|
2025-01-23 09:36:21 +08:00
|
|
|
})
|
|
|
|
|
const getDetailListDom = reactive({
|
|
|
|
|
libraryList:null as any,
|
2025-02-17 09:34:28 +08:00
|
|
|
position:null as any,
|
2025-01-23 09:36:21 +08:00
|
|
|
})
|
2025-02-17 09:34:28 +08:00
|
|
|
const getSubmitData = (value:any)=>{
|
|
|
|
|
return getDetailListDom.position.getSubmitData(value)
|
|
|
|
|
}
|
2025-01-23 09:36:21 +08:00
|
|
|
const showDesignImgDetail = ()=>{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
const deleteNav = ()=>{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return{
|
|
|
|
|
...toRefs(detailData),
|
|
|
|
|
...toRefs(getDetailListData),
|
|
|
|
|
...toRefs(getDetailListDom),
|
2025-02-17 09:34:28 +08:00
|
|
|
getSubmitData,
|
2025-01-23 09:36:21 +08:00
|
|
|
showDesignImgDetail,
|
|
|
|
|
deleteNav,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
provide() {
|
|
|
|
|
return {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.modelindex{
|
2025-02-17 09:34:28 +08:00
|
|
|
width: 100%;
|
2025-01-23 09:36:21 +08:00
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
padding-top: 3rem;
|
2025-02-17 09:34:28 +08:00
|
|
|
flex: 1;
|
2025-02-03 13:22:34 +08:00
|
|
|
overflow: hidden;
|
2025-02-17 09:34:28 +08:00
|
|
|
.modelindex_right,.modelindex_left{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
> .modelindex_right{
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
> .detail_btn{
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
> i{
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.modelindex_left{
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
2025-01-23 09:36:21 +08:00
|
|
|
}
|
|
|
|
|
</style>
|