修改点击申请的提示样式
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div v-loading.fullscreen.lock="fullLoading" class="app-container">
|
||||
<div v-loading.fullscreen.lock="fullLoading" :element-loading-text="loadingText" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.3)" class="app-container">
|
||||
|
||||
<el-dialog :visible.sync="lookMoreV">
|
||||
<MoreDetail />
|
||||
@@ -28,18 +28,16 @@
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<el-row v-loading="loading_btn" :gutter="10" class="mb8" element-loading-spinner="el-icon-loading"
|
||||
element-loading-background="rgba(0, 0, 0, 0)" element-loading-text="正在校验资格....."
|
||||
>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addVClick">
|
||||
提交申请
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-view" size="mini" @click="myScoreVClick">查看我的成绩</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="addVClick">
|
||||
提交申请
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-view" size="mini" @click="myScoreVClick">查看我的成绩</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="table_data">
|
||||
<!-- <el-table-column label="奖项代码" prop="typeCode" /> -->
|
||||
@@ -323,6 +321,7 @@ export default {
|
||||
stuYearId: '',
|
||||
term_list: [],
|
||||
fullLoading: false,
|
||||
loadingText: '',
|
||||
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
@@ -558,32 +557,31 @@ export default {
|
||||
}
|
||||
|
||||
},
|
||||
addVClick() {
|
||||
this.loading_btn = true
|
||||
if (this.iSApplication === 1) {
|
||||
this.loading_btn = false
|
||||
this.addV = true
|
||||
this.addForm = lodash.cloneDeep(this.table_data[this.table_data.length - 1])
|
||||
this.countOwnPass()
|
||||
this.listOwnScoreClassRank()
|
||||
this.listOwnCourseScore()
|
||||
console.log('aa')
|
||||
} else {
|
||||
verifyApplyYXGB().then(res => {
|
||||
async addVClick() {
|
||||
this.loadingText = '正在校验资格.....'
|
||||
this.fullLoading = true
|
||||
try {
|
||||
if (this.iSApplication === 1) {
|
||||
this.addV = true
|
||||
this.addForm = lodash.cloneDeep(this.table_data[this.table_data.length - 1])
|
||||
this.countOwnPass()
|
||||
this.listOwnScoreClassRank()
|
||||
this.listOwnCourseScore()
|
||||
} else {
|
||||
const res = await verifyApplyYXGB()
|
||||
if (res.code !== 200) {
|
||||
this.loading_btn = false
|
||||
return false
|
||||
}
|
||||
// 执行后续代码
|
||||
this.$message.success(res.msg)
|
||||
this.loading_btn = false
|
||||
this.addV = true
|
||||
this.countOwnPass()
|
||||
this.listOwnScoreClassRank()
|
||||
this.listOwnCourseScore()
|
||||
})
|
||||
}
|
||||
} finally {
|
||||
this.fullLoading = false
|
||||
this.loadingText = ''
|
||||
}
|
||||
|
||||
},
|
||||
async doApply() {
|
||||
let sdata = lodash.cloneDeep(this.addForm)
|
||||
|
||||
Reference in New Issue
Block a user