Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-science-front
Project
Project
Details
Activity
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
徐俊
yn-science-front
Commits
6ab0386c
Commit
6ab0386c
authored
Dec 13, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
333
parent
4c6cbfb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
Index.vue
src/views/audit/project/Index.vue
+1
-1
batchAudit.vue
src/views/audit/project/batchAudit.vue
+15
-16
No files found.
src/views/audit/project/Index.vue
View file @
6ab0386c
...
...
@@ -51,7 +51,7 @@
<a-modal
v-model=
"visibleAudit"
v-if=
"visibleAudit"
title=
"审核"
:footer=
"null"
width=
"94%"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
<audit
v-model=
"id"
:objId=
"objectId"
@
close=
"closeWindow"
@
changeScroll=
"() => {this.$refs.s_modal.changeScroll()}"
></audit>
</a-modal>
<a-modal
v-model=
"visibleBatch"
v-if=
"visibleBatch"
title=
"批量审核"
:footer=
"null"
width=
"
660"
:dialog-style=
"{ top: '8
%' }"
destroyOnClose
:maskClosable=
"false"
>
<a-modal
v-model=
"visibleBatch"
v-if=
"visibleBatch"
title=
"批量审核"
:footer=
"null"
width=
"
700px"
:dialog-style=
"{ top: '15
%' }"
destroyOnClose
:maskClosable=
"false"
>
<batch-audit
v-model=
"id"
:objId=
"objectId"
@
close=
"closeWindow"
/>
</a-modal>
<a-modal
v-model=
"visibleView"
v-if=
"visibleView"
title=
"项目详情"
width=
"94%"
:footer=
"null"
:dialog-style=
"{ top: '8%' }"
destroyOnClose
:maskClosable=
"false"
>
...
...
src/views/audit/project/batchAudit.vue
View file @
6ab0386c
<
template
>
<div
class=
"app-content"
style=
"height:
30
0px;overflow: auto;"
>
<div
class=
"app-content"
style=
"height:
26
0px;overflow: auto;"
>
<a-spin
:spinning=
"loading"
style=
"width: 100%;height: 100%;"
>
<div>
<a-form-model
ref=
"form"
:model=
"auditObj"
:rules=
"rules"
class=
"from-table font-line-space"
>
...
...
@@ -53,22 +53,21 @@ export default {
submit
()
{
this
.
$refs
.
form
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
loading
=
true
let
pars
=
isEmptyParams
(
this
.
auditObj
)
let
par
=
{
...
pars
}
this
.
$api
.
auditManager
.
projectBatchAudit
(
par
).
then
(({
data
=
{}
})
=>
{
if
(
data
)
{
if
(
data
===
'项目上报已经到达上限!'
)
{
this
.
$message
.
info
(
'项目上报已经到达上限!'
)
}
else
{
this
.
$message
.
success
(
'审核成功!'
)
this
.
$emit
(
'close'
,
'audit'
)
}
}
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
loading
=
false
})
//
this.loading = true
//
let pars = isEmptyParams(this.auditObj)
//
let par = { ...pars }
//
this.$api.auditManager.projectBatchAudit(par).then(({ data = {} }) => {
//
if (data) {
//
if (data === '项目上报已经到达上限!') {
//
this.$message.info('项目上报已经到达上限!')
//
} else {
//
this.$message.success('审核成功!')
//
this.$emit('close', 'audit')
//
}
//
}
//
this.loading = false
//
}).catch(() => { this.loading = false })
}
else
{
this
.
changeScroll
()
this
.
$message
.
error
(
'请选择审核结果或填写审核意见!'
)
return
false
}
...
...
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