|
@@ -4,7 +4,11 @@
|
|
|
<LeftSidebar :change-task-type="changeTaskType" :cur-task-type="curTaskType" :cur-task-type-obj="curTaskTypeObj" />
|
|
|
|
|
|
<div ref="center" class="task-main-center" :style="centerStyle">
|
|
|
- <span v-if="curPageType !== mainPageTypeList[0]" class="zoom-display">
|
|
|
+ <span
|
|
|
+ v-if="curPageType !== mainPageTypeList[0]"
|
|
|
+ class="zoom-display"
|
|
|
+ :style="{ right: rightShow ? '216px' : '20px' }"
|
|
|
+ >
|
|
|
<svg-icon icon-class="minus" class-name="zoom-display-minus" @click="changeScale(false)" />
|
|
|
<span>{{ (scale * 100).toFixed(0) }}%</span>
|
|
|
<svg-icon icon-class="add" class-name="zoom-display-add" @click="changeScale(true)" />
|
|
@@ -16,7 +20,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <RightSidebar v-show="curPageType === mainPageTypeList[1]" />
|
|
|
+ <RightSidebar v-show="rightShow" />
|
|
|
|
|
|
<SelectTaskClassify
|
|
|
:visible.sync="visible"
|
|
@@ -59,6 +63,11 @@ const center = ref(); // vue3 获取 refs 写法,需要同名,且传空
|
|
|
|
|
|
const { curTaskType, curTaskTypeObj, curPageType, mainPageTypeList, changeTaskType } = useTaskType();
|
|
|
|
|
|
+// 右侧边栏是否显示
|
|
|
+let rightShow = computed(() => {
|
|
|
+ return curPageType.value === mainPageTypeList[1];
|
|
|
+});
|
|
|
+
|
|
|
defineExpose({ changeTaskType }); // 显式指定在 <script setup> 组件中要暴露出去的属性
|
|
|
|
|
|
const { visible, isAddSubtask, selectTaskClassify } = useSelectTaskClassify(curTaskTypeObj);
|
|
@@ -76,7 +85,7 @@ let curTaskTemplateList = computed(() => {
|
|
|
});
|
|
|
provide('curTaskTemplateList', curTaskTemplateList);
|
|
|
|
|
|
-// 录像
|
|
|
+// 录像页面显示
|
|
|
const { visible_video, sendVideo } = videoRecording();
|
|
|
|
|
|
useOtherPausePlay();
|
|
@@ -107,7 +116,6 @@ $basic-background-color: #f7f7f7;
|
|
|
|
|
|
.zoom-display {
|
|
|
position: fixed;
|
|
|
- right: 216px;
|
|
|
bottom: 16px;
|
|
|
padding: 8px;
|
|
|
line-height: 22px;
|