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> :key="item.id"></el-option>
</el-select> </el-select>
</search-item> </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> </search>
</el-card> </el-card>
@@ -154,7 +168,7 @@ layout("/layouts/platform.html"){
data() { data() {
return { return {
sessionOptions: [], sessionOptions: [],
units: [], unionOptions: [],
pageForm: { pageForm: {
isFormalOrAttendance: "全部", isFormalOrAttendance: "全部",
unionId: "", unionId: "",
@@ -263,11 +277,6 @@ layout("/layouts/platform.html"){
}) })
}) })
}, },
listUnion() {
this.$businessTool.listUnit().then((res) => {
this.units = res
})
},
listSession() { listSession() {
this.$axios.post("/platform/teacherCongress/common/listSession").then((res) => { this.$axios.post("/platform/teacherCongress/common/listSession").then((res) => {
if (res.code === 0) { if (res.code === 0) {
@@ -281,7 +290,7 @@ layout("/layouts/platform.html"){
} }
}, },
async created() { async created() {
this.listUnion() this.$businessTool.listUnion().then((res) => (this.unionOptions = res))
this.listSession() this.listSession()
} }
}) })