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
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"
:
[{
"Layout"
:
[
"path"
:
"/documents/month"
,
"name"
:
"month"
,
{
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"path"
:
"/month"
,
"name"
:
"month"
,
"children"
:[
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
{
"path"
:
"/documents/month/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
"children"
:
[
{
{
"path"
:
"/documents/month/monthInfo"
,
"name"
:
"monthInfo"
,
"path"
:
"/month/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"检查详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"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"
,
"path"
:
"/
repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修
列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"meta"
:
{
"title"
:
"应急报修
"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
"children"
:
[
{
{
"path"
:
"/documents/repair/repairInfo"
,
"name"
:
"repairInfo"
,
"path"
:
"/repair/repairList"
,
"name"
:
"repairInnerList"
,
"meta"
:
{
"title"
:
"报修详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"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
"
,
"path"
:
"/
tousu"
,
"name"
:
"tousu
"
,
"meta"
:
{
"title"
:
"投诉
问题排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"meta"
:
{
"title"
:
"投诉
信息"
,
"menuPath"
:
true
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:[
"children"
:
[
{
{
"path"
:
"/documents/tousu/tousuQuestion/questionInfo"
,
"name"
:
"questionInfo"
,
"path"
:
"/tousu/tousuQuestion"
,
"name"
:
"tousuQuestion"
,
"meta"
:
{
"title"
:
"投诉问题列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"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
"
,
"path"
:
"/
tousu/tousuDensity"
,
"name"
:
"tousuDensity
"
,
"meta"
:
{
"title"
:
"投诉
问题详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
"meta"
:
{
"title"
:
"投诉
密度排行"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
}
}
}
]
]
},
},
{
{
"path"
:
"/documents/tousu/tousuDensity"
,
"name"
:
"tousuDensity"
,
"path"
:
"/ledger"
,
"name"
:
"ledger"
,
"meta"
:
{
"title"
:
"投诉密度排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
}
"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 {
...
@@ -206,4 +206,10 @@ export default {
DELETE_SINGLE_LABEL
:
'/service-customkey-ddd/label/{id}'
,
// 根据id删除某个标签
DELETE_SINGLE_LABEL
:
'/service-customkey-ddd/label/{id}'
,
// 根据id删除某个标签
POST_SINGLE_LABEL
:
'/service-customkey-ddd/label'
,
// 新增标签
POST_SINGLE_LABEL
:
'/service-customkey-ddd/label'
,
// 新增标签
PUT_LABEL_INFO
:
'/service-customkey-ddd/label/{id}'
,
// 修改标签信息
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
// 小区列表
// 小区列表
<
template
>
<
template
>
<div
class=
"routerWapper"
>
<div
class=
"routerWapper"
>
<div
v-if=
"$route.path == '/houseData/basicInfo'"
class=
"layoutMargin layoutPadding"
>
<a-row
type=
'flex'
>
<a-form
:form=
"form"
class=
"protalForm"
>
<a-col
flex=
'250px'
style=
"overflow: hidden"
>
<a-row
class=
"formItem"
type=
"flex"
:justify=
"simpleSearchForm ? 'end' : ''"
align=
"top"
:gutter=
"simpleSearchForm ? 16 : 0"
>
<div
v-if=
"$route.path == '/houseData/basicInfo'"
class=
"layoutMargin layoutPadding"
>
<a-col
span=
"8"
>
<a-tree
<a-form-item
label=
"小区名称"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
:tree-data=
"treeData"
<a-input
placeholder=
"请输入查询内容"
v-decorator=
"['stNameFrst_l']"
/>
:replace-fields=
"replaceFields"
</a-form-item>
:selected-keys=
"selectedKeys"
</a-col>
@
select=
"onSelect"
<a-col
span=
"8"
>
/>
<a-form-item
label=
"小区地址"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
</div>
<a-input
placeholder=
"请输入查询内容"
v-decorator=
"['addrFrst_l']"
/>
</a-col>
</a-form-item>
<a-col
flex=
'78%'
>
</a-col>
<div
v-if=
"$route.path == '/houseData/basicInfo'"
class=
"layoutMargin layoutPadding"
>
<a-col
span=
"8"
>
<a-form
:form=
"form"
class=
"protalForm"
>
<a-form-item
label=
"房办"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-row
class=
"formItem"
type=
"flex"
:justify=
"simpleSearchForm ? 'end' : ''"
align=
"top"
:gutter=
"simpleSearchForm ? 16 : 0"
>
<a-select
showSearch
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['c.hoId']"
@
change=
"handleChangefb"
>
<a-col
span=
"8"
>
<a-select-option
v-for=
"(item) in hos"
:key=
"item.hoId"
:value=
"item.cspName+'#'+item.hoId"
>
{{
item
.
hoName
}}
</a-select-option>
<a-form-item
label=
"小区名称"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
</a-select>
<a-input
placeholder=
"请输入查询内容"
v-decorator=
"['stNameFrst_l']"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
label=
"门牌幢地址"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
label=
"小区地址"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-input
placeholder=
"请输入查询内容"
v-decorator=
"['unitAddr']"
/>
<a-input
placeholder=
"请输入查询内容"
v-decorator=
"['addrFrst_l']"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
label=
"物业公司名称"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
label=
"房办"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
showSearch
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['c.cspId'] "
@
change=
"changeWy"
>
<a-select
showSearch
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['c.hoId']"
@
change=
"handleChangefb"
>
<a-select-option
v-for=
"(item) in wuye"
:key=
"item.cspId"
:value=
" item.cspName+'#'+item.cspId"
>
{{
item
.
cspName
}}
</a-select-option>
<a-select-option
v-for=
"(item) in hos"
:key=
"item.hoId"
:value=
"item.cspName+'#'+item.hoId"
>
{{
item
.
hoName
}}
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
label=
"街道名称"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
label=
"门牌幢地址"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
showSearch
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['c.streetId']"
@
change=
"changeStreet"
>
<a-input
placeholder=
"请输入查询内容"
v-decorator=
"['unitAddr']"
/>
<a-select-option
v-for=
"(item) in street"
:key=
"item.streetId"
:value=
"item.strName+'#'+item.streetId"
>
{{
item
.
strName
}}
</a-select-option>
</a-form-item>
</a-select>
</a-col>
</a-form-item>
<a-col
span=
"8"
>
</a-col>
<a-form-item
label=
"物业公司名称"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-col
span=
"8"
>
<a-select
showSearch
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['c.cspId'] "
@
change=
"changeWy"
>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"更新时间"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select-option
v-for=
"(item) in wuye"
:key=
"item.cspId"
:value=
" item.cspName+'#'+item.cspId"
>
{{
item
.
cspName
}}
</a-select-option>
<a-range-picker
v-decorator=
"['syncTime_betn']"
/>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"成立业主大会"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
label=
"街道名称"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['isHoc']"
@
change=
"changeIsHoc"
>
<a-select
showSearch
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['c.streetId']"
@
change=
"changeStreet"
>
<a-select-option
value=
"false"
>
否
</a-select-option>
<a-select-option
v-for=
"(item) in street"
:key=
"item.streetId"
:value=
"item.strName+'#'+item.streetId"
>
{{
item
.
strName
}}
</a-select-option>
<a-select-option
value=
"true"
>
是
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"更新时间"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
v-if=
"!simpleSearchForm"
label=
"物业合同服务到期日"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-range-picker
v-decorator=
"['syncTime_betn']"
/>
<a-date-picker
placeholder=
"请选择查询内容"
v-decorator=
"['cspContractEndDate_lt']"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"成立业主大会"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
v-if=
"!simpleSearchForm"
label=
"小区性质"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['isHoc']"
@
change=
"changeIsHoc"
>
<a-select
<a-select-option
value=
"false"
>
否
</a-select-option>
v-decorator=
"['stKind_in']"
<a-select-option
value=
"true"
>
是
</a-select-option>
mode=
"multiple"
</a-select>
style=
"width: 100%"
</a-form-item>
placeholder=
"请选择小区性质(多选)"
</a-col>
@
change=
"changeType"
<a-col
span=
"8"
>
allowClear
<a-form-item
v-if=
"!simpleSearchForm"
label=
"物业合同服务到期日"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
>
<a-date-picker
placeholder=
"请选择查询内容"
v-decorator=
"['cspContractEndDate_lt']"
/>
<a-select-option
v-for=
"i in typeList"
:key=
"i.key"
>
{{
i
.
name
}}
</a-select-option>
</a-form-item>
</a-select>
</a-col>
</a-form-item>
<a-col
span=
"8"
>
</a-col>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"小区性质"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
v-decorator=
"['stKind_in']"
mode=
"multiple"
style=
"width: 100%"
placeholder=
"请选择小区性质(多选)"
@
change=
"changeType"
allowClear
>
<a-select-option
v-for=
"i in typeList"
:key=
"i.key"
>
{{
i
.
name
}}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"小区层数"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
v-if=
"!simpleSearchForm"
label=
"小区层数"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
<a-select
v-decorator=
"['unitKind_in']"
v-decorator=
"['unitKind_in']"
mode=
"multiple"
mode=
"multiple"
style=
"width: 100%"
style=
"width: 100%"
placeholder=
"请选择小区层数(多选)"
placeholder=
"请选择小区层数(多选)"
@
change=
"changeLevel"
@
change=
"changeLevel"
allowClear
allowClear
>
>
<a-select-option
v-for=
"i in levelType"
:key=
"i.key"
>
{{
i
.
name
}}
</a-select-option>
<a-select-option
v-for=
"i in levelType"
:key=
"i.key"
>
{{
i
.
name
}}
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"物业服务类型"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
v-if=
"!simpleSearchForm"
label=
"物业服务类型"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['wuyeServiceType'] "
@
change=
"changeServiceType"
>
<a-select
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['wuyeServiceType'] "
@
change=
"changeServiceType"
>
<a-select-option
v-for=
"(item) in wuyeServiceType"
:key=
"item.key"
:value=
"item.key"
>
{{
item
.
name
}}
</a-select-option>
<a-select-option
v-for=
"(item) in wuyeServiceType"
:key=
"item.key"
:value=
"item.key"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
>
<a-col
span=
"8"
>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"竣工日期"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
v-if=
"!simpleSearchForm"
label=
"竣工日期"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['finishDate'] "
@
change=
"changeFinishDate"
>
<a-select
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['finishDate'] "
@
change=
"changeFinishDate"
>
<a-select-option
v-for=
"(item) in finishDate"
:key=
"item.key"
:value=
"item.key"
>
{{
item
.
name
}}
</a-select-option>
<a-select-option
v-for=
"(item) in finishDate"
:key=
"item.key"
:value=
"item.key"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<a-col
span=
"8"
v-if=
"$store.state.isXuhui"
>
<a-col
span=
"8"
v-if=
"$store.state.isXuhui"
>
<a-form-item
v-if=
"!simpleSearchForm"
label=
"邻小汇成立状态"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
v-if=
"!simpleSearchForm"
label=
"邻小汇成立状态"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['neighbourType'] "
@
change=
"changeNeighbourType"
>
<a-select
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"['neighbourType'] "
@
change=
"changeNeighbourType"
>
<a-select-option
v-for=
"(item) in neighbourType"
:key=
"item.key"
:value=
"item.key"
>
{{
item
.
name
}}
</a-select-option>
<a-select-option
v-for=
"(item) in neighbourType"
:key=
"item.key"
:value=
"item.key"
>
{{
item
.
name
}}
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
<!-- 动态搜索条件 -->
<!-- 动态搜索条件 -->
<template
v-if=
"customKeyEnable"
>
<template
v-if=
"customKeyEnable"
>
<a-col
span=
"8"
v-for=
"i in searchList"
:key=
"i.id"
>
<a-col
span=
"8"
v-for=
"i in searchList"
:key=
"i.id"
>
<a-form-item
:label=
"i.keyName"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-form-item
:label=
"i.keyName"
class=
"formItem"
:label-col=
"
{span:10}" :wrapper-col="{span:14}">
<a-select
@
change=
"handleChangeZdy(i.keyCode,$event)"
v-if=
"i.compntType == 'select' || i.compntType == 'radio'"
showSearch
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"[i.keyCode]"
>
<a-select
@
change=
"handleChangeZdy(i.keyCode,$event)"
v-if=
"i.compntType == 'select' || i.compntType == 'radio'"
showSearch
allowClear
placeholder=
"请选择查询内容"
v-decorator=
"[i.keyCode]"
>
<a-select-option
v-for=
"(item) in JSON.parse(i.sltJson)"
:key=
"item"
:value=
"item"
>
{{
item
}}
</a-select-option>
<a-select-option
v-for=
"(item) in JSON.parse(i.sltJson)"
:key=
"item"
:value=
"item"
>
{{
item
}}
</a-select-option>
</a-select>
</a-select>
<a-select
@
change=
"handleChangeZdy(i.keyCode,$event)"
mode=
"multiple"
v-else-if=
"i.compntType =='checkbox'"
placeholder=
"请选择查询内容(多选)"
v-decorator=
"[i.keyCode]"
>
<a-select
@
change=
"handleChangeZdy(i.keyCode,$event)"
mode=
"multiple"
v-else-if=
"i.compntType =='checkbox'"
placeholder=
"请选择查询内容(多选)"
v-decorator=
"[i.keyCode]"
>
<a-select-option
v-for=
"(item) in JSON.parse(i.sltJson)"
:key=
"item"
:value=
"item"
>
{{
item
}}
</a-select-option>
<a-select-option
v-for=
"(item) in JSON.parse(i.sltJson)"
:key=
"item"
:value=
"item"
>
{{
item
}}
</a-select-option>
</a-select>
</a-select>
<a-date-picker
@
change=
"handleChangeZdy(i.keyCode,$event)"
v-else-if=
"i.compntType =='date'"
v-decorator=
"[i.keyCode]"
/>
<a-date-picker
@
change=
"handleChangeZdy(i.keyCode,$event)"
v-else-if=
"i.compntType =='date'"
v-decorator=
"[i.keyCode]"
/>
<a-input
v-else-if=
"i.compntType =='num'"
type=
"tel"
placeholder=
"请输入查询内容"
v-decorator=
"[i.keyCode]"
/>
<a-input
v-else-if=
"i.compntType =='num'"
type=
"tel"
placeholder=
"请输入查询内容"
v-decorator=
"[i.keyCode]"
/>
<a-input
v-else
placeholder=
"请输入查询内容"
v-decorator=
"[i.keyCode]"
/>
<a-input
v-else
placeholder=
"请输入查询内容"
v-decorator=
"[i.keyCode]"
/>
</a-form-item>
</a-form-item>
</a-col>
</a-col>
</
template
>
</
template
>
<!-- 功能按钮区 -->
<!-- 功能按钮区 -->
<a-col
span=
"24"
class=
"algin-right"
>
<a-col
span=
"24"
class=
"algin-right"
>
<a-button
v-if=
"!$store.state.isXuhui && $api.BASE_URL.indexOf('211.136.105')!=-1"
@
click=
"exportEWM"
>
导出二维码
</a-button>
<a-button
v-if=
"!$store.state.isXuhui && $api.BASE_URL.indexOf('211.136.105')!=-1"
@
click=
"exportEWM"
>
导出二维码
</a-button>
<a-button
@
click=
"exportList"
>
导出数据
</a-button>
<a-button
@
click=
"exportList"
>
导出数据
</a-button>
<a-button
@
click=
"reset"
>
重置
</a-button>
<a-button
@
click=
"reset"
>
重置
</a-button>
<a-button
type=
"primary"
@
click=
"search"
>
搜索
</a-button>
<a-button
type=
"primary"
@
click=
"search"
>
搜索
</a-button>
<a-button
<a-button
type=
"primary"
type=
"primary"
v-if=
"simpleSearchForm"
v-if=
"simpleSearchForm"
@
click=
"showMoreSearch"
@
click=
"showMoreSearch"
>
更多搜索
</a-button
>
更多搜索
</a-button
>
>
<a-button
<a-button
type=
"primary"
type=
"primary"
v-if=
"!simpleSearchForm"
v-if=
"!simpleSearchForm"
@
click=
"closeMoreSearch"
@
click=
"closeMoreSearch"
>
简单搜索
</a-button
>
简单搜索
</a-button
>
>
</a-col>
</a-col>
</a-row>
</a-row>
</a-form>
</a-form>
<!-- <p class="gayLine noline" /> -->
<!-- <p class="gayLine noline" /> -->
<div
class=
"portalTableOperates"
>
<div
class=
"portalTableOperates"
>
<tableAndMut
ref=
"childTab"
:tableData=
"tableData"
:pagination=
"pagination"
:tbl=
"tbl"
/>
<tableAndMut
ref=
"childTab"
:tableData=
"tableData"
:pagination=
"pagination"
:tbl=
"tbl"
/>
</div>
</div>
</div>
</div>
<RouterWapper
v-else
></RouterWapper>
<RouterWapper
v-else
></RouterWapper>
</a-col>
</a-row>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
const
treeData
=
[]
export
default
{
export
default
{
name
:
'basicInfo'
,
name
:
'basicInfo'
,
data
()
{
data
()
{
return
{
return
{
treeData
,
selectedKeys
:
[],
replaceFields
:
{
children
:
'children'
,
title
:
'labelName'
,
key
:
'id'
},
simpleSearchForm
:
true
,
// 展示、收取简单搜索开关,true为简单搜索
simpleSearchForm
:
true
,
// 展示、收取简单搜索开关,true为简单搜索
levelType
:
[
levelType
:
[
...
@@ -400,12 +422,26 @@ export default {
...
@@ -400,12 +422,26 @@ export default {
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
// setTimeout(() => {
// setTimeout(() => {
this
.
getConfig
(),
this
.
getConfig
(),
this
.
getSearchParams
()
this
.
getSearchParams
(),
this
.
getLabelList
()
// }, 0)
// }, 0)
})
})
}
}
},
},
methods
:
{
methods
:
{
getLabelList
()
{
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_LABEL_LIST
,
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
treeData
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
console
.
log
(
JSON
.
stringify
(
this
.
treeData
))
}
})
},
onSelect
(
selectedKeys
,
node
)
{
console
.
log
(
selectedKeys
,
node
.
node
.
$children
.
length
)
},
getConfig
()
{
getConfig
()
{
this
.
$ajax
.
get
({
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_CONFIG
,
url
:
this
.
$api
.
GET_CONFIG
,
...
...
src/views/label/labelList.vue
View file @
1e070dd5
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"routerWapper"
>
<div
class=
"routerWapper"
>
<div
class=
"portalDetailTitle"
v-if=
"$route.name=='lvot'"
>
<div
class=
"portalDetailTitle"
v-if=
"$route.name=='lvot'"
>
<span
class=
"title"
>
标签维护
</span>
<span
class=
"title"
>
标签维护
</span>
{{
currentState
}}
<!--
{{
currentState
}}
-->
<div
class=
"detailOperations"
>
<div
class=
"detailOperations"
>
<a-button
@
click=
"backPage"
>
返回
</a-button>
<a-button
@
click=
"backPage"
>
返回
</a-button>
</div>
</div>
...
@@ -84,14 +84,16 @@ export default {
...
@@ -84,14 +84,16 @@ export default {
backPage
(){
// 返回按钮
backPage
(){
// 返回按钮
this
.
$router
.
back
()
this
.
$router
.
back
()
},
},
onSelect
(
selectedKeys
)
{
onSelect
(
selectedKeys
,
node
)
{
console
.
log
(
selectedKeys
,
node
.
node
.
$children
.
length
)
this
.
$ajax
.
get
({
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_LABEL_DETAIL
.
replace
(
'{id}'
,
selectedKeys
[
0
]),
url
:
this
.
$api
.
GET_LABEL_DETAIL
.
replace
(
'{id}'
,
selectedKeys
[
0
]),
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
let
result
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
let
result
=
this
.
$com
.
confirm
(
res
,
'data.content'
,
[])
this
.
labelId
=
selectedKeys
[
0
]
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'
this
.
currentState
=
'loadChildLabel'
}
else
{
// 为一级菜单
}
else
{
// 为一级菜单
this
.
currentState
=
'loadParentLabel'
this
.
currentState
=
'loadParentLabel'
...
...
src/views/label/labelRightSide.vue
View file @
1e070dd5
<
template
>
<
template
>
<div
class=
"routerWapper"
>
<div
class=
"routerWapper"
>
<div>
<div>
<!--
{{
triggerType
}}
-
{{
labelId
}}
-
{{
finish
}}
-
{{
jsonData
}}
-->
<!--
{{
triggerType
}}
-
{{
labelId
}}
-
{{
finish
}}
-
{{
jsonData
}}
-
{{
initKey
}}
-
->
<a-row>
<a-row>
<a-col
:span=
'1'
v-if=
"triggerType == 'create'"
>
<a-col
:span=
'1'
v-if=
"triggerType == 'create'"
>
<a-button
type=
'default'
@
click=
"backPage()"
>
返回
</a-button>
<a-button
type=
'default'
@
click=
"backPage()"
>
返回
</a-button>
...
@@ -24,16 +24,17 @@
...
@@ -24,16 +24,17 @@
<a-input
v-decorator=
"['labelName',
{validateTrigger:'blur', initialValue: jsonData.labelName?jsonData.labelName: '', rules: [{required: true, message: '请填写标签名!'}]}]">
</a-input>
<a-input
v-decorator=
"['labelName',
{validateTrigger:'blur', initialValue: jsonData.labelName?jsonData.labelName: '', rules: [{required: true, message: '请填写标签名!'}]}]">
</a-input>
</a-form-item>
</a-form-item>
<a-form-item
label=
'标签分组'
:label-col=
"
{span:2}" :wrapper-col="{span:14}">
<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'
>
<a-select-option
v-for=
"(item, index) in parentLabelList"
:key=
'index'
:value=
'item.id'
>
{{
item
.
labelName
}}
{{
item
.
labelName
}}
</a-select-option>
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
label=
'业务对象'
:label-col=
"
{span:2}" :wrapper-col="{span:14}">
<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
:disabled=
"triggerType == 'loadChildLabel'"
@
change=
'handleObjChange'
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=
'
tbl_community
'
>
小区
</a-select-option>
<a-select-option
value=
'
mpz
'
>
门牌幢
</a-select-option>
<a-select-option
value=
'
tbl_building
'
>
门牌幢
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
...
@@ -52,14 +53,13 @@
...
@@ -52,14 +53,13 @@
<a-form-item>
<a-form-item>
<a-select
style=
"width: 120px"
placeholder=
'请选择业务属性'
v-decorator=
"['key' + index,
{initialValue: item.key, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<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
v-for=
"(item1, index1) in availableKeyList"
:key=
'index1'
:value=
'item1.tblKey'
>
{{
item1
.
tblKeyName
}}
</a-select-option>
<a-select-option
value=
'sx2'
>
属性二
</a-select-option>
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<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
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=
'gt'
>
大于
</a-select-option>
<a-select-option
value=
'gte'
>
大于等于
</a-select-option>
<a-select-option
value=
'gte'
>
大于等于
</a-select-option>
<a-select-option
value=
'lt'
>
小于
</a-select-option>
<a-select-option
value=
'lt'
>
小于
</a-select-option>
...
@@ -103,7 +103,7 @@ export default {
...
@@ -103,7 +103,7 @@ export default {
loopContent
:
{
loopContent
:
{
data
:
[{
data
:
[{
key
:
''
,
key
:
''
,
codition
:
'eq
uels
'
,
codition
:
'eq'
,
val
:
''
,
val
:
''
,
selMet
:
''
selMet
:
''
}]
}]
...
@@ -111,13 +111,16 @@ export default {
...
@@ -111,13 +111,16 @@ export default {
jsonData
:
{},
jsonData
:
{},
deleteVisible
:
false
,
deleteVisible
:
false
,
finish
:
false
,
finish
:
false
,
parentLabelList
:
[]
parentLabelList
:
[],
availableKeyList
:
[],
initKey
:
''
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
'得到的'
+
this
.
labelId
)
console
.
log
(
'得到的'
+
this
.
labelId
)
this
.
getLabelDetail
()
this
.
getLabelDetail
()
this
.
getParentLabelList
()
this
.
getParentLabelList
()
// this.initKeyList()
},
},
props
:
[
props
:
[
'triggerType'
,
'triggerType'
,
...
@@ -140,6 +143,37 @@ export default {
...
@@ -140,6 +143,37 @@ export default {
}
}
},
},
methods
:
{
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
()
{
getLabelDetail
()
{
if
(
!!
this
.
labelId
&&
this
.
labelId
!==
'undefined'
)
{
if
(
!!
this
.
labelId
&&
this
.
labelId
!==
'undefined'
)
{
this
.
$ajax
.
get
({
this
.
$ajax
.
get
({
...
@@ -153,6 +187,7 @@ export default {
...
@@ -153,6 +187,7 @@ export default {
})
})
this
.
loopContent
.
data
=
res
.
data
.
content
.
selParams
this
.
loopContent
.
data
=
res
.
data
.
content
.
selParams
console
.
log
(
res
.
data
.
content
.
selParams
)
console
.
log
(
res
.
data
.
content
.
selParams
)
this
.
initKeyList
()
}
}
})
})
}
else
{
}
else
{
...
@@ -193,7 +228,7 @@ export default {
...
@@ -193,7 +228,7 @@ export default {
addInitRow
()
{
addInitRow
()
{
this
.
loopContent
.
data
.
push
({
this
.
loopContent
.
data
.
push
({
key
:
''
,
key
:
''
,
codition
:
'eq
uels
'
,
codition
:
'eq'
,
val
:
''
,
val
:
''
,
selMet
:
''
selMet
:
''
})
})
...
@@ -201,7 +236,7 @@ export default {
...
@@ -201,7 +236,7 @@ export default {
addRow
()
{
addRow
()
{
this
.
loopContent
.
data
.
push
({
this
.
loopContent
.
data
.
push
({
key
:
''
,
key
:
''
,
codition
:
'eq
uels
'
,
codition
:
'eq'
,
val
:
''
,
val
:
''
,
relation
:
'and'
,
relation
:
'and'
,
selMet
:
''
selMet
:
''
...
@@ -256,6 +291,20 @@ export default {
...
@@ -256,6 +291,20 @@ export default {
selMet
:
formData
[
'selMet'
+
i
]
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接口
// 提交标签内容, 如果有labelId则调用put接口,反之调用post接口
if
(
!!
this
.
labelId
)
{
if
(
!!
this
.
labelId
)
{
this
.
$ajax
.
put
({
this
.
$ajax
.
put
({
...
...
src/views/label/parentLabelRightPanel.vue
View file @
1e070dd5
<
template
>
<
template
>
<div
class=
"routerWapper"
>
<div
class=
"routerWapper"
>
{{
labelId
}}
<!--
{{
labelId
}}
-->
<div>
<div>
<a-row>
<a-row>
<a-col
:span=
'1'
>
<a-col
:span=
'1'
>
...
@@ -40,6 +40,22 @@ export default {
...
@@ -40,6 +40,22 @@ export default {
mounted
()
{
mounted
()
{
this
.
getLabelInfo
()
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
:
{
methods
:
{
getLabelInfo
()
{
getLabelInfo
()
{
if
(
!!
this
.
labelId
)
{
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