From 870f8569cf90e24cb8a80ec247f458ff87401f42 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 28 一月 2022 16:21:05 +0800
Subject: [PATCH] 修复系统日志模糊查询功能
---
src/pages/settings/views/clusterManagement.vue | 68 +++++++++++++++++-----------------
1 files changed, 34 insertions(+), 34 deletions(-)
diff --git a/src/pages/settings/views/clusterManagement.vue b/src/pages/settings/views/clusterManagement.vue
index 00813e0..9db717a 100644
--- a/src/pages/settings/views/clusterManagement.vue
+++ b/src/pages/settings/views/clusterManagement.vue
@@ -246,15 +246,15 @@
export default {
data() {
const checkPwd = (rule, value, callback) => {
- if (value=="") {
+ if (value == "") {
return callback(new Error("瀵嗙爜涓嶈兘涓虹┖"));
}
// setTimeout(() => {
- if (value.length != 6) {
- callback(new Error("瀵嗙爜搴斾负6浣�!"));
- } else {
- callback();
- }
+ if (value.length != 6) {
+ callback(new Error("瀵嗙爜搴斾负6浣�!"));
+ } else {
+ callback();
+ }
// }, 1000);
};
const checkID = (rule, value, callback) => {
@@ -303,13 +303,13 @@
clustername: [
{ required: true, message: "璇疯緭鍏ラ泦缇ゅ悕绉�", trigger: "blur" },
],
- clusterpwd: [{ validator: checkPwd, required: true,trigger: "blur" }],
+ clusterpwd: [{ validator: checkPwd, required: true, trigger: "blur" }],
virtualIp: [{ required: true, validator: isIPv4, trigger: "change" }],
},
joinExistRules: {
clusterid: [{ validator: checkID, trigger: "blur" }],
clusterip: [{ validator: isIPv4, trigger: "blur" }],
- clusterpwd: [{ validator: checkPwd, required: true,trigger: "blur" }],
+ clusterpwd: [{ validator: checkPwd, required: true, trigger: "blur" }],
},
};
},
@@ -562,33 +562,33 @@
cancelButtonText: "鍙栨秷",
customClass: "del-account-message-box",
}).then(
- () => {
- this.showCurCluster = false;
- }
- // async () => {
- // let res = await leave();
- // this.$notify({
- // title: res.success ? "鎴愬姛" : "澶辫触",
- // message: res.msg,
- // type: res.success ? "success" : "error",
- // });
- // if (res && res.success) {
- // clearInterval(this.intervalTimer);
- // this.showCurCluster = false;
- // this.ruleForm.virtualIp = "";
- // this.ruleForm.clustername = "";
- // this.ruleForm.clusterpwd = "";
- // this.clusterid = "";
- // }
- // },
- // (err) => {
- // clearInterval(this.intervalTimer);
+ // () => {
// this.showCurCluster = false;
- // this.ruleForm.virtualIp = "";
- // this.ruleForm.clustername = "";
- // this.ruleForm.clusterpwd = "";
- // this.clusterid = "";
// }
+ async () => {
+ let res = await leave();
+ this.$notify({
+ title: res.success ? "鎴愬姛" : "澶辫触",
+ message: res.msg,
+ type: res.success ? "success" : "error",
+ });
+ if (res && res.success) {
+ clearInterval(this.intervalTimer);
+ this.showCurCluster = false;
+ this.ruleForm.virtualIp = "";
+ this.ruleForm.clustername = "";
+ this.ruleForm.clusterpwd = "";
+ this.clusterid = "";
+ }
+ },
+ (err) => {
+ clearInterval(this.intervalTimer);
+ this.showCurCluster = false;
+ this.ruleForm.virtualIp = "";
+ this.ruleForm.clustername = "";
+ this.ruleForm.clusterpwd = "";
+ this.clusterid = "";
+ }
);
},
clearInput(typ) {
@@ -903,7 +903,7 @@
left: 20px;
}
.el-form-item {
- margin-bottom: 10px;
+ margin-bottom: 16px;
.el-input__inner {
background-color: #ffffff;
border: 2px solid transparent;
--
Gitblit v1.8.0