学生资助、学生奖惩等内容提交
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user