|
@@ -16,9 +16,9 @@
|
|
<over-under-badge :value="value"></over-under-badge>
|
|
<over-under-badge :value="value"></over-under-badge>
|
|
</template>
|
|
</template>
|
|
<template #group="{row}">
|
|
<template #group="{row}">
|
|
- <el-badge class="group" value="荐" :hidden="!row.isRecommend" type="success">
|
|
|
|
|
|
+ <over-under-badge :value="row.isRecommend?1:0" over-text="荐" over-type="success">
|
|
<el-tag size="medium" :type="isGroupOverSetting(row) ? 'danger' : 'warning'">{{ row.groupName }}</el-tag>
|
|
<el-tag size="medium" :type="isGroupOverSetting(row) ? 'danger' : 'warning'">{{ row.groupName }}</el-tag>
|
|
- </el-badge>
|
|
|
|
|
|
+ </over-under-badge>
|
|
</template>
|
|
</template>
|
|
<template #temp="{row}">
|
|
<template #temp="{row}">
|
|
<span class="btn-blue mr5" @click="toSelectSub(row)">选择</span>
|
|
<span class="btn-blue mr5" @click="toSelectSub(row)">选择</span>
|
|
@@ -26,8 +26,8 @@
|
|
<!-- <el-button>查看</el-button>-->
|
|
<!-- <el-button>查看</el-button>-->
|
|
</template>
|
|
</template>
|
|
<template #signUp="{row}">
|
|
<template #signUp="{row}">
|
|
- <div v-if="!row.allowSelect">
|
|
|
|
- <div v-if="row.selected" >
|
|
|
|
|
|
+ <div v-if="!row.allowSelect">
|
|
|
|
+ <div v-if="row.selected">
|
|
<span class="btn-red" v-if="!row.rejected" @click="singleCommit('','取消报名')">取消报名</span>
|
|
<span class="btn-red" v-if="!row.rejected" @click="singleCommit('','取消报名')">取消报名</span>
|
|
<span v-else>已拒绝</span>
|
|
<span v-else>已拒绝</span>
|
|
</div>
|
|
</div>
|
|
@@ -109,8 +109,8 @@
|
|
trigger="click"
|
|
trigger="click"
|
|
>
|
|
>
|
|
<div>
|
|
<div>
|
|
-<!-- 确定拒绝<span class="f-primary">{{recommendGroup.groupName}}</span>组合么?-->
|
|
|
|
-<!-- 确定拒绝系统给您推荐的<span class="f-primary">{{ recommendGroup.groupName }}</span>组合么?-->
|
|
|
|
|
|
+ <!-- 确定拒绝<span class="f-primary">{{recommendGroup.groupName}}</span>组合么?-->
|
|
|
|
+ <!-- 确定拒绝系统给您推荐的<span class="f-primary">{{ recommendGroup.groupName }}</span>组合么?-->
|
|
<el-input
|
|
<el-input
|
|
type="textarea"
|
|
type="textarea"
|
|
:rows="4"
|
|
:rows="4"
|
|
@@ -123,9 +123,11 @@
|
|
<el-button type="danger" size="mini" @click="handleRejectRecommend">提交</el-button>
|
|
<el-button type="danger" size="mini" @click="handleRejectRecommend">提交</el-button>
|
|
</p>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
- <el-button slot="reference" type="danger">不同意</el-button>
|
|
|
|
|
|
+ <el-button slot="reference" type="danger">不同意</el-button>
|
|
</el-popover>
|
|
</el-popover>
|
|
- <el-button v-if="activeModels.generation.models.filter(item => {return item.rejected}).length > 0" type="primary" @click="singleCommit('','撤销拒绝报名')">撤销拒绝报名</el-button>
|
|
|
|
|
|
+ <el-button v-if="activeModels.generation.models.filter(item => {return item.rejected}).length > 0"
|
|
|
|
+ type="primary" @click="singleCommit('','撤销拒绝报名')">撤销拒绝报名
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<esign-dialog ref="esignDialog"></esign-dialog>
|
|
<esign-dialog ref="esignDialog"></esign-dialog>
|
|
@@ -215,11 +217,11 @@ export default {
|
|
})
|
|
})
|
|
if (approved.length) {
|
|
if (approved.length) {
|
|
// 查找在哪一阶段被录取 ? 根据selected 和 approved 都为true
|
|
// 查找在哪一阶段被录取 ? 根据selected 和 approved 都为true
|
|
- const model =this.generation.activeModels.filter(model => {
|
|
|
|
- const flag = model.models.some(item=> {
|
|
|
|
|
|
+ const model = this.generation.activeModels.filter(model => {
|
|
|
|
+ const flag = model.models.some(item => {
|
|
return item.selected && item.approved
|
|
return item.selected && item.approved
|
|
})
|
|
})
|
|
- if(flag) return model
|
|
|
|
|
|
+ if (flag) return model
|
|
})
|
|
})
|
|
const admissionAgent = Object.values(this.generation.options).find(item => item.value == model[0].generation - 1)
|
|
const admissionAgent = Object.values(this.generation.options).find(item => item.value == model[0].generation - 1)
|
|
// 已被录取
|
|
// 已被录取
|
|
@@ -267,7 +269,7 @@ export default {
|
|
flagShow() {
|
|
flagShow() {
|
|
const stepMatched = this.generation.active == this.generation.current
|
|
const stepMatched = this.generation.active == this.generation.current
|
|
const selectStep = !this.generation.activeOpt.decisionMaking
|
|
const selectStep = !this.generation.activeOpt.decisionMaking
|
|
- return stepMatched && selectStep && !this.readonly && !this.activeModels.isAdmission
|
|
|
|
|
|
+ return stepMatched && selectStep && !this.readonly && !this.activeModels.isAdmission
|
|
},
|
|
},
|
|
aiButtonShow() {
|
|
aiButtonShow() {
|
|
if (!this.generation.activeOpt) return false
|
|
if (!this.generation.activeOpt) return false
|
|
@@ -380,7 +382,7 @@ export default {
|
|
const generationModels = this.generation.activeModels.last()?.models || []
|
|
const generationModels = this.generation.activeModels.last()?.models || []
|
|
return this.generation.roundGroups.map(rg => {
|
|
return this.generation.roundGroups.map(rg => {
|
|
const row = generationModels.find(item => item.groupId == rg.groupId) || {}
|
|
const row = generationModels.find(item => item.groupId == rg.groupId) || {}
|
|
- row.allowSelectTips = row.rejected ? '已拒绝' : row.allowSelect ? '报名中' : row.selected ? '已报名' : row.disabledReason || '无法报名'
|
|
|
|
|
|
+ row.allowSelectTips = row.rejected ? '已拒绝' : row.allowSelect ? '报名中' : row.selected ? '已报名' : row.disabledReason || '无法报名'
|
|
const matchedMajors = this.optionalMajors.filter(college => college.matchedGroupIds.includes(row.groupId))
|
|
const matchedMajors = this.optionalMajors.filter(college => college.matchedGroupIds.includes(row.groupId))
|
|
row.colleges = matchedMajors.map(m => ({ college: m.collegeName, major: m.majorCategoryName }))
|
|
row.colleges = matchedMajors.map(m => ({ college: m.collegeName, major: m.majorCategoryName }))
|
|
row.subjects = matchedMajors.map(m => m['majorCategoryName'])
|
|
row.subjects = matchedMajors.map(m => m['majorCategoryName'])
|
|
@@ -393,7 +395,7 @@ export default {
|
|
...this.resolveDynamicTable,
|
|
...this.resolveDynamicTable,
|
|
...this.resolveTableSuffix
|
|
...this.resolveTableSuffix
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getModelsByStep() {
|
|
getModelsByStep() {
|
|
@@ -421,15 +423,15 @@ export default {
|
|
// AI 分析 跳转
|
|
// AI 分析 跳转
|
|
this.$refs.aiDialog.open(this.formatRows)
|
|
this.$refs.aiDialog.open(this.formatRows)
|
|
},
|
|
},
|
|
- singleCommit(row,tips) {
|
|
|
|
- const type = row == '' ? tips : '提交报名'
|
|
|
|
|
|
+ singleCommit(row, tips) {
|
|
|
|
+ const type = row == '' ? tips : '提交报名'
|
|
// 补录及之后
|
|
// 补录及之后
|
|
this.$confirm(`是否要${type}`, {
|
|
this.$confirm(`是否要${type}`, {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- const arrRow = row == '' ? [] : [row]
|
|
|
|
|
|
+ const arrRow = row == '' ? [] : [row]
|
|
submitElectiveModels({
|
|
submitElectiveModels({
|
|
models: arrRow
|
|
models: arrRow
|
|
// esign:this.base64Img
|
|
// esign:this.base64Img
|
|
@@ -449,11 +451,11 @@ export default {
|
|
commit(row) {
|
|
commit(row) {
|
|
// 初录
|
|
// 初录
|
|
const real = this.activeModels.generation.selectedList.filter(item => {
|
|
const real = this.activeModels.generation.selectedList.filter(item => {
|
|
- return item.selected == true
|
|
|
|
|
|
+ return item.selected == true
|
|
})
|
|
})
|
|
if (real.length < this.generation.status.preferenceCount) {
|
|
if (real.length < this.generation.status.preferenceCount) {
|
|
- this.$message.warning(`需要选择${this.generation.status.preferenceCount}个志愿`)
|
|
|
|
- return
|
|
|
|
|
|
+ this.$message.warning(`需要选择${this.generation.status.preferenceCount}个志愿`)
|
|
|
|
+ return
|
|
}
|
|
}
|
|
this.$confirm(`是否要提交报名`, {
|
|
this.$confirm(`是否要提交报名`, {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -527,7 +529,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
const rejectRow = this.activeModels.generation.models.filter(item => item.allowSelect)
|
|
const rejectRow = this.activeModels.generation.models.filter(item => item.allowSelect)
|
|
- await this.$confirm(`是否拒绝报名${rejectRow.map(item=> item.groupName).join(',')}?`)
|
|
|
|
|
|
+ await this.$confirm(`是否拒绝报名${rejectRow.map(item => item.groupName).join(',')}?`)
|
|
// 可以报名的组合都拒绝
|
|
// 可以报名的组合都拒绝
|
|
rejectRecommend({
|
|
rejectRecommend({
|
|
models: rejectRow
|
|
models: rejectRow
|
|
@@ -546,12 +548,12 @@ export default {
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style scoped>
|
|
<style scoped>
|
|
-.cell .el-tag {
|
|
|
|
- margin-right: 2px;
|
|
|
|
-}
|
|
|
|
|
|
+/*.cell .el-tag {*/
|
|
|
|
+/* margin-right: 2px;*/
|
|
|
|
+/*}*/
|
|
|
|
|
|
-.group /deep/ .el-badge__content.is-fixed {
|
|
|
|
- top: 8px;
|
|
|
|
- right: 14px;
|
|
|
|
-}
|
|
|
|
|
|
+/*.group /deep/ .el-badge__content.is-fixed {*/
|
|
|
|
+/* top: 8px;*/
|
|
|
|
+/* right: 14px;*/
|
|
|
|
+/*}*/
|
|
</style>
|
|
</style>
|