|
@@ -4,7 +4,7 @@
|
|
|
<Header
|
|
|
:count="selects.length"
|
|
|
:title="`现场图管理(${sortPhotos.length})`"
|
|
|
- type="return_l"
|
|
|
+ type="return"
|
|
|
:on-back="() => onBack()"
|
|
|
>
|
|
|
<ui-button
|
|
@@ -26,7 +26,7 @@
|
|
|
</ui-button>
|
|
|
<template v-slot:center="{ count }">
|
|
|
<template v-if="count"> 已选择 {{ count }} 张 </template>
|
|
|
- <div v-else class="filter-type">
|
|
|
+ <!-- <div v-else class="filter-type">
|
|
|
<span
|
|
|
:class="{ active: currentType === TypeEnum.Draw }"
|
|
|
@click="() => (currentType = TypeEnum.Draw)"
|
|
@@ -37,18 +37,19 @@
|
|
|
@click="() => (currentType = TypeEnum.Table)"
|
|
|
>制表</span
|
|
|
>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</template>
|
|
|
</Header>
|
|
|
</template>
|
|
|
|
|
|
+ <!-- :getURL="(data) => data?.table?.url || data.url" -->
|
|
|
<Photos
|
|
|
undata-msg="无现场图。请点击右上角按钮绘制现场图。"
|
|
|
v-model:active="active"
|
|
|
v-model:selects="selects"
|
|
|
:select-mode="selectMode"
|
|
|
:data="sortPhotos"
|
|
|
- :getURL="(data) => data?.table?.url || data.url"
|
|
|
+ :getURL="(data) => data.url"
|
|
|
>
|
|
|
<template v-slot="{ data }">
|
|
|
<p v-if="currentType === TypeEnum.Table">
|
|
@@ -65,8 +66,9 @@
|
|
|
/>
|
|
|
</MainPanel>
|
|
|
|
|
|
+ <!-- :getURL="(data) => data?.table?.url || data.url" -->
|
|
|
<FillSlide
|
|
|
- :getURL="(data) => data?.table?.url || data.url"
|
|
|
+ :getURL="(data) => data.url"
|
|
|
:data="sortPhotos"
|
|
|
v-model:active="active"
|
|
|
@quit="active = null"
|
|
@@ -107,7 +109,7 @@ const enum TypeEnum {
|
|
|
const currentType = ref(TypeEnum.Draw);
|
|
|
const sortPhotos = computed(() =>
|
|
|
roadPhotos.value
|
|
|
- .filter((item) => (currentType.value === TypeEnum.Draw ? !item.table : !!item.table))
|
|
|
+ // .filter((item) => (currentType.value === TypeEnum.Draw ? !item.table : !!item.table))
|
|
|
.reverse()
|
|
|
);
|
|
|
const onBack = () => {
|
|
@@ -223,7 +225,7 @@ const delSelects = async () => {
|
|
|
};
|
|
|
|
|
|
const gotoDraw = (road = active.value, forece = false) => {
|
|
|
- if (forece || road.table) {
|
|
|
+ if (forece) {
|
|
|
router.push({
|
|
|
name: writeRouteName.tabulation,
|
|
|
params: { id: road.id },
|
|
@@ -234,6 +236,17 @@ const gotoDraw = (road = active.value, forece = false) => {
|
|
|
params: { mode: Mode.Road, id: road.id, action: "update" },
|
|
|
});
|
|
|
}
|
|
|
+ // if (forece || road.table) {
|
|
|
+ // router.push({
|
|
|
+ // name: writeRouteName.tabulation,
|
|
|
+ // params: { id: road.id },
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // router.push({
|
|
|
+ // name: writeRouteName.graphic,
|
|
|
+ // params: { mode: Mode.Road, id: road.id, action: "update" },
|
|
|
+ // });
|
|
|
+ // }
|
|
|
};
|
|
|
|
|
|
onDeactivated(() => {
|