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
04b58b957c3c86c7996c3402851813c4d0bb1e88
1 parent
625e3e1c
对比分析-删除提示-菜单默认
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
11 deletions
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/config/index.html
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.js
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/config/index.html
View file @
04b58b9
...
...
@@ -142,21 +142,25 @@
</el-radio>
</el-radio-group>
</div>
<div
v-if=
"!isAdd "
style=
"padding: 3px 10px;"
>
<el-select
style=
"width: 100%"
v-model=
"form.addFirstPId"
placeholder=
"请选择菜单"
filterable
@
change=
"dataFilter"
>
<div
v-if=
"!isAdd "
style=
"padding: 3px 10px 3px 39px"
>
<span
class=
"saab"
>
菜单:
</span>
<el-select
style=
"width: 80%"
v-model=
"form.addFirstPId"
placeholder=
"请选择菜单"
filterable
@
change=
"dataFilter"
>
<el-option
v-for=
"item in firstMenu"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</div>
<div
v-if=
"!isAdd "
style=
"padding: 3px 10px;"
>
<el-input
v-model=
"form.parentName"
placeholder=
"请输入场景分类"
/>
<span
class=
"saab"
>
场景分类:
</span>
<el-input
style=
"width: 75%"
v-model=
"form.parentName"
placeholder=
"请输入场景分类"
/>
</div>
<div
v-if=
"!isAdd "
style=
"padding: 3px 10px;"
>
<el-input
v-model=
"form.desc"
placeholder=
"请输入场景分类描述"
/>
<span
class=
"saab"
>
分类描述:
</span>
<el-input
style=
"width: 75%"
v-model=
"form.desc"
placeholder=
"请输入场景分类描述"
/>
</div>
<div
v-else
style=
"padding: 3px 10px;"
>
<el-select
v-model=
"form.parentId"
placeholder=
"请选择场景分类"
style=
"width: 100%"
>
<span
class=
"saab"
>
场景分类:
</span>
<el-select
style=
"width: 75%"
v-model=
"form.parentId"
placeholder=
"请选择场景分类"
>
<el-option
v-for=
"item in parentList"
:key=
"item.id"
...
...
@@ -170,15 +174,28 @@
<!-- <span>比对分析场景</span>-->
<!-- </div>-->
<div
style=
"padding: 3px 10px;"
>
<el-input
v-model=
"form.scene.name"
placeholder=
"请输入场景名称"
/>
<span
class=
"saab"
>
场景名称:
</span>
<el-input
style=
"width: 75%"
v-model=
"form.scene.name"
placeholder=
"请输入场景名称"
/>
</div>
<div
style=
"padding: 3px 10px;"
>
<el-input
v-model=
"form.scene.desc"
placeholder=
"请输入场景描述"
/>
<span
class=
"saab"
>
场景描述:
</span>
<el-input
style=
"width: 75%"
v-model=
"form.scene.desc"
placeholder=
"请输入场景描述"
/>
</div>
<div
style=
"padding: 3px 10px;"
>
<el-input
v-model=
"form.scene.sort"
type=
"number"
:maxlength=
"10"
placeholder=
"请输入排序"
/>
<div
style=
"padding: 3px 10px 3px 39px"
>
<span
class=
"saab"
>
排序:
</span>
<el-input
style=
"width: 80%"
v-model=
"form.scene.sort"
type=
"number"
:maxlength=
"10"
placeholder=
"请输入排序"
/>
</div>
</template>
</cm-dialog>
</div>
<script
type=
"text/css"
>
.
saab
{
width
:
755
px
;
display
:
inline
-
block
;
margin
-
right
:
37
px
;
text
-
align
:
center
;
vertical
-
align
:
middle
;
}
</script>
...
...
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/config/index.js
View file @
04b58b9
...
...
@@ -425,7 +425,6 @@ export default {
}
let
analysisChange
=
(
val
)
=>
{
if
(
val
&&
val
===
true
&&
parentList
.
value
.
length
==
0
)
{
// 加载数据
proxy
.
$http
.
post
(
`
/
api
-
web
/
ContrastAnalysis
/
selectScene
`
,
{},
function
(
res
)
{
...
...
@@ -563,10 +562,29 @@ export default {
proxy
.
$http
.
get
(
`
/
api
-
web
/
ContrastAnalysis
/
getRootMenu
`
,{
menuName
:
''
},
function
(
res
)
{
if
(
res
.
length
>
0
)
{
firstMenu
.
value
=
res
;
firstMenu
.
value
.
forEach
(
function
(
item
,
index
){
if
(
item
.
id
==
'100130900'
){
form
.
value
.
addFirstPId
=
firstMenu
.
value
[
index
].
id
;
return
;
}
});
}
});
//LH
}
//查询对比分析基础数据
let
getBContrastInfoById
=
(
id
)
=>
{
proxy
.
$http
.
get
(
`
/
api
-
web
/
ContrastAnalysis
/
getBContrastInfoById
`
,{
id
:
id
},
function
(
res
)
{
if
(
res
.
success
)
{
console
.
log
(
"============="
,
res
);
form
.
value
.
scene
.
name
=
res
.
object
.
configName
;
form
.
value
.
scene
.
desc
=
res
.
object
.
configDepict
;
// console.log("==================",res);
}
});
}
// 挂载完
Vue
.
onMounted
(()
=>
{
...
...
@@ -575,6 +593,12 @@ export default {
if
(
!
id
){
activeName
.
value
=
'second'
;
}
else
{
isAdd
.
value
=
true
;
//回填基础数据
getBContrastInfoById
(
id
);
//编辑追加场景分类数据加载
analysisChange
(
true
);
}
loeadTable
();
...
...
hg-monitor-web-qh/src/main/resources/static/vue3/src/views/analysis/index.js
View file @
04b58b9
...
...
@@ -81,7 +81,7 @@ export default {
proxy
.
$global
.
confirm
(
"确认删除数据吗?"
,
function
()
{
if
(
true
){
$
.
get
(
proxy
.
domainName
+
proxy
.
apiUrl1
+
'?access_token='
+
localStorage
.
getItem
(
'access_token'
),
params
,
function
(){
proxy
.
$global
.
showMsg
(
"删除成功"
,
"
warning
"
);
proxy
.
$global
.
showMsg
(
"删除成功"
,
"
success
"
);
proxy
.
getData
();
})
}
...
...
Please
register
or
login
to post a comment