feat: 使用embed将静态资源打包进二进制文件&其他小功能优化

This commit is contained in:
meilin.huang
2022-08-24 20:55:42 +08:00
parent 98a4c92576
commit cf2bc6785c
67 changed files with 1404 additions and 43 deletions

View File

@@ -352,7 +352,6 @@ export default defineComponent({
onMounted(async () => {
search();
state.projects = await projectApi.accountProjects.request(null);
});
const filterTableInfos = computed(() => {
@@ -399,7 +398,8 @@ export default defineComponent({
search();
};
const editDb = (isAdd = false) => {
const editDb = async (isAdd = false) => {
state.projects = await projectApi.accountProjects.request(null);
if (isAdd) {
state.dbEditDialog.data = null;
state.dbEditDialog.title = '新增数据库资源';

View File

@@ -227,7 +227,6 @@ export default defineComponent({
onMounted(async () => {
search();
state.projects = await projectApi.accountProjects.request(null);
});
const choose = (item: any) => {
@@ -260,7 +259,8 @@ export default defineComponent({
search();
};
const openFormDialog = (machine: any) => {
const openFormDialog = async (machine: any) => {
state.projects = await projectApi.accountProjects.request(null);
let dialogTitle;
if (machine) {
state.machineEditDialog.data = state.currentData as any;

View File

@@ -250,7 +250,6 @@ export default defineComponent({
onMounted(async () => {
search();
state.projects = await projectApi.accountProjects.request(null);
});
const handlePageChange = (curPage: number) => {
@@ -371,7 +370,8 @@ export default defineComponent({
state.total = res.total;
};
const editMongo = (isAdd = false) => {
const editMongo = async (isAdd = false) => {
state.projects = await projectApi.accountProjects.request(null);
if (isAdd) {
state.mongoEditDialog.data = null;
state.mongoEditDialog.title = '新增mongo';

View File

@@ -152,7 +152,7 @@
:remote-method="getAccount"
v-model="showMemDialog.memForm.accountId"
filterable
placeholder="请选择"
placeholder="请输入账号模糊搜索并选择"
>
<el-option v-for="item in showMemDialog.accounts" :key="item.id" :label="item.username" :value="item.id"> </el-option>
</el-select>

View File

@@ -31,7 +31,13 @@
<el-table-column prop="creator" label="创建人" min-width="100"></el-table-column>
<el-table-column label="更多" min-width="130" fixed="right">
<template #default="scope">
<el-link v-if="scope.row.mode == 'standalone' || scope.row.mode == 'sentinel'" type="primary" @click="info(scope.row)" :underline="false">单机信息</el-link>
<el-link
v-if="scope.row.mode == 'standalone' || scope.row.mode == 'sentinel'"
type="primary"
@click="info(scope.row)"
:underline="false"
>单机信息</el-link
>
<el-link @click="onShowClusterInfo(scope.row)" v-if="scope.row.mode == 'cluster'" type="success" :underline="false"
>集群信息</el-link
>
@@ -202,7 +208,6 @@ export default defineComponent({
onMounted(async () => {
search();
state.projects = await projectApi.accountProjects.request(null);
});
const handlePageChange = (curPage: number) => {
@@ -258,7 +263,8 @@ export default defineComponent({
state.total = res.total;
};
const editRedis = (isAdd = false) => {
const editRedis = async (isAdd = false) => {
state.projects = await projectApi.accountProjects.request(null);
if (isAdd) {
state.redisEditDialog.data = null;
state.redisEditDialog.title = '新增redis';