撤回按钮
This commit is contained in:
@@ -43,6 +43,9 @@
|
||||
<el-button type="text" size="mini" icon="el-icon-view"
|
||||
@click="auditVClick(scope.row)"
|
||||
>查看详情</el-button>
|
||||
<el-button v-if="scope.row.applyStatus !== '1'" type="text" size="mini" icon="el-icon-refresh-left"
|
||||
@click="handleRevoke(scope.row)"
|
||||
>撤回</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -280,7 +283,7 @@
|
||||
<script>
|
||||
import {
|
||||
listFdyAllAudit as listFdyAudit, lookDetail, listStuScoreClassRank, listStuYearCourseScore, countStuPass, countStuIam, fdyAudit
|
||||
, fdyExport, applyStatus
|
||||
, fdyExport, applyStatus, changeApply
|
||||
} from '@/api/stuCQS/good/audit'
|
||||
import { listOwnClass } from '@/api/stuCQS/info-fill/stu_eva_task'
|
||||
import { listAllYear as listYear } from '@/api/stuCQS/basedata/year'
|
||||
@@ -573,6 +576,33 @@ export default {
|
||||
this.auditV = true
|
||||
}
|
||||
},
|
||||
async handleRevoke(row) {
|
||||
this.$confirm('确定要撤回该申请吗?撤回后申请状态将变为"已提交待辅导员审核"', '撤回确认', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(async () => {
|
||||
this.loading = true
|
||||
try {
|
||||
let res = await changeApply({
|
||||
applyId: row.applyId,
|
||||
status: '1'
|
||||
})
|
||||
this.loading = false
|
||||
if (res.code == 200) {
|
||||
this.$message.success('撤回成功')
|
||||
this.getList()
|
||||
} else {
|
||||
this.$message.error(res.msg || '撤回失败')
|
||||
}
|
||||
} catch (error) {
|
||||
this.loading = false
|
||||
this.$message.error('撤回失败,请稍后重试')
|
||||
}
|
||||
}).catch(() => {
|
||||
this.$message.info('已取消撤回')
|
||||
})
|
||||
},
|
||||
async countStuIam() {
|
||||
let stuNo = this.auditForm.stuNo
|
||||
let res = await countStuIam(stuNo)
|
||||
|
||||
Reference in New Issue
Block a user