人员管理

This commit is contained in:
Paidax
2025-09-30 17:17:13 +08:00
parent 59918d1f14
commit 761ade5916
@@ -14,7 +14,7 @@ layout("/layouts/platform.html"){
code="SPECIAL_STAFF_TYPE"></dict-select> code="SPECIAL_STAFF_TYPE"></dict-select>
</search-item> </search-item>
<search-item label="所属工会"> <search-item label="所属工会">
<el-select @change="flushUnits" @clear="flushUnits" clearable filterable <el-select @change="flushUnits();doSearch()" @clear="flushUnits" clearable filterable
placeholder="所属工会" style="width: 100%;" v-model="pageForm.unionId"> placeholder="所属工会" style="width: 100%;" v-model="pageForm.unionId">
<el-option :key="item.id" :label="item.name" :value="item.id" <el-option :key="item.id" :label="item.name" :value="item.id"
v-for="item in unions"></el-option> v-for="item in unions"></el-option>
@@ -366,7 +366,7 @@ layout("/layouts/platform.html"){
this.$set(this.pageForm, "unitId", null) this.$set(this.pageForm, "unitId", null)
this.units = [] this.units = []
if (this.pageForm.unionId) { if (this.pageForm.unionId) {
this.units = this.$businessTool.listUnit(this.pageForm.unionId) this.units = await this.$businessTool.listUnit(this.pageForm.unionId)
} }
}, },
async initData() { async initData() {
@@ -380,6 +380,7 @@ layout("/layouts/platform.html"){
async created() { async created() {
this.initData() this.initData()
this.pageData() this.pageData()
this.unions = await this.$businessTool.listUnion()
}, },
}); });
</script> </script>