Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
ztx_wx_gzt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
61adfba3
authored
2026-04-17 10:13:11 +0800
by
lttnew
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
成绩审核
1 parent
a327b92b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
9 deletions
common/api.js
pages.json
pages/rank/approval.vue
pages/rank/scoreApproval.vue
pages/rank/scoreAudit.vue
common/api.js
View file @
61adfba
...
...
@@ -952,6 +952,21 @@ export function auditDuanExam(data) {
params
:
data
})
}
export
function
auditDuanScore
(
data
)
{
// 基础 URL
let
url
=
`/exam/info/auditDuanScore/
${
data
.
ids
}
?flag=
${
data
.
flag
}
&ids=
${
data
.
ids
}
`
;
// reason 有值才拼接
if
(
data
.
reason
&&
data
.
reason
.
trim
()
!==
''
)
{
url
+=
`&reason=
${
data
.
reason
}
`
;
}
return
request
({
url
:
url
,
method
:
'post'
,
params
:
data
})
}
export
function
doMergeFlows
(
params
)
{
return
request
({
...
...
pages.json
View file @
61adfba
...
...
@@ -85,7 +85,7 @@
},
{
"path"
:
"pages/rank/scoreAudit"
,
"style"
:
{
"navigationBarTitleText"
:
"
成绩
审核"
,
"navigationBarTitleText"
:
"审核"
,
"enablePullDownRefresh"
:
false
}
...
...
pages/rank/approval.vue
View file @
61adfba
...
...
@@ -122,7 +122,7 @@
function
goApproval
(
item
)
{
uni
.
navigateTo
({
url
:
`/pages/rank/scoreAudit?ids=
${
item
.
examId
}
`
url
:
`/pages/rank/scoreAudit?ids=
${
item
.
examId
}
&pageType=2
`
})
}
</
script
>
...
...
pages/rank/scoreApproval.vue
View file @
61adfba
...
...
@@ -13,7 +13,7 @@
<view
@
click=
"goDetail(item)"
>
<view
class=
"status"
>
<text
:class=
"
{
'text-primary-bg': item.scoreStatus=='
0
',
'text-primary-bg': item.scoreStatus=='
1
',
'text-success-bg': item.scoreStatus=='2',
'text-danger-bg': item.scoreStatus=='3',
'text-warning-bg': item.scoreStatus=='4'
...
...
@@ -122,7 +122,7 @@
function
goApproval
(
item
)
{
uni
.
navigateTo
({
url
:
`/pages/rank/scoreAudit?ids=
${
item
.
examId
}
`
url
:
`/pages/rank/scoreAudit?ids=
${
item
.
examId
}
&pageType=2
`
})
}
...
...
pages/rank/scoreAudit.vue
View file @
61adfba
...
...
@@ -50,6 +50,7 @@
const
ids
=
ref
(
''
)
const
submitting
=
ref
(
false
)
const
pageType
=
ref
(
''
)
const
form
=
ref
({
flag
:
'1'
,
...
...
@@ -57,6 +58,7 @@
})
onLoad
((
options
)
=>
{
pageType
.
value
=
options
.
pageType
||
''
if
(
options
.
ids
)
ids
.
value
=
options
.
ids
})
...
...
@@ -68,7 +70,8 @@
form
.
value
.
flag
=
e
.
detail
.
value
}
function
doSubmit
()
{
async
function
doSubmit
()
{
// 拒绝时必须填理由
if
(
form
.
value
.
flag
==
'0'
&&
!
form
.
value
.
reason
)
{
uni
.
showToast
({
title
:
'请输入拒绝理由'
,
icon
:
'none'
})
return
...
...
@@ -80,17 +83,29 @@
flag
:
form
.
value
.
flag
,
reason
:
form
.
value
.
reason
||
''
}
if
(
!
form
.
value
.
reason
){
if
(
!
params
.
reason
){
delete
params
.
reason
}
api
.
auditDuanExam
(
params
).
then
(
res
=>
{
try
{
// 根据 pageType 自动切换接口
if
(
pageType
.
value
==
'1'
)
{
await
api
.
auditDuanExam
(
params
);
}
else
if
(
pageType
.
value
==
'2'
)
{
await
api
.
auditDuanScore
(
params
);
}
else
{
uni
.
showToast
({
title
:
'页面类型错误'
,
icon
:
'none'
});
submitting
.
value
=
false
;
return
;
}
uni
.
showToast
({
title
:
'操作成功'
,
icon
:
'success'
})
setTimeout
(()
=>
{
uni
.
navigateBack
()
},
1500
)
}
).
catch
(
err
=>
{
}
catch
(
err
)
{
console
.
error
(
'审核失败'
,
err
)
uni
.
showToast
({
title
:
'操作失败'
,
icon
:
'none'
})
submitting
.
value
=
false
}
)
}
}
</
script
>
...
...
Write
Preview
Styling with
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