|
@@ -38,9 +38,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <ButtonPane class="del fun-ctrl" @click="delSelects" v-if="selects.length">
|
|
|
- <ui-icon type="close" class="icon" />
|
|
|
- </ButtonPane>
|
|
|
+ <ActionMenus class="select-menus" :menus="selectMenus" dire="row" v-if="selects.length" />
|
|
|
</MainPanel>
|
|
|
|
|
|
<FillSlide :data="sortPhotos" v-model:active="active" @quit="active = null" v-if="active">
|
|
@@ -57,7 +55,7 @@ import ActionMenus from "@/components/group-button/index.vue";
|
|
|
import {types, accidentPhotos, AccidentPhoto} from '@/store/accidentPhotos'
|
|
|
import UiIcon from "@/components/base/components/icon/index.vue";
|
|
|
import {router, writeRouteName} from '@/router'
|
|
|
-import {computed, ref, watchEffect} from "vue";
|
|
|
+import {computed, reactive, ref, watchEffect} from "vue";
|
|
|
import {Mode} from '@/views/graphic/menus'
|
|
|
import UiButton from "@/components/base/components/button/index.vue";
|
|
|
import Photos from "@/components/photos/index.vue";
|
|
@@ -94,6 +92,27 @@ const menus = [
|
|
|
}
|
|
|
]
|
|
|
|
|
|
+const selectMenus = reactive([
|
|
|
+ {
|
|
|
+ key: "gen",
|
|
|
+ text: "生成A4",
|
|
|
+ disabled: computed(() => selects.value.length > 2),
|
|
|
+ onClick: () => {
|
|
|
+ const params = {
|
|
|
+ id1: selects.value[0].id,
|
|
|
+ id2: selects.value.length === 1 ? '-1' : selects.value[1].id
|
|
|
+ }
|
|
|
+ router.push({ name: writeRouteName.gena4, params})
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "del",
|
|
|
+ text: "删除",
|
|
|
+ onClick: () => delSelects()
|
|
|
+ },
|
|
|
+])
|
|
|
+
|
|
|
+
|
|
|
watchEffect(() => {
|
|
|
if (!selectMode.value) {
|
|
|
selects.value = []
|
|
@@ -172,4 +191,11 @@ const gotoDraw = () => {
|
|
|
padding: 0 24px 2px;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+.select-menus {
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ bottom: var(--boundMargin);
|
|
|
+}
|
|
|
</style>
|