feat:甘特图菜单页添加刷新按钮

pull/1/head
黄伟杰 4 weeks ago
parent 1cf5a724c1
commit 61c3663e96

@ -25,6 +25,12 @@
</div> </div>
</div> </div>
<div class="toolbar-actions"> <div class="toolbar-actions">
<el-button
circle
@click="emit('refresh')"
>
<el-icon><Refresh /></el-icon>
</el-button>
<el-button <el-button
circle circle
@click="toggleFullscreen" @click="toggleFullscreen"
@ -108,7 +114,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { FullScreen } from '@element-plus/icons-vue' import { FullScreen, Refresh } from '@element-plus/icons-vue'
defineOptions({ name: 'ScheduleCardView' }) defineOptions({ name: 'ScheduleCardView' })
type UnifiedPlan = { type UnifiedPlan = {
@ -142,6 +148,8 @@ withDefaults(
} }
) )
const emit = defineEmits(['refresh'])
const isFullscreen = ref(false) const isFullscreen = ref(false)
const toggleFullscreen = () => { const toggleFullscreen = () => {

@ -35,7 +35,7 @@
<div v-else style="width: 100%; height: calc(100vh - 60px)"> <div v-else style="width: 100%; height: calc(100vh - 60px)">
<div v-loading="loading" style="width: 100%; height: 100%"> <div v-loading="loading" style="width: 100%; height: 100%">
<ScheduleCardView :schedule-list="filteredList" /> <ScheduleCardView :schedule-list="filteredList" @refresh="getList" />
</div> </div>
</div> </div>
</template> </template>

Loading…
Cancel
Save