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
1e070dd5
Commit
1e070dd5
authored
Mar 12, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
27995879
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
359 additions
and
203 deletions
+359
-203
documentsRoutes.json
src/router/documentsRoutes.json
+88
-41
api.js
src/server/api.js
+6
-0
basicInfo.vue
src/views/houseData/basicInfo.vue
+182
-146
labelList.vue
src/views/label/labelList.vue
+5
-3
labelRightSide.vue
src/views/label/labelRightSide.vue
+61
-12
parentLabelRightPanel.vue
src/views/label/parentLabelRightPanel.vue
+17
-1
No files found.
src/router/documentsRoutes.json
View file @
1e070dd5
{
"Layout"
:
[{
"path"
:
"/documents/month"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/documents/month/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"Layout"
:
[
{
"path"
:
"/month"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/month/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
{
"path"
:
"/month/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/month/monthList/monthListSect"
,
"name"
:
"monthListSect"
,
"meta"
:
{
"title"
:
"房办月查小区列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/month/monthList/monthListSect/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
}
]
}
]
},
{
"path"
:
"/documents/repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:[
},
{
"path"
:
"/
documents/repair/repairList"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修
列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"path"
:
"/
repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修
"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/repair/repairInfo"
,
"name"
:
"repairInfo"
,
"meta"
:
{
"title"
:
"报修详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
{
"path"
:
"/repair/repairList"
,
"name"
:
"repairInnerList"
,
"meta"
:
{
"title"
:
"应急报修列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/repair/repairInfo"
,
"name"
:
"repairInfo"
,
"meta"
:
{
"title"
:
"报修详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
}
]
},
{
"path"
:
"/documents/tousu"
,
"name"
:
"tousu"
,
"meta"
:
{
"title"
:
"投诉信息"
,
"menuPath"
:
true
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
},
{
"path"
:
"/
documents/tousu/tousuQuestion"
,
"name"
:
"tousuQuestion
"
,
"meta"
:
{
"title"
:
"投诉
问题排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:[
"path"
:
"/
tousu"
,
"name"
:
"tousu
"
,
"meta"
:
{
"title"
:
"投诉
信息"
,
"menuPath"
:
true
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
{
"path"
:
"/documents/tousu/tousuQuestion/questionInfo"
,
"name"
:
"questionInfo"
,
"meta"
:
{
"title"
:
"投诉问题列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"path"
:
"/tousu/tousuQuestion"
,
"name"
:
"tousuQuestion"
,
"meta"
:
{
"title"
:
"投诉问题排行"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/tousu/tousuQuestion/questionInfo"
,
"name"
:
"questionInfo"
,
"meta"
:
{
"title"
:
"投诉问题列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/tousu/tousuQuestion/tousuDetails"
,
"name"
:
"tousuDetails"
,
"meta"
:
{
"title"
:
"投诉问题详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/
documents/tousu/tousuQuestion/tousuDetails"
,
"name"
:
"tousuDetails
"
,
"meta"
:
{
"title"
:
"投诉
问题详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
{
"path"
:
"/
tousu/tousuDensity"
,
"name"
:
"tousuDensity
"
,
"meta"
:
{
"title"
:
"投诉
密度排行"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/tousu/tousuDensity"
,
"name"
:
"tousuDensity"
,
"meta"
:
{
"title"
:
"投诉密度排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
}
"path"
:
"/ledger"
,
"name"
:
"ledger"
,
"meta"
:
{
"title"
:
"区房屋台账"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/ledger/community"
,
"name"
:
"communityList"
,
"meta"
:
{
"title"
:
"住宅房屋"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/ledger/community/info"
,
"name"
:
"communityInfo"
,
"meta"
:
{
"title"
:
"详情"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/ledger/community/equipment"
,
"name"
:
"equipment"
,
"meta"
:
{
"title"
:
"设备信息"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/ledger/community/building"
,
"name"
:
"communityBuilding"
,
"meta"
:
{
"title"
:
"门牌幢列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/ledger/NonResident"
,
"name"
:
"NonResident"
,
"meta"
:
{
"title"
:
"非居房屋"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/ledger/NonResident/info"
,
"name"
:
"NonResidentInfo"
,
"meta"
:
{
"title"
:
"非居详情"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/ledger/NonResident/building"
,
"name"
:
"NonResidentBuilding"
,
"meta"
:
{
"title"
:
"非居门牌幢列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
}
]
}]}
\ No newline at end of file
]}
\ No newline at end of file
src/server/api.js
View file @
1e070dd5
...
...
@@ -206,4 +206,10 @@ export default {
DELETE_SINGLE_LABEL
:
'/service-customkey-ddd/label/{id}'
,
// 根据id删除某个标签
POST_SINGLE_LABEL
:
'/service-customkey-ddd/label'
,
// 新增标签
PUT_LABEL_INFO
:
'/service-customkey-ddd/label/{id}'
,
// 修改标签信息
POST_AVAILABLE_KEY
:
'/service-customkey-ddd/entityKeyDic'
,
// 可查询字段新增
PUT_AVAILABLE_KEY
:
'/service-customkey-ddd/entityKeyDic/{id}'
,
// 可查询字段修改
GET_AVAILABLE_KEY_LIST
:
'/service-customkey-ddd/entityKeyDics'
,
// 可查询字段列表
DELETE_AVAILABLE_KEY
:
'/service-customkey-ddd/entityKeyDic/{id}'
,
// 删除字段
GET_SINGLE_KEY_INFO
:
'/service-customkey-ddd/entityKeyDic/{id}'
,
//可查询字段详情
GET_LABEL_BIND_FILTER_RESULT
:
'/service-customkey-ddd/labelResource'
,
// 点击保存后查询是否有结果,有结果则调用绑定接口
}
src/views/houseData/basicInfo.vue
View file @
1e070dd5
This diff is collapsed.
Click to expand it.
src/views/label/labelList.vue
View file @
1e070dd5
...
...
@@ -3,7 +3,7 @@
<div
class=
"routerWapper"
>
<div
class=
"portalDetailTitle"
v-if=
"$route.name=='lvot'"
>
<span
class=
"title"
>
标签维护
</span>
{{
currentState
}}
<!--
{{
currentState
}}
-->
<div
class=
"detailOperations"
>
<a-button
@
click=
"backPage"
>
返回
</a-button>
</div>
...
...
@@ -84,14 +84,16 @@ export default {
backPage
(){
// 返回按钮
this
.
$router
.
back
()
},
onSelect
(
selectedKeys
)
{
onSelect
(
selectedKeys
,
node
)
{
console
.
log
(
selectedKeys
,
node
.
node
.
$children
.
length
)
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_LABEL_DETAIL
.
replace
(
'{id}'
,
selectedKeys
[
0
]),
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
let
result
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
labelId
=
selectedKeys
[
0
]
if
(
result
.
parentId
!==
'0'
)
{
// 为二级菜单
console
.
log
(
result
.
parentId
,
node
.
node
.
$children
.
length
)
if
(
result
.
parentId
!==
'0'
&&
node
.
node
.
$children
.
length
==
0
||
result
.
parentId
==
'0'
&&
node
.
node
.
$children
.
length
==
0
)
{
// 为二级菜单
this
.
currentState
=
'loadChildLabel'
}
else
{
// 为一级菜单
this
.
currentState
=
'loadParentLabel'
...
...
src/views/label/labelRightSide.vue
View file @
1e070dd5
<
template
>
<div
class=
"routerWapper"
>
<div>
<!--
{{
triggerType
}}
-
{{
labelId
}}
-
{{
finish
}}
-
{{
jsonData
}}
-->
<!--
{{
triggerType
}}
-
{{
labelId
}}
-
{{
finish
}}
-
{{
jsonData
}}
-
{{
initKey
}}
-
->
<a-row>
<a-col
:span=
'1'
v-if=
"triggerType == 'create'"
>
<a-button
type=
'default'
@
click=
"backPage()"
>
返回
</a-button>
...
...
@@ -24,16 +24,17 @@
<a-input
v-decorator=
"['labelName',
{validateTrigger:'blur', initialValue: jsonData.labelName?jsonData.labelName: '', rules: [{required: true, message: '请填写标签名!'}]}]">
</a-input>
</a-form-item>
<a-form-item
label=
'标签分组'
:label-col=
"
{span:2}" :wrapper-col="{span:14}">
<a-select
v-decorator=
"['parentId',
{validateTrigger:'blur', initialValue: jsonData.parentId?jsonData.parentId: '', rules: []}]">
<a-select
v-decorator=
"['parentId',
{validateTrigger:'blur', initialValue: jsonData.parentId?jsonData.parentId: '0', rules: []}]">
<a-select-option
value=
'0'
>
无(将改标签设为一级标签)
</a-select-option>
<a-select-option
v-for=
"(item, index) in parentLabelList"
:key=
'index'
:value=
'item.id'
>
{{
item
.
labelName
}}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
label=
'业务对象'
:label-col=
"
{span:2}" :wrapper-col="{span:14}">
<a-select
v-decorator=
"['tableName',
{validateTrigger:'blur', initialValue: jsonData.tableName?jsonData.tableName: '', rules: [{required: true, message: '请选择业务对象!'}]}]">
<a-select-option
value=
'
xq
'
>
小区
</a-select-option>
<a-select-option
value=
'
mpz
'
>
门牌幢
</a-select-option>
<a-select
:disabled=
"triggerType == 'loadChildLabel'"
@
change=
'handleObjChange'
v-decorator=
"['tableName',
{validateTrigger:'blur', initialValue: jsonData.tableName?jsonData.tableName: '', rules: [{required: true, message: '请选择业务对象!'}]}]">
<a-select-option
value=
'
tbl_community
'
>
小区
</a-select-option>
<a-select-option
value=
'
tbl_building
'
>
门牌幢
</a-select-option>
</a-select>
</a-form-item>
</a-form>
...
...
@@ -52,14 +53,13 @@
<a-form-item>
<a-select
style=
"width: 120px"
placeholder=
'请选择业务属性'
v-decorator=
"['key' + index,
{initialValue: item.key, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select-option
value=
'sx1'
>
属性一
</a-select-option>
<a-select-option
value=
'sx2'
>
属性二
</a-select-option>
<a-select-option
v-for=
"(item1, index1) in availableKeyList"
:key=
'index1'
:value=
'item1.tblKey'
>
{{
item1
.
tblKeyName
}}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item>
<a-select
style=
"width: 120px"
placeholder=
'区间'
v-decorator=
"['codition' + index,
{initialValue: item.codition, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select-option
value=
'eq
uels
'
>
等于
</a-select-option>
<a-select-option
value=
'eq'
>
等于
</a-select-option>
<a-select-option
value=
'gt'
>
大于
</a-select-option>
<a-select-option
value=
'gte'
>
大于等于
</a-select-option>
<a-select-option
value=
'lt'
>
小于
</a-select-option>
...
...
@@ -103,7 +103,7 @@ export default {
loopContent
:
{
data
:
[{
key
:
''
,
codition
:
'eq
uels
'
,
codition
:
'eq'
,
val
:
''
,
selMet
:
''
}]
...
...
@@ -111,13 +111,16 @@ export default {
jsonData
:
{},
deleteVisible
:
false
,
finish
:
false
,
parentLabelList
:
[]
parentLabelList
:
[],
availableKeyList
:
[],
initKey
:
''
}
},
mounted
()
{
console
.
log
(
'得到的'
+
this
.
labelId
)
this
.
getLabelDetail
()
this
.
getParentLabelList
()
// this.initKeyList()
},
props
:
[
'triggerType'
,
...
...
@@ -140,6 +143,37 @@ export default {
}
},
methods
:
{
initKeyList
()
{
// 获取当前的对象
this
.
initKey
=
this
.
labelForm
.
getFieldValue
(
'tableName'
)
this
.
getKeyList
(
this
.
initKey
)
},
handleObjChange
(
val
)
{
this
.
getKeyList
(
val
)
// 重置key表项的值为空 或 业务对象干脆disable掉
},
getKeyList
(
val
)
{
console
.
log
(
'111'
)
this
.
availableKeyList
=
[]
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_AVAILABLE_KEY_LIST
,
params
:
{
'tableName'
:
val
}
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
let
list
=
res
.
data
.
content
console
.
log
(
list
)
this
.
availableKeyList
=
[]
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
this
.
availableKeyList
.
push
({
'tblKey'
:
list
[
i
].
tblKey
,
'tblKeyName'
:
list
[
i
].
tblKeyName
})
}
}
})
},
getLabelDetail
()
{
if
(
!!
this
.
labelId
&&
this
.
labelId
!==
'undefined'
)
{
this
.
$ajax
.
get
({
...
...
@@ -153,6 +187,7 @@ export default {
})
this
.
loopContent
.
data
=
res
.
data
.
content
.
selParams
console
.
log
(
res
.
data
.
content
.
selParams
)
this
.
initKeyList
()
}
})
}
else
{
...
...
@@ -193,7 +228,7 @@ export default {
addInitRow
()
{
this
.
loopContent
.
data
.
push
({
key
:
''
,
codition
:
'eq
uels
'
,
codition
:
'eq'
,
val
:
''
,
selMet
:
''
})
...
...
@@ -201,7 +236,7 @@ export default {
addRow
()
{
this
.
loopContent
.
data
.
push
({
key
:
''
,
codition
:
'eq
uels
'
,
codition
:
'eq'
,
val
:
''
,
relation
:
'and'
,
selMet
:
''
...
...
@@ -256,6 +291,20 @@ export default {
selMet
:
formData
[
'selMet'
+
i
]
})
}
this
.
$ajax
.
post
({
url
:
this
.
$api
.
GET_LABEL_BIND_FILTER_RESULT
,
params
:
this
.
jsonData
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
console
.
log
(
res
.
data
.
content
)
// this.$message.success('修改成功!')
// this.resetFormFields()
// this.finish = true
// this.$emit('finish', this.finish)
}
else
{
this
.
$message
.
success
(
'修改失败!'
)
}
})
// 提交标签内容, 如果有labelId则调用put接口,反之调用post接口
if
(
!!
this
.
labelId
)
{
this
.
$ajax
.
put
({
...
...
src/views/label/parentLabelRightPanel.vue
View file @
1e070dd5
<
template
>
<div
class=
"routerWapper"
>
{{
labelId
}}
<!--
{{
labelId
}}
-->
<div>
<a-row>
<a-col
:span=
'1'
>
...
...
@@ -40,6 +40,22 @@ export default {
mounted
()
{
this
.
getLabelInfo
()
},
watch
:
{
triggerType
:
{
handler
:
function
(
newV
,
oldV
)
{
this
.
resetFormFields
()
this
.
getLabelInfo
()
},
immediate
:
true
},
labelId
:
{
handler
:
function
(
newV
,
oldV
)
{
this
.
resetFormFields
()
this
.
getLabelInfo
()
},
immediate
:
true
}
},
methods
:
{
getLabelInfo
()
{
if
(
!!
this
.
labelId
)
{
...
...
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