节点页面高度,提示弹窗时间统一 4秒

This commit is contained in:
bwcx_jzy 2021-12-08 19:51:45 +08:00
parent ba9a0c1951
commit b684584c47
37 changed files with 117 additions and 162 deletions

View File

@ -39,4 +39,8 @@ export default {
.full-content {
min-height calc(100vh - 120px);
}
.node-full-content {
min-height calc(100vh - 130px);
}
</style>

View File

@ -3,7 +3,7 @@ import axios from "axios";
import Qs from "qs";
import store from "../store";
import router from "../router";
import { NO_NOTIFY_KEY, NO_LOADING_KEY, TOKEN_HEADER_KEY,CACHE_WORKSPACE_ID } from "@/utils/const";
import { NO_NOTIFY_KEY, NO_LOADING_KEY, TOKEN_HEADER_KEY, CACHE_WORKSPACE_ID } from "@/utils/const";
import { refreshToken } from "./user";
import { notification } from "ant-design-vue";
@ -84,7 +84,6 @@ request.interceptors.response.use(
if (res.code === 999) {
notification.error({
message: "禁止访问",
duration: 2,
});
router.push("/system/ipAccess");
return false;
@ -97,7 +96,6 @@ request.interceptors.response.use(
notification.error({
message: res.msg,
description: response.config.url,
duration: 2,
});
}
}
@ -111,7 +109,6 @@ request.interceptors.response.use(
notification.error({
message: "Network Error",
description: "网络开了小差!请重试...:" + error,
duration: 2,
});
return Promise.reject(error);
}
@ -126,13 +123,11 @@ request.interceptors.response.use(
notification.error({
message: "Network Error",
description: "网络开了小差!请重试...:" + error,
duration: 2,
});
} else {
notification.error({
message: status,
description: (statusText || "") + (data || ""),
duration: 2,
});
}
}
@ -147,7 +142,7 @@ function checkJWTToken(res, response) {
notification.warn({
message: res.msg,
description: response.config.url,
duration: 3,
});
store.dispatch("logOut").then(() => {
router.push("/login");
@ -161,7 +156,7 @@ function checkJWTToken(res, response) {
notification.info({
message: "登录信息过期,尝试自动续签...",
description: "如果不需要自动续签,请修改配置文件。该续签将不会影响页面。",
duration: 3,
});
// 续签且重试请求
return redoRequest(response.config);

View File

@ -134,7 +134,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.checkUpgradeVersion();
}
@ -152,7 +151,6 @@ export default {
clearInterval(this.timer);
this.$notification.success({
message: "升级成功",
duration: 2,
});
this.temp = manifest;
setTimeout(() => {
@ -179,7 +177,6 @@ export default {
if (tip) {
this.$notification.success({
message: "没有检查到最新版",
duration: 2,
});
}
return;
@ -192,7 +189,6 @@ export default {
if (tip) {
this.$notification.success({
message: this.temp.upgrade ? "检测到新版本 " + data.tagName : "没有检查到最新版",
duration: 2,
});
}
},
@ -210,7 +206,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.checkUpgradeVersion();
this.spinning = false;

View File

@ -188,7 +188,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.handleFilter();
}
@ -209,7 +208,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.handleFilter();
}

View File

@ -537,7 +537,6 @@ export default {
if (this.temp.releaseMethodDataIdList.length < 2) {
this.$notification.warn({
message: "请选择节点项目",
duration: 2,
});
return false;
}
@ -555,7 +554,6 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editBuildForm"].resetFields();
this.editBuildVisible = false;
@ -578,7 +576,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -602,7 +599,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.triggerVisible = false;
this.handleTrigger(this.temp);
@ -621,7 +617,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -636,7 +631,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.handleFilter();
//
@ -654,7 +648,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.handleFilter();
}

View File

@ -564,7 +564,6 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.targetKeys = [];
this.$refs["linkDispatchForm"].resetFields();
@ -689,7 +688,6 @@ export default {
if (this.temp.nodeIdList.length < 2) {
this.$notification.warn({
message: "请至少选择 2 个节点",
duration: 2,
});
return false;
}
@ -714,7 +712,6 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editDispatchForm"].resetFields();
this.editDispatchVisible = false;
@ -765,7 +762,6 @@ export default {
if (this.fileList.length === 0) {
this.$notification.error({
message: "请选择文件",
duration: 2,
});
return false;
}
@ -781,7 +777,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$message.success({ content: "上传成功,开始分发!", key, duration: 2 });
this.$refs["dispatchForm"].resetFields();
@ -796,7 +791,6 @@ export default {
if (!this.temp.url) {
this.$notification.error({
message: "请填写远程URL",
duration: 2,
});
return false;
}
@ -806,7 +800,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$message.success({ content: "下载成功,开始分发!", key, duration: 2 });
//this.$refs["dispatchForm"].resetFields();
@ -831,7 +824,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}

View File

@ -47,7 +47,6 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
}
// button recover

View File

@ -114,7 +114,6 @@ export default {
if (!this.checkPasswordStrong(values.userPwd)) {
this.$notification.error({
message: "系统管理员密码强度太低",
duration: 2,
});
return false;
}
@ -127,7 +126,6 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
// store action token
this.$store.dispatch("login", { token: res.data.token, longTermToken: res.data.longTermToken }).then(() => {

View File

@ -119,14 +119,12 @@ export default {
if (!this.getGuideFlag) {
this.$notification.success({
message: "开启页面导航",
duration: 2,
});
// GUIDE_HOME_USED_KEY
localStorage.setItem(GUIDE_HOME_USED_KEY, "false");
} else {
this.$notification.success({
message: "关闭页面导航",
duration: 2,
});
}
this.$store.dispatch("toggleGuideFlag");
@ -148,7 +146,6 @@ export default {
} else if (res.code !== 200) {
this.$notification.warn({
message: res.msg,
duration: 2,
});
this.$router.push("/install");
}
@ -159,7 +156,6 @@ export default {
this.$notification.success({
message: "操作成功",
top: "100px",
duration: 1,
});
this.$store.dispatch("clearTabs");
},

View File

@ -159,7 +159,6 @@ export default {
this.$store.dispatch("logOut").then(() => {
this.$notification.success({
message: "退出登录成功",
duration: 2,
});
this.$router.push("/login");
resolve();
@ -184,7 +183,6 @@ export default {
if (this.temp.newPwd !== this.temp.confirmPwd) {
this.$notification.error({
message: "两次密码不一致...",
duration: 2,
});
return;
}
@ -200,7 +198,6 @@ export default {
this.$store.dispatch("logOut").then(() => {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["pwdForm"].resetFields();
this.updateNameVisible = false;
@ -226,7 +223,6 @@ export default {
if (!this.temp.email) {
this.$notification.error({
message: "请输入邮箱地址",
duration: 2,
});
return;
}
@ -234,7 +230,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
}
});
@ -251,7 +247,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
//
this.$refs["userForm"].resetFields();

View File

@ -57,7 +57,7 @@ export default {
} else if (res.code !== 200) {
this.$notification.warn({
message: res.msg,
duration: 2,
});
this.$router.push("/install");
}
@ -100,7 +100,7 @@ export default {
} else {
this.$notification.success({
message: res.msg,
duration: 2,
});
// store action token
this.$store.dispatch("login", { token: res.data.token, longTermToken: res.data.longTermToken }).then(() => {

View File

@ -275,7 +275,7 @@ export default {
if (targetKeysTemp.length <= 0) {
this.$notification.warn({
message: "请选择报警联系人",
duration: 2,
});
return false;
}
@ -292,7 +292,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editMonitorForm"].resetFields();
this.editMonitorVisible = false;
@ -314,7 +314,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}

View File

@ -267,28 +267,28 @@ export default {
if (this.monitorUserKeys.length === 0) {
this.$notification.error({
message: "请选择监控用户",
duration: 2,
});
return false;
}
if (this.methodFeatureKeys.length === 0) {
this.$notification.error({
message: "请选择监控操作",
duration: 2,
});
return false;
}
if (this.classFeatureKeys.length === 0) {
this.$notification.error({
message: "请选择监控的功能",
duration: 2,
});
return false;
}
if (this.notifyUserKeys.length === 0) {
this.$notification.error({
message: "请选择报警联系人",
duration: 2,
});
return false;
}
@ -303,7 +303,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editMonitorForm"].resetFields();
this.editOperateMonitorVisible = false;
@ -325,7 +325,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}

View File

@ -268,7 +268,7 @@ export default {
if (!record.openStatus) {
this.$notification.error({
message: "节点未启用",
duration: 2,
});
return false;
}
@ -332,7 +332,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editNodeForm"].resetFields();
this.editNodeVisible = false;
@ -353,7 +353,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -378,7 +378,7 @@ export default {
if (res.code == 200) {
this.$notification.success({
message: res.msg,
duration: 4,
});
return false;
}
@ -396,7 +396,7 @@ export default {
if (res.code == 200) {
this.$notification.success({
message: res.msg,
duration: 4,
});
return false;
}

View File

@ -1,7 +1,7 @@
<template>
<a-layout class="node-layout">
<!-- 侧边栏 节点管理菜单 -->
<a-layout-sider theme="light" class="sider jpom-node-sider">
<a-layout-sider theme="light" class="node-sider jpom-node-sider">
<a-menu theme="light" mode="inline" :default-selected-keys="selectedKeys" :default-open-keys="defaultOpenKey">
<template v-for="menu in nodeMenuList">
<a-sub-menu v-if="menu.childs" :key="menu.id" :class="menu.id">
@ -174,11 +174,11 @@ export default {
<style scoped>
.sider {
/* height: calc(100vh - 75px); */
overflow-y: auto;
/* overflow-y: auto; */
}
.layout-content {
/* min-height: calc(100vh); */
overflow-y: auto;
/* overflow-y: auto; */
}
/* .node-layout {
padding: 10px;

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="node-full-content">
<div ref="filter" class="filter">
<a-button type="primary" @click="handleAdd">导入证书</a-button>
<a-button type="primary" @click="loadData">刷新</a-button>

View File

@ -1,8 +1,8 @@
<template>
<!-- 布局 -->
<a-layout class="file-layout">
<a-layout class="file-layout node-full-content">
<!-- 目录树 -->
<a-layout-sider theme="light" class="sider" width="25%">
<a-layout-sider theme="light" class="nginx-sider" width="25%">
<a-empty v-if="treeList.length === 0" />
<el-tree ref="tree" :data="treeList" :props="defaultProps" :expand-on-click-node="false" node-key="$treeNodeId" highlight-current default-expand-all @node-click="nodeClick"></el-tree>
</a-layout-sider>
@ -33,16 +33,7 @@
</a-menu>
</a-dropdown>
</div>
<a-table
:data-source="fileList"
:loading="loading"
:columns="columns"
:pagination="false"
bordered
:style="{ 'max-height': tableHeight + 'px' }"
:scroll="{ y: tableHeight - 60 }"
:rowKey="(record, index) => index"
>
<a-table :data-source="fileList" :loading="loading" :columns="columns" :pagination="false" bordered :rowKey="(record, index) => index">
<a-tooltip slot="name" slot-scope="text, record" placement="topLeft" :title="`名称:${text} server 节点数 ${record.serverCount}`">
<div @click="handleEdit(record)" style="color: blue">
<span>{{ text }}</span>
@ -151,14 +142,14 @@ export default {
};
},
mounted() {
this.calcTableHeight();
// this.calcTableHeight();
this.handleFilter();
},
methods: {
//
calcTableHeight() {
this.tableHeight = window.innerHeight - this.$refs["filter"].clientHeight - 175;
},
// //
// calcTableHeight() {
// this.tableHeight = window.innerHeight - this.$refs["filter"].clientHeight - 175;
// },
// Nginx
loadNginxData() {
const params = {
@ -281,7 +272,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editNginxForm"].resetFields();
this.editNginxVisible = false;
@ -310,7 +301,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
//this.loadDirectoryList();
this.loadFileList();
@ -338,7 +329,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editNginxNameForm"].resetFields();
this.editNginxNameVisible = false;
@ -357,7 +348,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadNginxData();
}
@ -369,11 +360,13 @@ export default {
<style scoped>
.file-layout {
padding: 0;
margin: 0;
}
.sider {
.nginx-sider {
border: 1px solid #e2e2e2;
height: calc(100vh - 130px);
overflow-y: auto;
/* height: calc(100vh - 130px); */
/* overflow-y: auto; */
overflow-x: auto;
}
.file-content {
height: calc(100vh - 150px);

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="node-full-content">
<div ref="filter" class="filter">
<a-button type="primary" @click="handleFilter">刷新</a-button>
<a-button type="primary" @click="handleAdd">新增</a-button>

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="node-full-content">
<div ref="filter" class="filter">
<a-button type="primary" @click="handleAdd">新增</a-button>
<a-button type="primary" @click="handleFilter">刷新</a-button>

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="node-full-content">
<div ref="filter" class="filter">
<a-button type="primary" @click="handleAdd">新增</a-button>
<a-button type="primary" @click="loadData">刷新</a-button>

View File

@ -311,7 +311,7 @@ export default {
if (Object.keys(this.tempNode).length === 0) {
this.$notification.error({
message: "请选择一个节点",
duration: 2,
});
return;
}
@ -334,7 +334,7 @@ export default {
startUpload() {
this.$notification.info({
message: "正在上传文件,请稍后...",
duration: 2,
});
//
this.uploading = true;
@ -356,7 +356,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.successSize++;
}
@ -379,7 +379,7 @@ export default {
if (Object.keys(this.tempNode).length === 0) {
this.$notification.error({
message: "请选择一个节点",
duration: 2,
});
return;
}
@ -398,7 +398,7 @@ export default {
startZipUpload() {
this.$notification.info({
message: "正在上传文件,请稍后...",
duration: 2,
});
//
this.uploading = true;
@ -421,7 +421,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.successSize++;
this.percentage = 100;
@ -461,7 +461,7 @@ export default {
if (res.code == 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.remoteDownloadData = {};
this.uploadRemoteFileVisible = false;
@ -478,7 +478,7 @@ export default {
if (Object.keys(this.tempNode).length === 0) {
this.$notification.warn({
message: "请选择一个节点",
duration: 2,
});
return false;
}
@ -525,7 +525,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadFileList();
}
@ -537,7 +537,7 @@ export default {
handleDownload(record) {
this.$notification.info({
message: "正在下载,请稍等...",
duration: 5,
});
//
const params = {
@ -577,7 +577,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
this.loadFileList();

View File

@ -1,5 +1,5 @@
<template>
<div class="full-content">
<div class="node-full-content">
<div ref="filter" class="filter">
<!-- <a-select v-model="listQuery.group" allowClear placeholder="请选择分组" class="filter-item" @change="loadData">
<a-select-option v-for="group in groupList" :key="group">{{ group }}</a-select-option>
@ -505,7 +505,7 @@ export default {
if (this.temp.outGivingProject) {
this.$notification.warning({
message: "独立的项目分发请到分发管理中去修改",
duration: 2,
});
return;
}
@ -531,7 +531,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editProjectForm"].resetFields();
this.editProjectVisible = false;
@ -600,7 +600,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -626,7 +626,7 @@ export default {
this.$notification.warning({
message: res.msg,
description: '提示',
duration: 4,
});
}
});
@ -666,7 +666,7 @@ export default {
if (this.selectedRows.length == 0) {
this.$notification.warning({
message: "请选中要启动的项目",
duration: 2,
});
}
this.selectedRows.forEach((value) => {
@ -687,7 +687,7 @@ export default {
if (this.selectedRows.length == 0) {
this.$notification.warning({
message: "请选中要重启的项目",
duration: 2,
});
}
this.selectedRows.forEach((value) => {
@ -707,7 +707,7 @@ export default {
if (this.selectedRows.length == 0) {
this.$notification.warning({
message: "请选中要关闭的项目",
duration: 2,
});
}
this.selectedRows.forEach((value) => {

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="node-full-content">
<a-timeline>
<a-timeline-item>
<span class="layui-elem-quote">文件缓存{{temp.fileSize}}</span>

View File

@ -1,7 +1,7 @@
<template>
<div class="node-system-config">
<div class="node-full-content">
<a-form-model ref="editForm" :model="temp" :label-col="{ span: 3 }" :wrapper-col="{ span: 20 }">
<a-form-model-item>
<a-form-model-item class="node-content-config">
<code-editor v-model="temp.content" :options="{ mode: 'yaml', tabSize: 2 }"></code-editor>
<!-- <a-input v-model="temp.content" type="textarea" :rows="25" style="resize: none" class="node-content-config" placeholder="请输入配置内容,参考项目的配置文件"/> -->
</a-form-model-item>
@ -56,7 +56,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
}
// button recover
@ -67,12 +67,9 @@ export default {
};
</script>
<style scoped>
.node-system-config {
height: calc(100vh - 130px);
overflow-y: scroll;
}
.node-content-config {
max-height: calc(100vh - 240px);
height: calc(100vh - 200px);
overflow-y: scroll;
}
.btn {
margin-left: 20px;

View File

@ -1,7 +1,7 @@
<template>
<a-layout class="log-layout">
<a-layout class="log-layout node-full-content">
<!-- 侧边栏 文件树 -->
<a-layout-sider theme="light" class="sider jpom-node-log-tree" width="20%">
<a-layout-sider theme="light" class="log-sider jpom-node-log-tree" width="20%">
<a-empty v-if="list.length === 0" />
<a-directory-tree :treeData="list" :replaceFields="replaceFields" @select="select"
@rightClick="rightClick" default-expand-all>
@ -205,10 +205,10 @@ export default {
padding: 0;
margin: 0;
}
.sider {
.log-sider {
border: 1px solid #e2e2e2;
height: calc(100vh - 130px);
overflow-y: auto;
/* height: calc(100vh - 130px); */
overflow-x: auto;
}
.log-content {
margin: 0;

View File

@ -1,5 +1,7 @@
<template>
<upgrade :nodeId="this.node.id"></upgrade>
<div :class="`${node.id ? 'node-full-content' : 'full-content'}`">
<upgrade :nodeId="this.node.id"></upgrade>
</div>
</template>
<script>
import upgrade from "@/components/upgrade";

View File

@ -1,5 +1,5 @@
<template>
<div>
<div class="node-full-content">
<template>
<a-alert style="margin-bottom: 20px" message="路径需要配置绝对路径,不支持软链" type="info" />
</template>
@ -67,7 +67,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
}
// button recover

View File

@ -209,7 +209,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadNodeProcess();
}

View File

@ -217,7 +217,7 @@ export default {
if (this.selectedRowKeys.length == 0) {
this.$notification.warning({
message: "请选中要启动的项目",
duration: 2,
});
}
this.selectedRowKeys.forEach((value) => {
@ -237,7 +237,7 @@ export default {
if (this.selectedRowKeys.length == 0) {
this.$notification.warning({
message: "请选中要重启的项目",
duration: 2,
});
}
console.log(this.selectedRowKeys);
@ -258,7 +258,7 @@ export default {
if (this.selectedRowKeys.length == 0) {
this.$notification.warning({
message: "请选中要关闭的项目",
duration: 2,
});
}
this.selectedRowKeys.forEach((value) => {
@ -295,7 +295,7 @@ export default {
if (res.code == 200) {
this.$notification.success({
message: res.msg,
duration: 4,
});
return false;
}

View File

@ -138,7 +138,7 @@ export default {
if (Object.keys(this.tempNode).length === 0) {
this.$notification.error({
message: "请选择一个节点",
duration: 2,
});
return;
}
@ -167,7 +167,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadFileList();
@ -232,7 +232,7 @@ export default {
if (Object.keys(this.tempNode).length === 0) {
this.$notification.warn({
message: "请选择一个节点",
duration: 2,
});
return false;
}
@ -287,7 +287,7 @@ export default {
updateFileData(params).then((res) => {
this.$notification.success({
message: res.msg,
duration: 2,
});
if (res.code == 200) {
this.editFileVisible = false;
@ -337,7 +337,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
//
this.loadData();
@ -365,7 +365,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadFileList();
}

View File

@ -438,7 +438,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
//this.$refs['editSshForm'].resetFields();
this.fileList = [];
@ -506,7 +506,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -558,7 +558,7 @@ export default {
if (this.fileList.length === 0) {
this.$notification.error({
message: "请选择 zip 文件",
duration: 2,
});
return false;
}
@ -575,7 +575,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: "操作成功",
duration: 2,
});
//this.$refs['nodeForm'].resetFields();
this.nodeVisible = false;

View File

@ -258,7 +258,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editForm"].resetFields();
this.editVisible = false;
@ -284,7 +284,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -306,7 +306,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}

View File

@ -235,7 +235,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editBackupForm"].resetFields();
this.createBackupVisible = false;
@ -261,7 +261,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -282,7 +282,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -306,7 +306,7 @@ export default {
startSqlUpload() {
this.$notification.info({
message: "正在上传文件,请稍后...",
duration: 2,
});
//
this.uploading = true;
@ -324,7 +324,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.successSize++;
this.percentage = 100;

View File

@ -80,7 +80,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
}
// button recover
@ -96,7 +96,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
}
// button recover
@ -111,9 +111,6 @@ export default {
height: calc(100vh - 150px);
overflow-y: scroll;
}
.content-config {
max-height: calc(100vh - 295px);
}
.ip-list-config {
max-height: calc((100vh - 320px) / 2);
}

View File

@ -73,7 +73,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
}
// button recover

View File

@ -112,7 +112,7 @@ export default {
//
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editForm"].resetFields();
this.editVisible = false;
@ -148,7 +148,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}

View File

@ -208,7 +208,7 @@ export default {
if (this.targetKeys.length === 0) {
this.$notification.error({
message: "请选择工作空间",
duration: 2,
});
return false;
}
@ -218,7 +218,7 @@ export default {
if (paramsTemp.password.length < 6 || paramsTemp.password.length > 20) {
this.$notification.warn({
message: "密码长度为6-20",
duration: 2,
});
return;
}
@ -232,7 +232,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.$refs["editUserForm"].resetFields();
this.editUserVisible = false;
@ -254,7 +254,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}
@ -275,7 +275,7 @@ export default {
if (res.code === 200) {
this.$notification.success({
message: res.msg,
duration: 2,
});
this.loadData();
}