Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
丽
丽人贷管理后台
Project
Project
Details
Activity
Releases
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
百灵美选
丽人贷管理后台
Commits
1128f67c
Commit
1128f67c
authored
Jun 07, 2022
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹框外面添加v-if 保证数据一定存在
parent
93d0ed80
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
33 deletions
+39
-33
pre-plead.vue
src/components/pre-plead.vue
+2
-1
pre-detail.vue
src/views/credit/pre-detail.vue
+9
-7
pre.vue
src/views/credit/pre.vue
+28
-25
No files found.
src/components/pre-plead.vue
View file @
1128f67c
...
...
@@ -79,7 +79,8 @@
computed
:
{
...
mapGetters
([
'searchData'
,
'user'
])
},
mounted
()
{
created
()
{
console
.
log
(
this
.
item
,
'nash '
)
if
(
this
.
item
!==
null
)
{
this
.
form
.
preCreditNo
=
this
.
item
.
preCreditNo
}
...
...
src/views/credit/pre-detail.vue
View file @
1128f67c
...
...
@@ -44,12 +44,14 @@
</div>
<!--申述弹框-->
<
template
v-if=
'visible'
>
<pre-plead
:dialog-visible=
'visible'
:item=
'item'
@
handleClose=
'visible = false'
@
callback=
'init'
/>
</
template
>
</div>
</template>
...
...
@@ -85,7 +87,7 @@
// 申述
handlePlead
()
{
this
.
item
=
this
.
detail
this
.
item
.
preCreditNo
=
this
.
preCreditNo
;
this
.
item
.
preCreditNo
=
this
.
preCreditNo
this
.
visible
=
true
}
}
...
...
src/views/credit/pre.vue
View file @
1128f67c
...
...
@@ -28,7 +28,7 @@
type=
'datetimerange'
:picker-options=
'pickerConfig'
:default-time=
"['00:00:00', '23:59:59']"
value-format=
"yyyy-MM-dd HH:mm:ss"
value-format=
'yyyy-MM-dd HH:mm:ss'
range-separator=
'至'
start-placeholder=
'开始时间'
end-placeholder=
'结束时间'
...
...
@@ -38,7 +38,7 @@
<el-form-item>
<el-button
icon=
'el-icon-search'
type=
'primary'
@
click=
'onSubmit'
>
搜 索
</el-button>
<el-button
icon=
'el-icon-delete'
type=
"default"
@
click=
"onReset('form')"
>
重置
</el-button>
<el-button
icon=
'el-icon-delete'
type=
'default'
@
click=
"onReset('form')"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
...
...
@@ -79,7 +79,7 @@
>
<
template
#
default=
'{ row }'
>
<el-button
type=
'text'
@
click=
'handleDetail(row)'
>
详情
</el-button>
<template
v-if=
'row.preStatusStr === "授信拒绝"'
>
<template
v-if=
'row.preStatusStr === "授信拒绝"'
>
<el-button
type=
'text'
@
click=
'handlePlead(row)'
>
申述
</el-button>
</
template
>
...
...
@@ -99,12 +99,14 @@
<!-- 申述 -->
<!--申述弹框-->
<
template
v-if=
'visible'
>
<pre-plead
:dialog-visible=
'visible'
:item=
'item'
@
handleClose=
'visible = false'
@
callback=
'fetchData'
/>
</
template
>
</div>
</template>
...
...
@@ -154,7 +156,7 @@
order
:
7
,
label
:
'申请时间'
,
prop
:
'applyDate'
,
width
:
110
,
width
:
110
},
{
order
:
8
,
...
...
@@ -164,7 +166,7 @@
],
list
:
[],
listLoading
:
true
,
pickerConfig
:
this
.
datePickerOptions
,
pickerConfig
:
this
.
datePickerOptions
,
total
:
1
,
queryForm
:
{
current
:
1
,
...
...
@@ -199,21 +201,22 @@
},
methods
:
{
// 申述弹框
handlePlead
(
row
){
this
.
item
=
row
;
this
.
visible
=
true
;
handlePlead
(
row
)
{
this
.
item
=
row
console
.
log
(
row
,
'当前行信息'
)
this
.
visible
=
true
},
// 搜索
onSubmit
()
{
const
{
time
}
=
this
.
queryForm
;
this
.
queryForm
.
current
=
1
;
const
{
time
}
=
this
.
queryForm
this
.
queryForm
.
current
=
1
if
(
time
)
{
this
.
queryForm
.
startTime
=
time
[
0
]
;
this
.
queryForm
.
endTime
=
time
[
1
]
;
this
.
queryForm
.
startTime
=
time
[
0
]
this
.
queryForm
.
endTime
=
time
[
1
]
}
else
{
this
.
queryForm
.
startTime
=
""
;
this
.
queryForm
.
endTime
=
""
;
this
.
queryForm
.
startTime
=
''
this
.
queryForm
.
endTime
=
''
}
this
.
fetchData
()
},
...
...
@@ -231,10 +234,10 @@
},
async
fetchData
()
{
this
.
listLoading
=
true
const
form
=
this
.
queryForm
;
const
params
=
Object
.
assign
({},
form
)
;
delete
params
.
time
;
const
result
=
await
API
.
preCreditList
({
...
params
})
const
form
=
this
.
queryForm
const
params
=
Object
.
assign
({},
form
)
delete
params
.
time
const
result
=
await
API
.
preCreditList
({
...
params
})
const
{
records
,
total
}
=
result
.
result
this
.
list
=
records
this
.
total
=
total
...
...
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