|
|
@ -1,9 +1,9 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div ref="websiteRef">
|
|
|
|
<LayoutContent>
|
|
|
|
<LayoutContent>
|
|
|
|
<AppStatus :app-key="'nginx'" @setting="setting"></AppStatus>
|
|
|
|
<AppStatus :app-key="'nginx'" :parentRef="websiteRef"></AppStatus>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<el-card v-if="!openNginxConfig">
|
|
|
|
<el-card>
|
|
|
|
<LayoutContent :header="$t('website.website')">
|
|
|
|
<ComplexTable :pagination-config="paginationConfig" :data="data" @search="search()">
|
|
|
|
<ComplexTable :pagination-config="paginationConfig" :data="data" @search="search()">
|
|
|
|
<template #toolbar>
|
|
|
|
<template #toolbar>
|
|
|
|
<el-button type="primary" plain @click="openCreate">
|
|
|
|
<el-button type="primary" plain @click="openCreate">
|
|
|
@ -30,13 +30,16 @@
|
|
|
|
fix
|
|
|
|
fix
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</ComplexTable>
|
|
|
|
</ComplexTable>
|
|
|
|
</el-card>
|
|
|
|
</LayoutContent>
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
<el-card v-if="openNginxConfig">
|
|
|
|
|
|
|
|
<NginxConfig></NginxConfig>
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
<CreateWebSite ref="createRef" @close="search"></CreateWebSite>
|
|
|
|
<CreateWebSite ref="createRef" @close="search"></CreateWebSite>
|
|
|
|
<DeleteWebsite ref="deleteRef" @close="search"></DeleteWebsite>
|
|
|
|
<DeleteWebsite ref="deleteRef" @close="search"></DeleteWebsite>
|
|
|
|
<WebSiteGroup ref="groupRef"></WebSiteGroup>
|
|
|
|
<WebSiteGroup ref="groupRef"></WebSiteGroup>
|
|
|
|
</LayoutContent>
|
|
|
|
</LayoutContent>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
@ -49,6 +52,7 @@ import WebSiteGroup from './group/index.vue';
|
|
|
|
import { SearchWebSites } from '@/api/modules/website';
|
|
|
|
import { SearchWebSites } from '@/api/modules/website';
|
|
|
|
import { WebSite } from '@/api/interface/website';
|
|
|
|
import { WebSite } from '@/api/interface/website';
|
|
|
|
import AppStatus from '@/components/app-status/index.vue';
|
|
|
|
import AppStatus from '@/components/app-status/index.vue';
|
|
|
|
|
|
|
|
import NginxConfig from './nginx/index.vue';
|
|
|
|
|
|
|
|
|
|
|
|
import i18n from '@/lang';
|
|
|
|
import i18n from '@/lang';
|
|
|
|
import router from '@/routers';
|
|
|
|
import router from '@/routers';
|
|
|
@ -56,7 +60,7 @@ import router from '@/routers';
|
|
|
|
const createRef = ref();
|
|
|
|
const createRef = ref();
|
|
|
|
const deleteRef = ref();
|
|
|
|
const deleteRef = ref();
|
|
|
|
const groupRef = ref();
|
|
|
|
const groupRef = ref();
|
|
|
|
const websiteRef = ref();
|
|
|
|
let openNginxConfig = ref(false);
|
|
|
|
|
|
|
|
|
|
|
|
const paginationConfig = reactive({
|
|
|
|
const paginationConfig = reactive({
|
|
|
|
currentPage: 1,
|
|
|
|
currentPage: 1,
|
|
|
@ -77,6 +81,9 @@ const search = async () => {
|
|
|
|
paginationConfig.total = res.data.total;
|
|
|
|
paginationConfig.total = res.data.total;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const setting = () => {
|
|
|
|
|
|
|
|
openNginxConfig.value = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const openConfig = (id: number) => {
|
|
|
|
const openConfig = (id: number) => {
|
|
|
|
router.push({ name: 'WebsiteConfig', params: { id: id, tab: 'basic' } });
|
|
|
|
router.push({ name: 'WebsiteConfig', params: { id: id, tab: 'basic' } });
|
|
|
|