Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xiaojie
fns_backend
Commits
e4426b28
Commit
e4426b28
authored
Sep 30, 2021
by
Zhang Xiaojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2366ec86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
13 deletions
+26
-13
editorUpload.vue
src/components/Editor/editorUpload.vue
+16
-8
topbar.vue
src/components/productManage/topbar.vue
+7
-2
publish.vue
src/views/Root/Product/Loan/publish.vue
+3
-3
No files found.
src/components/Editor/editorUpload.vue
View file @
e4426b28
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
:before-upload=
"beforeUpload"
:before-upload=
"beforeUpload"
@
change=
"handleChange"
@
change=
"handleChange"
>
>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
alt=
"图片不存在"
/>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
/>
<div
v-else
>
<div
v-else
>
<a-icon
:type=
"loading ? 'loading' : 'plus'"
/>
<a-icon
:type=
"loading ? 'loading' : 'plus'"
/>
<div
class=
"ant-upload-text"
>
<div
class=
"ant-upload-text
text-center
"
>
上传概要图片
上传概要图片
</div>
</div>
</div>
</div>
...
@@ -94,16 +94,24 @@ export default Vue.extend({
...
@@ -94,16 +94,24 @@ export default Vue.extend({
})
})
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"less"
scoped
>
.avatar-uploader
>
.ant-upload
{
width
:
128px
;
height
:
128px
;
}
.ant-upload-select-picture-card i {
.ant-upload-select-picture-card i {
font-size
:
3
2
px
;
font-size: 3
0
px;
color: #999;
color: #999;
}
}
/deep/.ant-upload.ant-upload-select-picture-card{
width: 355px;
height: 90px;
>img{
width: 355px;
height: 90px;
object-position: center;
object-fit: cover;
}
}
.ant-upload-select-picture-card .ant-upload-text {
.ant-upload-select-picture-card .ant-upload-text {
margin-top: 8px;
margin-top: 8px;
color: #666;
color: #666;
...
...
src/components/productManage/topbar.vue
View file @
e4426b28
...
@@ -26,7 +26,11 @@
...
@@ -26,7 +26,11 @@
style=
"width: 120px; margin-right: 10px"
style=
"width: 120px; margin-right: 10px"
v-model=
"searchPageReqParams.status"
v-model=
"searchPageReqParams.status"
>
>
<a-select-option
v-for=
"(status, i) in productStatus"
:key=
"i"
:value=
"status.value"
>
<a-select-option
v-for=
"(status, i) in productStatus"
:key=
"i"
:value=
"status.value"
>
{{
status
.
title
}}
{{
status
.
title
}}
</a-select-option>
</a-select-option>
</a-select>
</a-select>
...
@@ -120,7 +124,7 @@ export default Vue.extend({
...
@@ -120,7 +124,7 @@ export default Vue.extend({
start_time
:
newV
.
startTime
,
start_time
:
newV
.
startTime
,
end_time
:
newV
.
endTime
,
end_time
:
newV
.
endTime
,
loan_type
:
newV
.
type
,
loan_type
:
newV
.
type
,
product_status
:
newV
.
status
product_status
:
newV
.
status
,
});
});
},
},
},
},
...
@@ -149,6 +153,7 @@ export default Vue.extend({
...
@@ -149,6 +153,7 @@ export default Vue.extend({
reset
()
{
reset
()
{
this
.
searchPageReqParams
.
name
=
""
;
this
.
searchPageReqParams
.
name
=
""
;
this
.
searchPageReqParams
.
type
=
0
;
this
.
searchPageReqParams
.
type
=
0
;
this
.
searchPageReqParams
.
status
=
0
;
this
.
searchPageReqParams
.
startTime
=
undefined
;
this
.
searchPageReqParams
.
startTime
=
undefined
;
this
.
searchPageReqParams
.
endTime
=
undefined
;
this
.
searchPageReqParams
.
endTime
=
undefined
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
src/views/Root/Product/Loan/publish.vue
View file @
e4426b28
...
@@ -179,6 +179,7 @@ export default Vue.extend({
...
@@ -179,6 +179,7 @@ export default Vue.extend({
this
.
form
.
target
=
record
.
apply_to
;
this
.
form
.
target
=
record
.
apply_to
;
this
.
form
.
applicationCon
=
record
.
apply_cond
;
this
.
form
.
applicationCon
=
record
.
apply_cond
;
this
.
form
.
submissionCon
=
record
.
submit_cond
;
this
.
form
.
submissionCon
=
record
.
submit_cond
;
this
.
uuid
=
record
.
uuid
}
}
},
},
data
()
{
data
()
{
...
@@ -200,7 +201,6 @@ export default Vue.extend({
...
@@ -200,7 +201,6 @@ export default Vue.extend({
applicationCon
:
""
,
applicationCon
:
""
,
submissionCon
:
""
,
submissionCon
:
""
,
},
},
isEditable
:
false
,
eProductType
,
eProductType
,
uuid
:
""
,
uuid
:
""
,
eGuaranteeType
,
eGuaranteeType
,
...
@@ -268,7 +268,7 @@ export default Vue.extend({
...
@@ -268,7 +268,7 @@ export default Vue.extend({
onSubmit
()
{
onSubmit
()
{
(
this
.
$refs
.
addProductForm
as
FormModel
).
validate
((
valid
)
=>
{
(
this
.
$refs
.
addProductForm
as
FormModel
).
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
isEditable
)
{
if
(
this
.
$route
.
query
.
record
)
{
// 编辑
// 编辑
LoanProductService
.
getInstance
()
LoanProductService
.
getInstance
()
.
modifyLoan
({
.
modifyLoan
({
...
@@ -294,7 +294,7 @@ export default Vue.extend({
...
@@ -294,7 +294,7 @@ export default Vue.extend({
message
.
success
(
"编辑成功"
);
message
.
success
(
"编辑成功"
);
this
.
$router
.
push
({
name
:
"loanProduct"
});
this
.
$router
.
push
({
name
:
"loanProduct"
});
}
else
if
(
ret
.
code
===
406
)
{
}
else
if
(
ret
.
code
===
406
)
{
message
.
success
(
"
发布
失败"
);
message
.
success
(
"
编辑
失败"
);
}
}
});
});
}
else
{
}
else
{
...
...
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