|
@@ -7,6 +7,7 @@
|
|
|
@click="selectMode = !selectMode"
|
|
|
width="96px"
|
|
|
style="margin-right: 16px"
|
|
|
+ v-if="sortPhotos.length"
|
|
|
>
|
|
|
{{ selectMode ? '取消' : '选择' }}
|
|
|
</ui-button>
|
|
@@ -22,21 +23,24 @@
|
|
|
</template>
|
|
|
|
|
|
<div class="type-photos-layout">
|
|
|
- <div class="type-photos" v-for="typePhoto in typePhotos" :key="typePhoto.type">
|
|
|
- <p class="type-title">{{ typePhoto.type }}</p>
|
|
|
- <Photos
|
|
|
- class="type-photos-content accident-photos-content"
|
|
|
- :class="{max: typePhoto.photos.length > 4}"
|
|
|
- v-model:active="active"
|
|
|
- v-model:selects="selects"
|
|
|
- :select-mode="selectMode"
|
|
|
- :data="typePhoto.photos"
|
|
|
- >
|
|
|
- <template v-slot="{data, index}">
|
|
|
- <p>{{ data.title || typePhoto.type.substring(0, 2) + (index + 1) }}</p>
|
|
|
- </template>
|
|
|
- </Photos>
|
|
|
- </div>
|
|
|
+ <template v-if="sortPhotos.length">
|
|
|
+ <div class="type-photos" v-for="typePhoto in typePhotos" :key="typePhoto.type">
|
|
|
+ <p class="type-title">{{ typePhoto.type }}</p>
|
|
|
+ <Photos
|
|
|
+ class="type-photos-content accident-photos-content"
|
|
|
+ :class="{max: typePhoto.photos.length > 4}"
|
|
|
+ v-model:active="active"
|
|
|
+ v-model:selects="selects"
|
|
|
+ :select-mode="selectMode"
|
|
|
+ :data="typePhoto.photos"
|
|
|
+ >
|
|
|
+ <template v-slot="{data, index}">
|
|
|
+ <p>{{ data.title || typePhoto.type.substring(0, 2) + (index + 1) }}</p>
|
|
|
+ </template>
|
|
|
+ </Photos>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <undata undata-msg="无照片。请点击右上角按钮标注照片。" />
|
|
|
</div>
|
|
|
|
|
|
<ActionMenus class="select-menus" :menus="selectMenus" dire="row" v-if="selects.length" />
|
|
@@ -64,6 +68,7 @@ import Header from "@/components/photos/header.vue";
|
|
|
import ButtonPane from "@/components/button-pane/index.vue";
|
|
|
import {useConfirm} from "@/hook";
|
|
|
import {roadPhotos} from "@/store/roadPhotos";
|
|
|
+import Undata from "@/components/photos/undata.vue";
|
|
|
|
|
|
const sortPhotos = computed(() => {
|
|
|
const photos = [...accidentPhotos.value]
|