This commit is contained in:
2025-12-29 14:10:22 +08:00
parent f79b6ac24d
commit 2742befa3d
@@ -14,6 +14,20 @@ layout("/layouts/platform.html"){
:key="item.id"></el-option>
</el-select>
</search-item>
<search-item label="所属工会"
v-if="$auth.hasRole('SYSADMIN')||$auth.hasRole('SCHOOL_UNION_ADMIN')">
<el-select
@change="doSearch"
clearable
filterable
placeholder="报名所属分工会"
style="width: 100%"
v-model="pageForm.unionId"
>
<el-option :key="item.id" :label="item.name" :value="item.id"
v-for="item in unionOptions"></el-option>
</el-select>
</search-item>
</search>
</el-card>
@@ -154,7 +168,7 @@ layout("/layouts/platform.html"){
data() {
return {
sessionOptions: [],
units: [],
unionOptions: [],
pageForm: {
isFormalOrAttendance: "全部",
unionId: "",
@@ -263,11 +277,6 @@ layout("/layouts/platform.html"){
})
})
},
listUnion() {
this.$businessTool.listUnit().then((res) => {
this.units = res
})
},
listSession() {
this.$axios.post("/platform/teacherCongress/common/listSession").then((res) => {
if (res.code === 0) {
@@ -281,7 +290,7 @@ layout("/layouts/platform.html"){
}
},
async created() {
this.listUnion()
this.$businessTool.listUnion().then((res) => (this.unionOptions = res))
this.listSession()
}
})