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 93272b62
authored
Mar 26, 2026
by
yancanhua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 请求错误信息反馈
1 parent
83918567
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
23 deletions
aus-front/admin/src/views/detection/inspector/components/EnableDialog.vue
aus-front/admin/src/views/detection/inspector/components/InspectorAddForm.vue
aus-front/admin/src/views/detection/order/components/cancelDialog.vue
aus-front/admin/src/views/detection/report/components/bindDialog.vue
aus-front/admin/src/views/detection/inspector/components/EnableDialog.vue
View file @
93272b6
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
</div>
</div>
<a-form-item
v-if=
"pageStatus"
name=
"remark"
label=
"禁用原因"
<a-form-item
v-if=
"pageStatus"
name=
"remark"
label=
"禁用原因"
:rules=
"[
{ required: true, message: '请输入禁用原因' }]">
:rules=
"[
{ required: true, message: '请输入禁用原因' }]">
<a-textarea
v-model:value=
"postData.remark"
show-count
:maxlength=
"200"
<a-textarea
v-model:value=
"postData.remark"
show-count
:maxlength=
"200"
style=
"width: 456px;"
/>
style=
"width: 456px;"
/>
</a-form-item>
</a-form-item>
</a-form>
</a-form>
</a-spin>
</a-spin>
...
@@ -67,10 +66,14 @@ export default class EnableDialog extends EnhanceFormComponent<User> {
...
@@ -67,10 +66,14 @@ export default class EnableDialog extends EnhanceFormComponent<User> {
remark
:
this
.
postData
.
remark
,
remark
:
this
.
postData
.
remark
,
}
}
DetectionController
.
inspectStatus
(
this
.
axios
,
formData
).
then
(
response
=>
{
DetectionController
.
inspectStatus
(
this
.
axios
,
formData
).
then
(
response
=>
{
this
.
submitted
=
false
;
if
(
response
?.
data
?.
code
==
'200'
)
{
message
.
success
(
"操作成功"
);
this
.
submitted
=
false
;
this
.
$emit
(
"emitOk"
);
message
.
success
(
"操作成功"
);
this
.
dialogVisible
=
false
;
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}
else
{
message
.
error
(
response
?.
data
?.
message
||
'操作失败'
);
}
}).
finally
(()
=>
this
.
submitted
=
false
);
}).
finally
(()
=>
this
.
submitted
=
false
);
}
}
});
});
...
...
aus-front/admin/src/views/detection/inspector/components/InspectorAddForm.vue
View file @
93272b6
...
@@ -104,17 +104,25 @@ export default class InspectorAddForm extends EnhanceFormComponent<User> {
...
@@ -104,17 +104,25 @@ export default class InspectorAddForm extends EnhanceFormComponent<User> {
}
}
if
(
this
.
postData
.
id
)
{
if
(
this
.
postData
.
id
)
{
DetectionController
.
inspectUpdate
(
this
.
axios
,
formData
).
then
(
response
=>
{
DetectionController
.
inspectUpdate
(
this
.
axios
,
formData
).
then
(
response
=>
{
this
.
submitted
=
false
;
if
(
response
?.
data
?.
code
==
'200'
)
{
message
.
success
(
"更新成功"
);
this
.
submitted
=
false
;
this
.
$emit
(
"emitOk"
);
message
.
success
(
"更新成功"
);
this
.
dialogVisible
=
false
;
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}
else
{
message
.
error
(
response
?.
data
?.
message
||
'更新失败'
);
}
}).
finally
(()
=>
this
.
submitted
=
false
);
}).
finally
(()
=>
this
.
submitted
=
false
);
}
else
{
}
else
{
DetectionController
.
inspectAdd
(
this
.
axios
,
formData
).
then
(
response
=>
{
DetectionController
.
inspectAdd
(
this
.
axios
,
formData
).
then
(
response
=>
{
this
.
submitted
=
false
;
if
(
response
?.
data
?.
code
==
'200'
)
{
message
.
success
(
"添加成功"
);
this
.
submitted
=
false
;
this
.
$emit
(
"emitOk"
);
message
.
success
(
"添加成功"
);
this
.
dialogVisible
=
false
;
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}
else
{
message
.
error
(
response
?.
data
?.
message
||
'添加失败'
);
}
}).
finally
(()
=>
this
.
submitted
=
false
);
}).
finally
(()
=>
this
.
submitted
=
false
);
}
}
}
}
...
...
aus-front/admin/src/views/detection/order/components/cancelDialog.vue
View file @
93272b6
...
@@ -68,9 +68,13 @@ export default class cancelDialog extends EnhanceFormComponent<User> {
...
@@ -68,9 +68,13 @@ export default class cancelDialog extends EnhanceFormComponent<User> {
cancelReason
:
this
.
postData
.
cancelReason
,
cancelReason
:
this
.
postData
.
cancelReason
,
}
}
DetectionController
.
inspectOrderCancel
(
this
.
axios
,
formData
).
then
(
response
=>
{
DetectionController
.
inspectOrderCancel
(
this
.
axios
,
formData
).
then
(
response
=>
{
message
.
success
(
"操作成功"
);
if
(
response
?.
data
?.
code
==
'200'
)
{
this
.
$emit
(
"emitOk"
);
message
.
success
(
"操作成功"
);
this
.
dialogVisible
=
false
;
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}
else
{
message
.
error
(
response
?.
data
?.
message
||
'操作失败'
);
}
}).
finally
(()
=>
this
.
submitted
=
false
);
}).
finally
(()
=>
this
.
submitted
=
false
);
}
}
});
});
...
...
aus-front/admin/src/views/detection/report/components/bindDialog.vue
View file @
93272b6
...
@@ -60,15 +60,23 @@ export default class bindDialog extends EnhanceFormComponent<User> {
...
@@ -60,15 +60,23 @@ export default class bindDialog extends EnhanceFormComponent<User> {
const
formData
=
{
idList
:
this
.
bindList
.
map
(
item
=>
item
.
id
)
}
const
formData
=
{
idList
:
this
.
bindList
.
map
(
item
=>
item
.
id
)
}
if
(
this
.
bindStatus
==
1
)
{
if
(
this
.
bindStatus
==
1
)
{
DetectionController
.
inspectReportBind
(
this
.
axios
,
formData
).
then
(
response
=>
{
DetectionController
.
inspectReportBind
(
this
.
axios
,
formData
).
then
(
response
=>
{
message
.
success
(
"操作成功"
);
if
(
response
?.
data
?.
code
==
'200'
)
{
this
.
$emit
(
"emitOk"
);
message
.
success
(
"操作成功"
);
this
.
dialogVisible
=
false
;
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}
else
{
message
.
error
(
response
?.
data
?.
message
||
'操作失败'
);
}
}).
finally
(()
=>
this
.
submitted
=
false
);
}).
finally
(()
=>
this
.
submitted
=
false
);
}
else
if
(
this
.
bindStatus
==
2
)
{
}
else
if
(
this
.
bindStatus
==
2
)
{
DetectionController
.
inspectReportUnbind
(
this
.
axios
,
formData
).
then
(
response
=>
{
DetectionController
.
inspectReportUnbind
(
this
.
axios
,
formData
).
then
(
response
=>
{
message
.
success
(
"操作成功"
);
if
(
response
?.
data
?.
code
==
'200'
)
{
this
.
$emit
(
"emitOk"
);
message
.
success
(
"操作成功"
);
this
.
dialogVisible
=
false
;
this
.
$emit
(
"emitOk"
);
this
.
dialogVisible
=
false
;
}
else
{
message
.
error
(
response
?.
data
?.
message
||
'操作失败'
);
}
}).
finally
(()
=>
this
.
submitted
=
false
);
}).
finally
(()
=>
this
.
submitted
=
false
);
}
}
}
}
...
...
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