Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
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
Yulun Yao
multiSystem
Commits
02d5c89b
Commit
02d5c89b
authored
May 24, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签二级菜单调整到一级菜单
parent
e25d5a61
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
16 deletions
+26
-16
routes.js
src/router/routes.js
+13
-7
labelList.vue
src/views/label/labelList.vue
+0
-1
labelRightSide.vue
src/views/label/labelRightSide.vue
+13
-8
No files found.
src/router/routes.js
View file @
02d5c89b
...
...
@@ -140,9 +140,19 @@ const appRoutes = [
},
]
},
]
},
{
path
:
'/labelWarehouse'
,
name
:
'labelWarehouse'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
//ContentWrapper,
meta
:
{
title
:
'标签库'
,
menuPath
:
true
,
menuIcon
:
'profile'
,
authCode
:
'0000'
,
hideInBread
:
true
},
children
:
[
{
// 标签管理
path
:
'/systemManagement/lvot'
,
name
:
'lvot'
,
component
:
resolve
=>
require
([
'@/views/label/labelList'
],
resolve
),
//Tbls,
meta
:
{
title
:
'标签管理'
,
menuPath
:
true
,
menuIcon
:
'setting'
,
hideInBread
:
false
,
},
path
:
'/labelWarehouse/lvot'
,
name
:
'lvot'
,
component
:
resolve
=>
require
([
'@/views/label/labelList'
],
resolve
),
//Tbls,
meta
:
{
title
:
'标签配置'
,
menuPath
:
true
,
menuIcon
:
'setting'
,
hideInBread
:
false
,
},
},
{
path
:
'/labelWarehouse/basicInfoByLabel'
,
name
:
'basicInfoByLabel'
,
component
:
resolve
=>
require
([
'@/views/houseData/basicInfoByLabel'
],
resolve
),
//basicInfo,
meta
:
{
title
:
'标签筛选列表'
,
menuPath
:
true
,
hideInBread
:
false
,
},
},
]
},
...
...
@@ -150,10 +160,6 @@ const appRoutes = [
path
:
'/house'
,
name
:
'house'
,
component
:
resolve
=>
require
([
'@/components/Layout/content-wrapper'
],
resolve
),
// ContentWrapper,
meta
:
{
title
:
'住宅信息'
,
menuPath
:
true
,
menuIcon
:
'home'
,
hideInBread
:
true
,
requirePerm
:
false
,
authCode
:
'0001'
},
children
:
[
{
path
:
'/houseData/basicInfoByLabel'
,
name
:
'basicInfoByLabel'
,
component
:
resolve
=>
require
([
'@/views/houseData/basicInfoByLabel'
],
resolve
),
//basicInfo,
meta
:
{
title
:
'小区列表-标签'
,
menuPath
:
true
,
hideInBread
:
false
,
},
},
{
// 小区列表
path
:
'/houseData/basicInfo'
,
name
:
'basicInfo'
,
component
:
resolve
=>
require
([
'@/views/houseData/basicInfo'
],
resolve
),
//basicInfo,
meta
:
{
title
:
'住宅小区'
,
menuPath
:
true
,
hideInBread
:
false
,
authCode
:
'000101'
,
menuIcon
:
'home'
},
...
...
src/views/label/labelList.vue
View file @
02d5c89b
...
...
@@ -97,7 +97,6 @@ export default {
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
treeData
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
console
.
log
(
JSON
.
stringify
(
this
.
treeData
))
}
})
},
...
...
src/views/label/labelRightSide.vue
View file @
02d5c89b
...
...
@@ -438,7 +438,7 @@ export default {
* key => 业务属性二级可选值
*/
checkIfSelectOptionAppears
(
options
,
formValue
,
key
)
{
console
.
log
(
options
,
formValue
,
key
)
//
console.log(options, formValue, key)
let
findKey
=
options
.
find
(
item
=>
(
item
.
tblKey
==
key
))
let
pushSels
=
[]
// 如果没找到
...
...
@@ -458,7 +458,6 @@ export default {
this
.
$message
.
error
(
'请至少添加一组配置!'
)
}
else
{
// 判断是否选择分组或填写分组
console
.
log
(
!!
this
.
labelForm
.
getFieldValue
(
'parentId'
))
if
(
!!
this
.
labelForm
.
getFieldValue
(
'parentId'
))
{
this
.
verifyInput
=
false
this
.
verifySelect
=
true
...
...
@@ -475,7 +474,6 @@ export default {
this
.
infoSettingForm
.
validateFields
((
err1
,
values
)
=>
{
if
(
!
err1
)
{
let
loopGroup
=
this
.
loopContent
// 有多少组
console
.
log
(
loopGroup
)
let
innerResult
=
[]
let
formData
=
this
.
infoSettingForm
.
getFieldsValue
()
...
...
@@ -488,7 +486,7 @@ export default {
rowList
.
push
({
key
:
formData
[
'key-'
+
i
+
'-'
+
index
],
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
this
.
checkAndConvertDate
(
formData
[
'inputOne-'
+
i
+
'-'
+
index
])
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
relation
:
!!
formData
[
'relation-'
+
i
+
'-'
+
index
]?
formData
[
'relation-'
+
i
+
'-'
+
index
]:
'and'
,
randomNum
:
formData
[
'randomNumInner-'
+
i
+
'-'
+
index
],
...
...
@@ -524,6 +522,13 @@ export default {
})
}
},
checkAndConvertDate
(
val
)
{
if
(
this
.
$moment
(
val
,
'YYYY-MM-DD'
,
true
).
isValid
())
{
return
this
.
$moment
(
val
).
format
(
'YYYY-MM-DD'
)
}
else
{
return
val
}
},
addGroup
()
{
// 添加分组前,先查询当前有几个分组
const
groupTotal
=
Object
.
keys
(
this
.
loopContent
.
data
).
length
...
...
@@ -552,7 +557,7 @@ export default {
rowList
.
push
({
key
:
formData
[
'key-'
+
i
+
'-'
+
index
],
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
this
.
checkAndConvertDate
(
formData
[
'inputOne-'
+
i
+
'-'
+
index
])
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
relation
:
!!
formData
[
'relation-'
+
i
+
'-'
+
index
]?
formData
[
'relation-'
+
i
+
'-'
+
index
]:
'and'
,
randomNum
:
formData
[
'randomNumInner-'
+
i
+
'-'
+
index
],
...
...
@@ -625,6 +630,7 @@ export default {
})
},
getInitialValueOne
(
val
)
{
console
.
log
(
val
)
if
(
val
.
indexOf
(
','
)
>
-
1
)
{
return
val
.
split
(
','
)[
0
]
}
else
{
...
...
@@ -727,7 +733,6 @@ export default {
this
.
infoSettingForm
.
validateFields
((
err1
,
values
)
=>
{
if
(
!
err1
)
{
let
loopGroup
=
this
.
loopContent
// 有多少组
console
.
log
(
loopGroup
)
let
innerResult
=
[]
let
formData
=
this
.
infoSettingForm
.
getFieldsValue
()
...
...
@@ -740,7 +745,7 @@ export default {
rowList
.
push
({
key
:
formData
[
'key-'
+
i
+
'-'
+
index
],
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
this
.
checkAndConvertDate
(
formData
[
'inputOne-'
+
i
+
'-'
+
index
])
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
relation
:
!!
formData
[
'relation-'
+
i
+
'-'
+
index
]?
formData
[
'relation-'
+
i
+
'-'
+
index
]:
'and'
,
randomNum
:
formData
[
'randomNumInner-'
+
i
+
'-'
+
index
],
...
...
@@ -810,7 +815,7 @@ export default {
rowList
.
push
({
key
:
formData
[
'key-'
+
i
+
'-'
+
index
],
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
this
.
checkAndConvertDate
(
formData
[
'inputOne-'
+
i
+
'-'
+
index
])
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
relation
:
!!
formData
[
'relation-'
+
i
+
'-'
+
index
]?
formData
[
'relation-'
+
i
+
'-'
+
index
]:
'and'
,
randomNum
:
formData
[
'randomNumInner-'
+
i
+
'-'
+
index
],
...
...
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