mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 15:36:45 +08:00
parent
4bd9c4c0fc
commit
d21f4ffae6
11 changed files with 23 additions and 8 deletions
|
@ -4,7 +4,7 @@
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
:before-close="beforeClose"
|
:before-close="beforeClose"
|
||||||
:size="size"
|
:size="isFull ? '100%' : size"
|
||||||
:close-on-press-escape="autoClose"
|
:close-on-press-escape="autoClose"
|
||||||
:close-on-click-modal="autoClose"
|
:close-on-click-modal="autoClose"
|
||||||
>
|
>
|
||||||
|
@ -24,7 +24,13 @@
|
||||||
</template>
|
</template>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<el-tooltip :content="loadTooltip()" placement="top" v-if="fullScreen">
|
<el-tooltip :content="loadTooltip()" placement="top" v-if="fullScreen">
|
||||||
<el-button @click="toggleFullscreen" link icon="FullScreen" plain class="mr-5"></el-button>
|
<el-button
|
||||||
|
@click="toggleFullscreen"
|
||||||
|
link
|
||||||
|
icon="FullScreen"
|
||||||
|
plain
|
||||||
|
class="-mt-1 mr-2"
|
||||||
|
></el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<slot v-if="slots.extra" name="extra"></slot>
|
<slot v-if="slots.extra" name="extra"></slot>
|
||||||
</template>
|
</template>
|
||||||
|
@ -56,6 +62,8 @@ import { GlobalStore } from '@/store';
|
||||||
const globalStore = GlobalStore();
|
const globalStore = GlobalStore();
|
||||||
const drawerContent = ref();
|
const drawerContent = ref();
|
||||||
|
|
||||||
|
const isFull = ref();
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
header: String,
|
header: String,
|
||||||
back: Function,
|
back: Function,
|
||||||
|
@ -155,6 +163,7 @@ const beforeClose = (done: () => void) => {
|
||||||
|
|
||||||
function toggleFullscreen() {
|
function toggleFullscreen() {
|
||||||
globalStore.isFullScreen = !globalStore.isFullScreen;
|
globalStore.isFullScreen = !globalStore.isFullScreen;
|
||||||
|
isFull.value = globalStore.isFullScreen;
|
||||||
}
|
}
|
||||||
const loadTooltip = () => {
|
const loadTooltip = () => {
|
||||||
return i18n.global.t('commons.button.' + (globalStore.isFullScreen ? 'quitFullscreen' : 'fullscreen'));
|
return i18n.global.t('commons.button.' + (globalStore.isFullScreen ? 'quitFullscreen' : 'fullscreen'));
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
:title="$t('menu.terminal')"
|
:title="$t('menu.terminal')"
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
:resource="title"
|
:resource="title"
|
||||||
:size="globalStore.isFullScreen ? 'full' : 'large'"
|
|
||||||
:autoClose="false"
|
:autoClose="false"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<Terminal class="mt-2" style="height: calc(100vh - 175px)" ref="terminalRef"></Terminal>
|
<Terminal class="mt-2" style="height: calc(100vh - 175px)" ref="terminalRef"></Terminal>
|
||||||
|
|
||||||
|
@ -23,8 +23,6 @@
|
||||||
import { nextTick, ref } from 'vue';
|
import { nextTick, ref } from 'vue';
|
||||||
import Terminal from '@/components/terminal/index.vue';
|
import Terminal from '@/components/terminal/index.vue';
|
||||||
import { closeOllamaModel } from '@/api/modules/ai';
|
import { closeOllamaModel } from '@/api/modules/ai';
|
||||||
import { GlobalStore } from '@/store';
|
|
||||||
const globalStore = GlobalStore();
|
|
||||||
|
|
||||||
const title = ref();
|
const title = ref();
|
||||||
const open = ref(false);
|
const open = ref(false);
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
size="large"
|
size="large"
|
||||||
:autoClose="false"
|
:autoClose="false"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<el-form ref="formRef" @submit.prevent label-position="top" :model="form" :rules="rules" v-loading="loading">
|
<el-form ref="formRef" @submit.prevent label-position="top" :model="form" :rules="rules" v-loading="loading">
|
||||||
<el-form-item :label="$t('app.source')">
|
<el-form-item :label="$t('app.source')">
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
:resource="name"
|
:resource="name"
|
||||||
size="large"
|
size="large"
|
||||||
:autoClose="false"
|
:autoClose="false"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<div v-loading="loading">
|
<div v-loading="loading">
|
||||||
<el-form ref="formRef" @submit.prevent label-position="top">
|
<el-form ref="formRef" @submit.prevent label-position="top">
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
:resource="title"
|
:resource="title"
|
||||||
:autoClose="!terminalOpen"
|
:autoClose="!terminalOpen"
|
||||||
size="large"
|
size="large"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-form ref="formRef" :model="form" label-position="top">
|
<el-form ref="formRef" :model="form" label-position="top">
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
size="large"
|
size="large"
|
||||||
:autoClose="false"
|
:autoClose="false"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<el-form ref="formRef" label-position="top" :model="form" label-width="80px" :rules="rules">
|
<el-form ref="formRef" label-position="top" :model="form" label-width="80px" :rules="rules">
|
||||||
<el-form-item :label="$t('commons.table.name')" prop="name">
|
<el-form-item :label="$t('commons.table.name')" prop="name">
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
size="large"
|
size="large"
|
||||||
:autoClose="false"
|
:autoClose="false"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<el-form
|
<el-form
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
:resource="dialogData.title !== 'edit' ? '' : dialogData.rowData?.name"
|
:resource="dialogData.title !== 'edit' ? '' : dialogData.rowData?.name"
|
||||||
size="large"
|
size="large"
|
||||||
:autoClose="false"
|
:autoClose="false"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<el-form ref="formRef" v-loading="loading" label-position="top" :model="dialogData.rowData" :rules="rules">
|
<el-form ref="formRef" v-loading="loading" label-position="top" :model="dialogData.rowData" :rules="rules">
|
||||||
<el-form-item :label="$t('commons.table.name')" prop="name">
|
<el-form-item :label="$t('commons.table.name')" prop="name">
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
:resource="scriptName"
|
:resource="scriptName"
|
||||||
size="large"
|
size="large"
|
||||||
:autoClose="false"
|
:autoClose="false"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<template #content>
|
<template #content>
|
||||||
<Terminal style="height: calc(100vh - 175px); margin-top: 18px" ref="terminalRef"></Terminal>
|
<Terminal style="height: calc(100vh - 175px); margin-top: 18px" ref="terminalRef"></Terminal>
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
@close="handleClose"
|
@close="handleClose"
|
||||||
size="large"
|
size="large"
|
||||||
:autoClose="false"
|
:autoClose="false"
|
||||||
|
:fullScreen="true"
|
||||||
>
|
>
|
||||||
<template #content>
|
<template #content>
|
||||||
<Terminal style="height: calc(100vh - 100px)" ref="terminalRef"></Terminal>
|
<Terminal style="height: calc(100vh - 100px)" ref="terminalRef"></Terminal>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-if="recordShow" v-loading="loading">
|
<div v-if="recordShow" v-loading="loading">
|
||||||
<div class="app-status p-mt-20">
|
<div class="app-status card-interval">
|
||||||
<el-card>
|
<el-card>
|
||||||
<div class="flex w-full flex-col gap-4 md:flex-row">
|
<div class="flex w-full flex-col gap-4 md:flex-row">
|
||||||
<div class="flex flex-wrap gap-4 ml-3">
|
<div class="flex flex-wrap gap-4 ml-3">
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
class="w-full"
|
class="w-full"
|
||||||
:key="currentRecord?.taskID"
|
:key="currentRecord?.taskID"
|
||||||
@stop-reading="search(false)"
|
@stop-reading="search(false)"
|
||||||
:heightDiff="430"
|
:heightDiff="420"
|
||||||
:config="{
|
:config="{
|
||||||
type: 'task',
|
type: 'task',
|
||||||
colorMode: 'task',
|
colorMode: 'task',
|
||||||
|
@ -330,7 +330,7 @@ defineExpose({
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.infinite-list {
|
.infinite-list {
|
||||||
height: calc(100vh - 320px);
|
height: calc(100vh - 318px);
|
||||||
.select-sign {
|
.select-sign {
|
||||||
&::before {
|
&::before {
|
||||||
float: left;
|
float: left;
|
||||||
|
|
Loading…
Add table
Reference in a new issue