处理 alarm 模块,DB Monitor overview 页面表格字段,及样式调整

处理新增表单的校验问题
调整instances tablespace 页签查询接口及参数
This commit is contained in:
任珮宇 2023-11-15 13:38:27 +08:00
parent d57dcfa147
commit 9c30a2d773
2 changed files with 17 additions and 15 deletions

View File

@ -2,8 +2,8 @@
<div style="height: 100%">
<div class="monitor-search">
<a-row type="flex" :gutter="10">
<a-col flex="335px">
<span class="item-label">Database name</span>
<a-col flex="305px">
<span class="item-label">DataSource</span>
<a-select
style="width: 180px"
v-model="name"
@ -154,7 +154,7 @@ export default {
},
getDbNameList() {
let params = {
dbType: 'ORACLE',
sourceId: this.name,
}
getAction('/sysDatabase/dbNames', params).then((res) => {
if (res.success) {
@ -176,8 +176,8 @@ export default {
ondbNameChange(val) {
this.loading = true
let params = {
dbType: 'ORACLE',
dataBase: val,
sourceId: this.name,
dbName: val,
}
getAction('/sysDatabase/dbInfo', params).then((res) => {
this.loading = false

View File

@ -104,11 +104,11 @@
/>
</a-form-item>
<a-form-item label="Drive">
<a-input-number
<a-input
v-decorator="[
'dbDriver',
{
rules: [{ required: true, message: 'Please input port!' }],
rules: [{ required: true, message: 'Please input drive!' }],
initialVale: this.formVal.dbDriver,
},
]"
@ -119,7 +119,7 @@
v-decorator="[
'dbUrl',
{
rules: [{ required: true, message: 'Please input ip address!' }],
rules: [{ required: true, message: 'Please input url!' }],
initialVale: this.formVal.dbUrl,
},
]"
@ -176,20 +176,22 @@ const columns = [
customRender: 'status',
},
},
{
title: 'IP ADDRESS',
align: 'center',
dataIndex: 'ipAddress',
},
// {
// title: 'IP ADDRESS',
// align: 'center',
// dataIndex: 'ipAddress',
// },
{
title: 'DB TYPE',
align: 'center',
dataIndex: 'dataBaseType',
},
{
title: 'PROT',
title: 'URL',
align: 'center',
dataIndex: 'port',
dataIndex: 'url',
ellipsis: true,
width: 300,
},
{
title: 'SLOW QUERY',