Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dc3f0334
authored
Mar 10, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 自测问题修改
1 parent
614ce9f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
aus-front/admin/src/views/auction/control/priceAddModal.vue
aus-front/app/src/components/RoundBidPopup.vue
aus-front/admin/src/views/auction/control/priceAddModal.vue
View file @
dc3f033
<
template
>
<
template
>
<a-modal
v-model:open=
"exitVisible"
:title=
"modalTitle"
width=
"560px"
@
ok=
"handle
Ex
it"
>
<a-modal
v-model:open=
"exitVisible"
:title=
"modalTitle"
width=
"560px"
@
ok=
"handle
Subm
it"
>
<div>
<div>
<a-form
ref=
"formRef"
:model=
"postData"
style=
"width: 100%;margin-top: 24px;"
>
<a-form
ref=
"formRef"
:model=
"postData"
style=
"width: 100%;margin-top: 24px;"
>
<a-form-item
style=
"width: 100%"
label=
"启用自动加价"
name=
"autoBidSwitch"
>
<a-form-item
style=
"width: 100%"
label=
"启用自动加价"
name=
"autoBidSwitch"
>
...
@@ -7,13 +7,12 @@
...
@@ -7,13 +7,12 @@
</a-form-item>
</a-form-item>
<a-form-item
style=
"width: 100%"
label=
"加价幅度"
name=
"autoBidRange"
>
<a-form-item
style=
"width: 100%"
label=
"加价幅度"
name=
"autoBidRange"
>
<a-input-number
style=
"width: 96%"
v-model:value=
"postData.autoBidRange"
:min=
"100"
:step=
"100"
<a-input-number
style=
"width: 96%"
v-model:value=
"postData.autoBidRange"
:min=
"100"
:step=
"100"
:max=
"50000"
:maxlength=
"6"
addon-after=
"元"
placeholder=
"请输入100的倍数"
:max=
"50000"
:maxlength=
"6"
addon-after=
"元"
placeholder=
"请输入100的倍数"
/>
@
blur=
"handleAutoBidRangeChange(postData.autoBidRange)"
/>
</a-form-item>
</a-form-item>
<a-form-item
style=
"width: 100%"
label=
"触发
时机
"
name=
"autoBidTrigger"
>
<a-form-item
style=
"width: 100%"
label=
"触发
计时
"
name=
"autoBidTrigger"
>
<span
style=
"line-height: 32px;padding-right: 8px;"
>
截止倒计时
</span>
<span
style=
"line-height: 32px;padding-right: 8px;"
>
截止倒计时
</span>
<a-input-number
style=
"width: 160px"
v-model:value=
"postData.autoBidTrigger"
:min=
"1"
:step=
"1"
<a-input-number
style=
"width: 160px"
v-model:value=
"postData.autoBidTrigger"
:min=
"1"
:step=
"1"
:max=
"999999"
:maxlength=
"6"
placeholder=
"请输入触发
时机
"
/>
:max=
"999999"
:maxlength=
"6"
placeholder=
"请输入触发
计时
"
/>
<span
style=
"line-height: 32px;padding-left: 8px;"
>
秒触发
</span>
<span
style=
"line-height: 32px;padding-left: 8px;"
>
秒触发
</span>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
...
@@ -61,7 +60,30 @@ export default class PriceAddModal extends Vue {
...
@@ -61,7 +60,30 @@ export default class PriceAddModal extends Vue {
this
.
exitVisible
=
true
;
this
.
exitVisible
=
true
;
}
}
handleExit
():
void
{
handleSubmit
():
void
{
if
(
!
this
.
postData
.
autoBidRange
)
{
message
.
warning
(
'请输入加价幅度'
);
return
;
}
// 校验自定义加价金额是否为数字
if
(
isNaN
(
Number
(
this
.
postData
.
autoBidRange
)))
{
message
.
warning
(
'请输入正确的加价幅度'
);
return
;
}
// 校验自定义加价金额是否符合规则
if
(
Number
(
this
.
postData
.
autoBidRange
)
<
100
)
{
message
.
warning
(
'加价幅度不能小于100'
);
return
;
}
//校验加价金额必须是100的倍数
if
(
Number
(
this
.
postData
.
autoBidRange
)
%
100
!=
0
)
{
message
.
warning
(
'加价幅度必须是100的倍数'
);
return
;
}
if
(
!
this
.
postData
.
autoBidTrigger
)
{
message
.
warning
(
'请输入触发计时'
);
return
;
}
const
params
=
{
const
params
=
{
...
this
.
postData
,
...
this
.
postData
,
autoBidSwitch
:
this
.
postData
.
autoBidSwitch
?
1
:
0
,
autoBidSwitch
:
this
.
postData
.
autoBidSwitch
?
1
:
0
,
...
...
aus-front/app/src/components/RoundBidPopup.vue
View file @
dc3f033
...
@@ -69,6 +69,7 @@ export default class RoundBidPopup extends Vue {
...
@@ -69,6 +69,7 @@ export default class RoundBidPopup extends Vue {
}
}
setTimeoutSecond
()
{
setTimeoutSecond
()
{
if
(
this
.
endState
!=
'2'
)
return
;
if
(
this
.
nextAucVehData
.
remainSecond
&&
Number
(
this
.
nextAucVehData
.
remainSecond
)
>
0
)
{
if
(
this
.
nextAucVehData
.
remainSecond
&&
Number
(
this
.
nextAucVehData
.
remainSecond
)
>
0
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
//取整数部分
//取整数部分
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment