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
bb767ebd
Commit
bb767ebd
authored
Jan 07, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态添加config获取的字段
parent
1577c08f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
basicInfo.vue
src/views/houseData/basicInfo.vue
+15
-2
No files found.
src/views/houseData/basicInfo.vue
View file @
bb767ebd
...
...
@@ -347,7 +347,8 @@ export default {
tableName
:
''
,
// 邻里小汇
formed
:
''
,
// 邻里小汇
type
:
''
,
// 邻里小汇
isBeforeTwoThousand
:
false
isBeforeTwoThousand
:
false
,
personalizedKey
:
''
}
},
beforeCreate
()
{
// 页面进来创建form
...
...
@@ -383,12 +384,23 @@ export default {
if
(
this
.
$route
.
name
==
'basicInfo'
){
this
.
$nextTick
(
function
()
{
// setTimeout(() => {
this
.
getConfig
(),
this
.
getSearchParams
()
// }, 0)
})
}
},
methods
:
{
getConfig
()
{
this
.
$ajax
.
get
({
url
:
this
.
$api
.
GET_CONFIG
,
}).
then
(
res
=>
{
if
(
res
.
code
===
'200'
)
{
let
inner
=
res
.
data
.
content
this
.
personalizedKey
=
inner
.
formedKey
}
})
},
closeMoreSearch
()
{
this
.
simpleSearchForm
=
true
},
...
...
@@ -500,13 +512,14 @@ export default {
'unitKind'
:
!
this
.
stLevel
?
''
:
this
.
stLevel
,
'cspServiceType'
:
!
this
.
cspServiceType
?
''
:
this
.
cspServiceType
,
// 'tableName': !this.tableName?'': this.tableName,
'formed'
:
!
this
.
formed
?
''
:
this
.
formed
,
'type'
:
!
this
.
type
?
''
:
this
.
type
,
'sectType_in'
:
'1'
,
'c.createTime_desc'
:
'desc'
,
'finishDate_lt'
:
!!
this
.
isBeforeTwoThousand
?
'2000-01-01'
:
''
,
'finishDate_gt'
:
!
this
.
isBeforeTwoThousand
?
'2000-01-01'
:
''
,
},
obj
,
isHocId
)
// 融合obj 和isHocId 到入参
searchParams
[
this
.
personalizedKey
]
=
!
this
.
formed
?
''
:
this
.
formed
if
(
this
.
$route
.
query
.
id
&&
this
.
$route
.
query
.
id
!=
''
)
{
// 如果query的id不为空,则回显,并根据id搜索
this
.
form
.
setFieldsValue
({
'c.cspId'
:
this
.
$route
.
query
.
name
+
'#'
+
this
.
$route
.
query
.
id
})
...
...
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