Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
Z
zhxf_vue
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
葛齐林
zhxf_vue
Commits
b925dddc
Commit
b925dddc
authored
May 13, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
566e6760
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
33 deletions
+5
-33
index.vue
src/pages/sys/point/index.vue
+5
-33
No files found.
src/pages/sys/point/index.vue
View file @
b925dddc
...
...
@@ -121,7 +121,6 @@ export default {
queryDetailVisible
:
false
,
urlPath
:
window
.
CONFIG
.
urlPath
,
treeData
:
[],
systemList
:
[],
defaultExpandedKeys
:
[],
defaultProps
:
{
children
:
'children'
,
...
...
@@ -140,8 +139,6 @@ export default {
lineName
:
''
,
stationId
:
''
,
stationName
:
''
,
subCode
:
''
,
subSystem
:
''
,
tierId
:
''
,
tierName
:
''
,
resourceId
:
''
,
...
...
@@ -188,7 +185,6 @@ export default {
that
=
this
this
.
initTree
()
this
.
initResourceTypeDicList
()
this
.
initSubSystemDicList
()
// this.getDataList()
},
mounted
()
{
...
...
@@ -778,8 +774,6 @@ export default {
remark
:
''
,
stationId
:
this
.
checkedData
.
stationId
,
stationName
:
this
.
checkedData
.
stationName
,
subCode
:
this
.
checkedData
.
subCode
,
subSystem
:
this
.
checkedData
.
subSystem
,
tierId
:
this
.
checkedData
.
tierId
,
tierName
:
this
.
checkedData
.
tierName
,
type
:
item
.
id
,
...
...
@@ -852,18 +846,13 @@ export default {
if
(
this
.
tierMap
.
level
===
6
)
{
this
.
currentNode
=
this
.
$refs
.
tree
.
getNode
(
this
.
tierMap
.
id
).
data
let
sysId
=
''
this
.
systemList
.
forEach
((
element
)
=>
{
if
(
this
.
tierMap
.
subCode
===
element
.
value
)
{
sysId
=
element
.
id
}
})
let
res
=
this
.
$refs
.
tree
.
getNode
(
this
.
tierMap
.
tierId
+
sysId
)
.
data
let
res
=
this
.
$refs
.
tree
.
getNode
(
this
.
tierMap
.
tierId
+
this
.
tierMap
.
type
).
data
this
.
initStation
(
this
.
tierMap
.
stationId
,
res
.
children
,
this
.
tierMap
.
tierId
+
sysId
this
.
tierMap
.
tierId
+
this
.
tierMap
.
type
)
}
//将选中的层级树节点设置为选中
...
...
@@ -904,10 +893,8 @@ export default {
// },
initTreeResource
(
node
)
{
let
data
=
{
lineId
:
this
.
checkedData
.
lineId
,
stationId
:
this
.
checkedData
.
stationId
,
tierId
:
this
.
checkedData
.
tierId
,
subCode
:
this
.
checkedData
.
subCode
tierId
:
this
.
checkedData
.
tierId
}
// console.log('初始化线路树请求参数:', data)
this
.
$http
({
...
...
@@ -1074,8 +1061,6 @@ export default {
}
else
if
(
level
===
5
)
{
this
.
tierMap
=
node
//设备类型
this
.
checkedData
.
subCode
=
code
this
.
checkedData
.
subSystem
=
name
this
.
checkedData
.
stationId
=
node
.
stationId
this
.
checkedData
.
tierId
=
node
.
tierId
...
...
@@ -1767,19 +1752,6 @@ export default {
this
.
clickItem
=
item
this
.
changeVectorLayer
(
this
.
list
)
},
initSubSystemDicList
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/sysDictionary/getSubSystemDicList'
),
method
:
'get'
,
params
:
this
.
$http
.
adornParams
({
stationId
:
localStorage
.
getItem
(
'stationId'
)
})
}).
then
((
data
)
=>
{
if
(
data
&&
data
.
code
===
0
)
{
this
.
systemList
=
data
.
list
}
})
},
initResourceTypeDicList
()
{
this
.
$http
({
url
:
this
.
$http
.
adornUrl
(
'/sysDictionary/getResourceTypeDicList'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment