Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
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
wbx-PCAndMobi
pc
Commits
87e23b52
Commit
87e23b52
authored
Mar 17, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能完成
parent
5ac2335c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
177 additions
and
123 deletions
+177
-123
basicInfoByLabel.vue
src/views/houseData/basicInfoByLabel.vue
+15
-3
labelList.vue
src/views/label/labelList.vue
+15
-5
labelRightSide.vue
src/views/label/labelRightSide.vue
+144
-114
parentLabelRightPanel.vue
src/views/label/parentLabelRightPanel.vue
+3
-1
No files found.
src/views/houseData/basicInfoByLabel.vue
View file @
87e23b52
// 小区列表
<
template
>
<div
class=
"routerWapper"
>
{{
checkedKeys
}}
<!--
{{
checkedKeys
}}
-->
<a-row
type=
'flex'
>
<a-col
flex=
'250px'
style=
"overflow: hidden"
>
<div
v-if=
"$route.path == '/houseData/basicInfoByLabel'"
class=
"layoutMargin layoutPadding"
>
<div
v-if=
"$route.path == '/houseData/basicInfoByLabel'"
class=
"layoutMargin layoutPadding"
style=
"height: 100%"
>
<!--
<a-row
style=
"font-weight: bold"
>
标签筛选条件
</a-row>
<a-divider
/>
-->
<a-tree
@
check=
'onCheck'
checkable
...
...
@@ -445,6 +447,16 @@ export default {
console
.
log
(
keys
,
node
)
for
(
let
i
=
0
;
i
<
keys
.
length
;
i
++
)
{
console
.
log
(
keys
[
i
])
// this.$ajax.get({
// url: this.$api.DELETE_SINGLE_LABEL.replace('{id}', keys[i]),
// }).then(res => {
// if (res.code == 200) {
// if(res.data.content.parentId == '0') {} else {
// this.checkedKeys.push(keys[i])
// }
// }
// })
this
.
checkedKeys
.
push
(
keys
[
i
])
}
// if(node.node.$children.length > 0) { // 一级菜单(有若干个二级菜单)
// console.log('一级菜单')
...
...
@@ -957,6 +969,6 @@ export default {
}
</
script
>
<
style
scoped
>
<
style
>
</
style
>
src/views/label/labelList.vue
View file @
87e23b52
...
...
@@ -10,9 +10,9 @@
</div>
<div
v-if=
"$route.name=='lvot'"
>
<a-row>
<a-col
:span=
'4'
class=
"layoutMargin layoutPadding"
>
<a-row>
<a-button
size=
'small'
type=
"default"
@
click=
"addLabel"
>
<a-icon
type=
"plus"
/>
添加标签
</a-button>
<a-col
:span=
'4'
class=
"layoutMargin layoutPadding"
style=
"height: 680px"
>
<a-row
style=
"height: 36px"
>
<a-button
s
tyle=
"width: 100%"
s
ize=
'small'
type=
"default"
@
click=
"addLabel"
>
<a-icon
type=
"plus"
/>
添加标签
</a-button>
</a-row>
<a-tree
:tree-data=
"treeData"
...
...
@@ -22,7 +22,7 @@
/>
</a-col>
<a-col
:span=
'1'
></a-col>
<a-col
:span=
'18'
class=
"layoutMargin layoutPadding"
>
<a-col
:span=
'18'
class=
"layoutMargin layoutPadding"
style=
"height: 680px"
>
<RightPanel
v-if=
"currentState == 'create'"
:trigger-type=
'currentState'
@
finish=
'getFinishState'
/>
<RightPanel
v-else-if=
"currentState == 'loadChildLabel'"
:trigger-type=
'currentState'
:label-id=
'labelId'
@
finish=
'getFinishState'
/>
<ParentRightPanel
v-else-if=
"currentState == 'loadParentLabel'"
:trigger-type=
'currentState'
:label-id=
'labelId'
@
finish=
'getFinishState'
/>
...
...
@@ -112,7 +112,17 @@ export default {
}
</
script
>
<
style
scoped
>
<
style
>
.ant-tree
li
{
margin
:
0
;
padding
:
10px
0
;
white-space
:
nowrap
;
list-style
:
none
;
outline
:
0
;
}
.ant-tree-child-tree
>
li
:first-child
{
padding-top
:
20px
;
}
</
style
>
src/views/label/labelRightSide.vue
View file @
87e23b52
This diff is collapsed.
Click to expand it.
src/views/label/parentLabelRightPanel.vue
View file @
87e23b52
...
...
@@ -4,7 +4,9 @@
<div>
<a-row>
<a-col
:span=
'1'
>
<a-button
type=
'default'
@
click=
"backPage()"
>
返回
</a-button>
<div
class=
"detailOperations"
>
<a-button
@
click=
"backPage"
>
返回
</a-button>
</div>
</a-col>
<a-col
:span=
'1'
:offset=
'1'
>
<a-button
type=
'primary'
@
click=
"save()"
>
保存
</a-button>
...
...
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