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
鲁尚清
3 years ago
Commit
6982ae7213acdd502ab115c84c276ed7dbfc2575
1 parent
98b61566
【无】对比分析列表搜索条件在一行;设置默认搜索条件,既默认第一个业务、第一个指标;添加/删除完成后重新加载整个页面
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/config/index.js
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/index.html
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/index.js
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/config/index.js
View file @
6982ae7
...
...
@@ -532,8 +532,8 @@ export default {
// 已选择列表
tabFirstList
.
value
=
[];
// 关闭谈画框
// lsq 刷新菜单 2022-08-29
window
.
top
.
location
.
reload
();
// window.top.location.href = window.top.location.origin + "/#/analysis/view/id=105"
window
.
top
.
location
.
href
=
window
.
top
.
location
.
origin
+
'/#/'
+
res
.
str
;
}
...
...
@@ -555,12 +555,23 @@ export default {
proxy
.
$http
.
get
(
"/api-web/manage/kpi/list"
,
{},
function
(
res
)
{
if
(
res
&&
res
.
data
)
{
kpiList
.
value
=
res
.
data
;
//lsq 给默认数据,第一个数据
if
(
kpiList
.
value
.
length
>
0
){
kpiTypeArr
.
value
=
[
kpiList
.
value
[
0
].
kpiId
];
getParams
.
value
.
kpiId
=
kpiList
.
value
[
0
].
kpiId
;
}
loeadTable
();
}
})
proxy
.
$http
.
get
(
"/api-web/home/business/findAllBusType"
,
{},
function
(
res
)
{
if
(
res
&&
res
.
data
)
{
busTypeList
.
value
=
res
.
data
;
//lsq 给一个默认数据,第一个数据 2022-08-29
if
(
busTypeList
.
value
.
length
>
0
){
busTypeArr
.
value
=
[
busTypeList
.
value
[
0
].
busId
];
getParams
.
value
.
busId
=
busTypeList
.
value
[
0
].
busId
;
}
}
})
...
...
@@ -577,7 +588,6 @@ export default {
});
}
});
//LH
setTimeout
(
function
()
{
let
arrs
=
timeRangeArr
.
value
...
...
@@ -598,7 +608,7 @@ export default {
// 挂载完
Vue
.
onMounted
(()
=>
{
init
();
if
(
!
id
)
{
activeName
.
value
=
'second'
;
...
...
@@ -609,7 +619,6 @@ export default {
//编辑追加场景分类数据加载
analysisChange
(
true
);
}
loeadTable
();
// 先加载时间范围,然后在加载
loadTimeRange
(
function
(
defCode
)
{
...
...
@@ -620,12 +629,12 @@ export default {
}
});
});
init
();
console
.
log
(
'onMounted'
);
})
return
{
getParams
,
resTypeList
,
kpiList
,
busTypeList
,
...
...
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/index.html
View file @
6982ae7
...
...
@@ -20,22 +20,17 @@
<el-button
:size=
"$global.elementConfig.size.button"
@
click=
"searchData"
class=
"search-text button-flex-div-center"
type=
"primary"
>
搜索
</el-button>
</div>
</el-col>
</el-row>
<el-row
class=
"list-title"
>
<el-col
:span=
"24"
class=
"text-left"
>
<!--lsq 条件在一行 2022-08-29-->
<router-link
:to=
"'/analysis/add'"
class=
"analysis link-type"
>
<el-button
:size=
"$global.elementConfig.size.button
"
class=
"button-flex-div-center"
type=
"primary"
>
<el-button
:size=
"$global.elementConfig.size.button"
style=
"margin-left:6px;
"
class=
"button-flex-div-center"
type=
"primary"
>
<i
class=
"el-icon-plus"
></i>
新增
</el-button>
</router-link>
</div>
<!-- <el-button type="primary" class="button-flex-div-center"><i class="icon-list icon-list-delete"></i>删除</el-button>-->
</el-col>
</el-row>
<el-row
class=
"analysis-table-div"
>
<el-col
:span=
"24"
>
<el-table
:data=
"tableData"
@
selection-change=
"handleSelectionChange"
border
ref=
"multipleTable"
stripe
...
...
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/index.js
View file @
6982ae7
...
...
@@ -28,7 +28,6 @@ export default {
// 挂载完
Vue
.
onMounted
(()
=>
{
proxy
.
getData
();
})
//获取对比分析列表
const
getData
=
()
=>
{
...
...
@@ -83,6 +82,8 @@ export default {
$
.
get
(
proxy
.
domainName
+
proxy
.
apiUrl1
+
'?access_token='
+
localStorage
.
getItem
(
'access_token'
),
params
,
function
()
{
proxy
.
$global
.
showMsg
(
"删除成功"
,
"success"
);
proxy
.
getData
();
// lsq 刷新菜单 2022-08-29
window
.
top
.
location
.
reload
();
})
}
else
{
proxy
.
$global
.
showMsg
(
"删除失败"
,
"warning"
);
...
...
Please
register
or
login
to post a comment