Commit 6ab0386c authored by wangxl's avatar wangxl

333

parent 4c6cbfb4
......@@ -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">
......
<template>
<div class="app-content" style="height:300px;overflow: auto;">
<div class="app-content" style="height:260px;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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment