diff --git a/src/components/martixCraft/Edit/index.vue b/src/components/martixCraft/Edit/index.vue index 4e35e61..4dc7c06 100644 --- a/src/components/martixCraft/Edit/index.vue +++ b/src/components/martixCraft/Edit/index.vue @@ -12,7 +12,12 @@ import FtDialog from 'components/common/FTDialog/index.vue' import TrayGraph from 'components/spray/trayGraph/index.vue' import { FtMessage } from 'libs/message' import { cloneDeep } from 'lodash' +import { Navigation, Pagination } from 'swiper/modules' +import { Swiper, SwiperSlide } from 'swiper/vue' import { nextTick, onMounted, ref } from 'vue' +import 'swiper/css' +import 'swiper/css/pagination' +import 'swiper/css/navigation' const props = defineProps({ id: { @@ -136,6 +141,24 @@ const handleTabsEdit = (targetName: TabPaneName | undefined, action: 'remove' | } form.value.times.splice(activeTab.value, 1) } + swiperInstance?.slideTo(activeTab.value) + // 异步任务调用 + setTimeout(() => { + swiperInstance?.update() + }, 100) +} + +const onSlideChange = (swiper: any) => { + activeTab.value = swiper.activeIndex +} + +let swiperInstance: any = null +const onSwiperInitialized = (swiper: any) => { + swiperInstance = swiper +} + +const tabChangeHandle = () => { + swiperInstance?.slideTo(activeTab.value) } @@ -164,8 +187,17 @@ const handleTabsEdit = (targetName: TabPaneName | undefined, action: 'remove' | - - + + + + +
@@ -298,13 +330,28 @@ const handleTabsEdit = (targetName: TabPaneName | undefined, action: 'remove' |
-
-
+ + diff --git a/src/views/log/index.vue b/src/views/log/index.vue index 4fd22a3..89090f7 100644 --- a/src/views/log/index.vue +++ b/src/views/log/index.vue @@ -116,7 +116,7 @@ const viewParams = (row: any) => { 手动暂停 - + 手动停止 @@ -208,4 +208,7 @@ const viewParams = (row: any) => { .table-box { height: calc(100% - 100px - 120px); } +:deep(.el-tag) { + +}