diff --git a/src/views/abnormalAlarm/components/tableList.vue b/src/views/abnormalAlarm/components/tableList.vue
index 6958d0a..3913ad9 100644
--- a/src/views/abnormalAlarm/components/tableList.vue
+++ b/src/views/abnormalAlarm/components/tableList.vue
@@ -87,7 +87,10 @@ export default {
this.innerSelectedRowKeys = [key]
}
}
- }
+ },
+ dblclick: () => {
+ this.$emit("rowDbclick",record)
+ },
}
}
},
diff --git a/src/views/abnormalAlarm/databaseMonitor/overview/index.vue b/src/views/abnormalAlarm/databaseMonitor/overview/index.vue
index 72c37d6..3632eec 100644
--- a/src/views/abnormalAlarm/databaseMonitor/overview/index.vue
+++ b/src/views/abnormalAlarm/databaseMonitor/overview/index.vue
@@ -12,16 +12,16 @@
- edit
+ Edit
-
+
Delete
-
+
Refresh
@@ -30,34 +30,37 @@
-
-
-
-

-

-
{{ record.online?"Connecting":"Disconnect" }}
-
-
-
- {{ text }}
-
-
- {{ text?text:"--" }}
-
-
- {{ text?text:"--" }}
-
-
- {{ text?text:"--" }}
-
-
+
+
+
+
+

+

+
{{ record.online?"Connecting":"Disconnect" }}
+
+
+
+ {{ text }}
+
+
+ {{ text?text:"--" }}
+
+
+ {{ text?text:"--" }}
+
+
+ {{ text?text:"--" }}
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -134,7 +195,7 @@ const columns = [
customRender: 'alarms',
}
},{
- title: 'CPU UUTILZATION',
+ title: 'CPU UTILIZATION',
align: 'left',
dataIndex: 'cpuUutilzation',
scopedSlots: {
@@ -166,7 +227,11 @@ export default {
visible: false,
form: this.$form.createForm(this),
formVal: {
+ username: "",
+ password: "",
name: "",
+ type: undefined,
+ port: "",
ipAddress:""
},
currentId:"",
@@ -224,10 +289,45 @@ export default {
this.getSysDatabase()
},
onAdd() {
+ this.isAdd = true
this.visible = true
},
onEdit() {
+ this.isAdd = false
this.visible = true
+ getAction("/sysDatabase/findInfo", {id:this.currentId}).then(res => {
+ if (res.success) {
+ this.form.setFieldsValue({
+ username: res.result.username,
+ password: res.result.password,
+ name: res.result.name,
+ type: res.result.type,
+ port: res.result.port,
+ ipAddress: res.result.ipAddress
+ });
+ } else {
+ this.$message.warning("This operation fails. Contact your system administrator")
+ }
+ })
+ },
+ onDelete() {
+ let _this = this
+ this.$confirm({
+ title: 'Are you sure to delete this item?',
+ onOk() {
+ deleteAction("/sysDatabase/deleteById", {id:_this.currentId}).then(res => {
+ if (res.success) {
+ _this.$message.success("success")
+ _this.getSysDatabase()
+ } else {
+ _this.$message.warning("This operation fails. Contact your system administrator")
+ }
+ })
+ },
+ onCancel() {
+ console.log('Cancel');
+ },
+ });
},
onRowClick(record) {
this.currentId = record.id
@@ -236,15 +336,15 @@ export default {
this.form.validateFields((err, values) => {
if (!err) {
console.log('Received values of form: ', values);
- // this.visible = false
if (this.isAdd) {
- postAction("/sysServer/create", values).then(res => {
+ postAction("/sysDatabase/create", values).then(res => {
if (res.success) {
+ this.form.resetFields()
this.visible = false
this.$message.success("success")
- this.getSysServer()
+ this.getSysDatabase()
} else {
- this.$message.warning("This operation fails. Contact your system administrator")
+ this.$message.info(res.result.message)
}
})
} else {
@@ -252,13 +352,14 @@ export default {
id: this.currentId,
...values
}
- httpAction("/sysServer/update", params, "put").then(res => {
+ httpAction("/sysDatabase/update", params, "put").then(res => {
if (res.success) {
+ this.form.resetFields()
this.visible = false
this.$message.success("success")
- this.getSysServer()
+ this.getSysDatabase()
} else {
- this.$message.warning("This operation fails. Contact your system administrator")
+ this.$message.info(res.result.message)
}
})
}
@@ -266,7 +367,11 @@ export default {
});
},
onCancel() {
+ this.form.resetFields()
this.visible = false
+ },
+ onRowDbclick() {
+ this.$router.push("/alarm/databaseMonitor/instances")
}
},
}
@@ -305,11 +410,15 @@ export default {
}
}
.view-main{
- height: calc(100% - 65px);
+ height: calc(100% - 50px);
margin-left: 20px;
position: relative;
overflow: hidden;
padding-top: 15px;
+ &-table{
+ height: calc(100% - 30px);
+ overflow: auto;
+ }
.ant-pagination{
position: absolute;
left: 50%;
@@ -350,4 +459,8 @@ export default {
/deep/.ant-modal-title{
letter-spacing: 1px;
}
+.ant-input-number{
+ width: 100%;
+ background-color: #03353f !important
+}
\ No newline at end of file
diff --git a/src/views/abnormalAlarm/emailMonitor/overview/index.vue b/src/views/abnormalAlarm/emailMonitor/overview/index.vue
index 139bf24..9627410 100644
--- a/src/views/abnormalAlarm/emailMonitor/overview/index.vue
+++ b/src/views/abnormalAlarm/emailMonitor/overview/index.vue
@@ -12,16 +12,16 @@
- edit
+ Edit
-
+
Delete
-
+
Refresh
@@ -30,36 +30,40 @@
-
-
-
-

-

-
{{ record.online?"Connecting":"Disconnect" }}
-
-
-
- {{ text?text:"--" }}
-
-
- {{ text?text:"--" }}
-
-
- {{ text?text:"--" }}
-
-
- {{ text }}
-
-
- {{ text?text:"--" }}
-
-
+
+
+
+
+

+

+
{{ record.online?"Connecting":"Disconnect" }}
+
+
+
+ {{ text?text:"--" }}
+
+
+ {{ text?text:"--" }}
+
+
+ {{ text?text:"--" }}
+
+
+ {{ text }}
+
+
+ {{ text?text:"--" }}
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enable
+
+
+ Disabled
+
+
+
+
+
@@ -168,7 +248,12 @@ export default {
form: this.$form.createForm(this),
formVal: {
name: "",
- ipAddress:""
+ emailServerAddress: "",
+ username: "",
+ password: "",
+ emilType: "",
+ enabled: "",
+ port: ""
},
currentId:"",
columns,
@@ -225,27 +310,64 @@ export default {
this.getSysEmail()
},
onAdd() {
+ this.isAdd = true
this.visible = true
},
onEdit() {
+ this.isAdd = false
this.visible = true
+ getAction("/sysEmail/findInfo", {id:this.currentId}).then(res => {
+ if (res.success) {
+ this.form.setFieldsValue({
+ name: res.result.username,
+ emailServerAddress: res.result.emailServerAddress,
+ username: res.result.username,
+ password: res.result.password,
+ emilType: res.result.emilType,
+ enabled: res.result.enabled,
+ port: res.result.port
+ });
+ } else {
+ this.$message.warning("This operation fails. Contact your system administrator")
+ }
+ })
+ },
+ onDelete() {
+ let _this = this
+ this.$confirm({
+ title: 'Are you sure to delete this item?',
+ onOk() {
+ deleteAction("/sysEmail/deleteById", {id:_this.currentId}).then(res => {
+ if (res.success) {
+ _this.$message.success("success")
+ _this.getSysEmail()
+ } else {
+ _this.$message.warning("This operation fails. Contact your system administrator")
+ }
+ })
+ },
+ onCancel() {
+ console.log('Cancel');
+ },
+ });
},
onRowClick(record) {
+ console.log(record);
this.currentId = record.id
},
onSave() {
this.form.validateFields((err, values) => {
if (!err) {
console.log('Received values of form: ', values);
- // this.visible = false
if (this.isAdd) {
- postAction("/sysServer/create", values).then(res => {
+ postAction("/sysEmail/create", values).then(res => {
if (res.success) {
+ this.form.resetFields()
this.visible = false
this.$message.success("success")
- this.getSysServer()
+ this.getSysEmail()
} else {
- this.$message.warning("This operation fails. Contact your system administrator")
+ this.$message.info(res.result.message)
}
})
} else {
@@ -253,13 +375,14 @@ export default {
id: this.currentId,
...values
}
- httpAction("/sysServer/update", params, "put").then(res => {
+ httpAction("/sysEmail/update", params, "put").then(res => {
if (res.success) {
+ this.form.resetFields()
this.visible = false
this.$message.success("success")
- this.getSysServer()
+ this.getSysEmail()
} else {
- this.$message.warning("This operation fails. Contact your system administrator")
+ this.$message.info(res.result.message)
}
})
}
@@ -267,7 +390,11 @@ export default {
});
},
onCancel() {
+ this.form.resetFields()
this.visible = false
+ },
+ onRowDbclick() {
+ this.$router.push("/alarm/emailMonitor/instances")
}
},
}
@@ -306,11 +433,15 @@ export default {
}
}
.view-main{
- height: calc(100% - 65px);
+ height: calc(100% - 50px);
margin-left: 20px;
position: relative;
overflow: hidden;
padding-top: 15px;
+ &-table{
+ height: calc(100% - 30px);
+ overflow: auto;
+ }
.ant-pagination{
position: absolute;
left: 50%;
@@ -351,4 +482,8 @@ export default {
/deep/.ant-modal-title{
letter-spacing: 1px;
}
+.ant-input-number{
+ width: 100%;
+ background-color: #03353f !important
+}
\ No newline at end of file
diff --git a/src/views/abnormalAlarm/serverMonitor/overview/index.vue b/src/views/abnormalAlarm/serverMonitor/overview/index.vue
index 7e3fdfa..18c2f1b 100644
--- a/src/views/abnormalAlarm/serverMonitor/overview/index.vue
+++ b/src/views/abnormalAlarm/serverMonitor/overview/index.vue
@@ -12,16 +12,16 @@
- edit
+ Edit
-
+
Delete
-
+
Refresh
@@ -30,34 +30,37 @@
-
-
-
-

-

-
{{ text }}
-
-
-
- {{ text }}
-
-
- {{ text?text:"--" }}
-
-
- {{ text?text:"--" }}
-
-
- {{ text?text:"--" }}
-
-
+
+
+
+
+

+

+
{{ text }}
+
+
+
+ {{ text }}
+
+
+ {{ text?text:"--" }}
+
+
+ {{ text?text:"--" }}
+
+
+ {{ text?text:"--" }}
+
+
+
@@ -126,7 +141,7 @@ const columns = [
customRender: 'alarms',
}
},{
- title: 'CPU UUTILZATION',
+ title: 'CPU UTILIZATION',
align: 'left',
dataIndex: 'cpuUutilzation',
scopedSlots: {
@@ -216,10 +231,41 @@ export default {
this.getSysServer()
},
onAdd() {
+ this.isAdd = true
this.visible = true
},
onEdit() {
+ this.isAdd = false
this.visible = true
+ getAction("/sysServer/findInfo", {id:this.currentId}).then(res => {
+ if (res.success) {
+ this.form.setFieldsValue({
+ name: res.result.name,
+ ipAddress: res.result.ipAddress
+ });
+ } else {
+ this.$message.warning("This operation fails. Contact your system administrator")
+ }
+ })
+ },
+ onDelete() {
+ let _this = this
+ this.$confirm({
+ title: 'Are you sure to delete this item?',
+ onOk() {
+ deleteAction("/sysServer/deleteById", {id:_this.currentId}).then(res => {
+ if (res.success) {
+ _this.$message.success("success")
+ _this.getSysServer()
+ } else {
+ _this.$message.warning("This operation fails. Contact your system administrator")
+ }
+ })
+ },
+ onCancel() {
+ console.log('Cancel');
+ },
+ });
},
onRowClick(record) {
this.currentId = record.id
@@ -228,10 +274,10 @@ export default {
this.form.validateFields((err, values) => {
if (!err) {
console.log('Received values of form: ', values);
- // this.visible = false
if (this.isAdd) {
postAction("/sysServer/create", values).then(res => {
if (res.success) {
+ this.form.resetFields()
this.visible = false
this.$message.success("success")
this.getSysServer()
@@ -246,6 +292,7 @@ export default {
}
httpAction("/sysServer/update", params, "put").then(res => {
if (res.success) {
+ this.form.resetFields()
this.visible = false
this.$message.success("success")
this.getSysServer()
@@ -258,7 +305,11 @@ export default {
});
},
onCancel() {
+ this.form.resetFields()
this.visible = false
+ },
+ onRowDbclick() {
+ this.$router.push("/alarm/serverMonitor/instances")
}
},
}
@@ -297,11 +348,15 @@ export default {
}
}
.view-main{
- height: calc(100% - 65px);
+ height: calc(100% - 50px);
margin-left: 20px;
position: relative;
overflow: hidden;
padding-top: 15px;
+ &-table{
+ height: calc(100% - 30px);
+ overflow: auto;
+ }
.ant-pagination{
position: absolute;
left: 50%;