学生资助、学生奖惩等内容提交

This commit is contained in:
2025-12-03 09:55:58 +08:00
parent a5c6980bdd
commit aa83bf8b94
26 changed files with 2288 additions and 1411 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div>
<template v-for="(item, index) in options">
<template v-if="values.includes(item.value)">
<template v-if="values.includes(String(item.value).trim())">
<span
v-if="item.raw.listClass == 'default' || item.raw.listClass == ''"
:key="item.value"
@@ -20,6 +20,7 @@
</el-tag>
</template>
</template>
</div>
</template>
@@ -36,7 +37,9 @@ export default {
computed: {
values() {
if (this.value !== null && typeof this.value !== 'undefined') {
return Array.isArray(this.value) ? this.value : [String(this.value)]
return Array.isArray(this.value)
? this.value.map(v => String(v).trim())
: [String(this.value).trim()]
} else {
return []
}
@@ -48,4 +51,4 @@ export default {
.el-tag + .el-tag {
margin-left: 10px;
}
</style>
</style>