From 020a78308e18daf7a872e19c2d0ddb179156728d Mon Sep 17 00:00:00 2001 From: du <13220750630.163.com> Date: 星期三, 16 四月 2025 15:04:01 +0800 Subject: [PATCH] 人脸模板 --- easegen-front/src/views/chooseTemplate/index.vue | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 51 insertions(+), 3 deletions(-) diff --git a/easegen-front/src/views/chooseTemplate/index.vue b/easegen-front/src/views/chooseTemplate/index.vue index 0d12a2e..db17b7a 100644 --- a/easegen-front/src/views/chooseTemplate/index.vue +++ b/easegen-front/src/views/chooseTemplate/index.vue @@ -179,11 +179,18 @@ > <!-- 鑳屾櫙(蹇呮樉绀�) --> <el-image - v-show="selectPPT.pictureUrl" + v-show="selectPPT.pictureUrl && selectPPT.showDigitalHuman==false" class="background1" :src="selectPPT.pictureUrl" style="z-index: 2" /> + <el-image + v-show="selectPPT.pictureUrl && selectPPT.showDigitalHuman==true" + class="background1" + :src="selectPPT.pictureUrl" + style="z-index: 1" + /> + <!-- 鐢讳腑鐢� --> <Vue3DraggableResizable @@ -220,7 +227,7 @@ </el-icon> </Vue3DraggableResizable> <Vue3DraggableResizable - v-if="selectPPT.showDigitalHuman" + v-if="selectPPT.showDigitalHuman==true" :parent="false" :lockAspectRatio="true" :minW="350" @@ -242,7 +249,7 @@ @resizing="print('resizing')" @drag-end="print('drag-end')" @resize-end="print('resize-end')" - style="z-index: 1" + style="z-index: 4" > <!-- {{PPTpositon.w}}{{PPTpositon.h}}--> <el-image @@ -260,6 +267,47 @@ <Delete /> </el-icon> </Vue3DraggableResizable> + <Vue3DraggableResizable + v-if="selectPPT.showDigitalHuman==false" + :parent="false" + :lockAspectRatio="true" + :minW="350" + :initW="PPTpositon.w" + :initH="PPTpositon.h" + @drag-move="onDragMove" + v-model:x="PPTpositon.x" + v-model:y="PPTpositon.y" + v-model:w="PPTpositon.w" + v-model:h="PPTpositon.h" + v-model:active="PPTpositon.active" + :draggable="true" + :resizable="true" + @activated="print('activated')" + @deactivated="print('deactivated')" + @drag-start="print('drag-start')" + @resize-start="print('resize-start')" + @dragging="print('dragging')" + @resizing="print('resizing')" + @drag-end="print('drag-end')" + @resize-end="print('resize-end')" + style="z-index: 1" + > + <!-- {{PPTpositon.w}}{{PPTpositon.h}}--> + <el-image + class="minddle-host-image" + :src="selectHost ? selectHost.pictureUrl : ''" + /> + + <el-icon + v-if="PPTpositon.active" + size="20" + color="#409eff" + style="position: absolute; top: 5px; right: 5px; z-index: 4" + @click.stop="deleteDigitalHuman" + > + <Delete /> + </el-icon> + </Vue3DraggableResizable> </div> </div> <el-card -- Gitblit v1.9.3