Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
‘superliu’
3 years ago
Commit
31725a7c5736b3c00cfa2fc384d69c7ed35a1874
1 parent
24e62060
对比分析配置 查询列表匹配问题以及控制追加场景问题
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
9 deletions
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/config/index.html
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/config/index.js
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/config/index.html
View file @
31725a7
...
...
@@ -132,22 +132,23 @@
<cm-dialog
title=
"保存场景"
width=
"500px"
:showDialogVisible=
"dialogFormVisible"
@
hidedialog=
"showDialogForm"
@
okfunc=
"saveAnalysis"
>
<template
v-slot
>
<div
style=
"display:inline-block;margin-bottom: 10px"
>
<div
style=
"display:inline-block;margin-bottom: 10px"
>
<el-radio-group
v-model=
"isAdd"
@
change=
"analysisChange"
>
<el-radio
:label=
"false"
border
>
新增场景分类
<el-radio
:label=
"false"
border
:disabled=
"isEdit"
>
新增场景分类{{isEdit}}
</el-radio>
<el-radio
:label=
"true"
border
>
<el-radio
:label=
"true"
border
>
追加场景分类
</el-radio>
</el-radio-group>
</div>
<div
v-if=
"!isAdd"
style=
"padding: 3px 10px;"
>
<div
v-if=
"!isAdd
"
style=
"padding: 3px 10px;"
>
<el-input
v-model=
"form.parentName"
placeholder=
"请输入场景分类"
/>
</div>
<div
v-if=
"!isAdd"
style=
"padding: 3px 10px;"
>
<div
v-if=
"!isAdd
"
style=
"padding: 3px 10px;"
>
<el-input
v-model=
"form.desc"
placeholder=
"请输入场景分类描述"
/>
</div>
<div
v-else
style=
"padding: 3px 10px;"
>
<el-select
v-model=
"form.parentId"
placeholder=
"请选择场景分类"
style=
"width: 100%"
>
<el-option
...
...
hg-monitor-web-zj/src/main/resources/static/vue3/src/views/analysis/config/index.js
View file @
31725a7
...
...
@@ -147,7 +147,14 @@ export default {
const
tabSecondList
=
Vue
.
ref
([]);
let
dialogFormVisible
=
Vue
.
ref
(
false
);
let
parentList
=
Vue
.
ref
([]);
let
isAdd
=
Vue
.
ref
(
false
);
var
isEdit
=
Vue
.
ref
(
false
);
var
isAdd
=
Vue
.
ref
(
false
);
if
(
false
==
id
){
isEdit
=
false
;
}
else
{
isEdit
=
true
;
}
let
count
=
Vue
.
ref
(
0
);
let
countFirst
=
Vue
.
ref
(
0
);
...
...
@@ -167,10 +174,12 @@ export default {
let
getResType
=
(
arr
)
=>
{
var
types
=
arr
.
map
(
function
(
v
)
{
return
v
.
id
;
});
resTypeArr
.
value
=
types
;
getParams
.
value
.
resType
=
resTypeArr
.
value
.
join
(
','
);
loeadTable
();
}
let
getKpiType
=
(
arr
)
=>
{
...
...
@@ -179,6 +188,7 @@ export default {
return
v
.
kpiId
;
});
kpiTypeArr
.
value
=
types
;
getParams
.
value
.
kpiId
=
kpiTypeArr
.
value
.
join
(
','
);
loeadTable
();
}
let
getBizType
=
(
arr
)
=>
{
...
...
@@ -186,10 +196,11 @@ export default {
return
v
.
busId
;
});
busTypeArr
.
value
=
types
;
getParams
.
value
.
busId
=
busTypeArr
.
value
.
join
(
','
);
loeadTable
();
}
// 查询参数
let
getParams
=
Vue
.
ref
({
var
getParams
=
Vue
.
ref
({
keyWords
:
keyWords
.
value
,
resType
:
resTypeArr
.
value
.
join
(
','
),
kpiId
:
kpiTypeArr
.
value
.
join
(
','
),
...
...
@@ -235,7 +246,6 @@ export default {
let
getPageInfoSecond
=
({
page
,
limit
})
=>
{
getParams
.
value
.
page
=
page
;
getParams
.
value
.
limit
=
limit
;
// 下一页搜索
loadSecondList
();
}
...
...
@@ -380,6 +390,11 @@ export default {
// 点击按钮搜索
let
onBtnSearch
=
()
=>
{
getParams
.
value
.
busId
=
busTypeArr
.
value
.
join
(
','
);
getParams
.
value
.
resType
=
resTypeArr
.
value
.
join
(
','
);
getParams
.
value
.
kpiId
=
kpiTypeArr
.
value
.
join
(
','
);
getParams
.
value
.
keyWords
=
keyWords
.
value
;
loeadTable
(
true
);
}
...
...
@@ -441,6 +456,7 @@ export default {
resourceList
:
resList
}]
}
debugger
let
url
=
''
;
if
(
isAdd
.
value
==
false
)
{
...
...
@@ -579,6 +595,7 @@ export default {
timeRangeChange
,
isAdd
,
isEdit
,
analysisChange
,
dialogFormVisible
,
showDialogForm
,
...
...
Please
register
or
login
to post a comment