组织换届重构完成

This commit is contained in:
aixianling
2022-10-27 18:07:02 +08:00
parent a477039f7c
commit 31cbb5d2bf
7 changed files with 207 additions and 445 deletions

View File

@@ -3,7 +3,7 @@
<ai-search-bar>
<template #left>
<el-button type="primary" icon="iconfont iconEdit" @click="$router.push({hash:'#makeup',query:{}})">补录</el-button>
<el-button type="primary" icon="iconfont iconEdit" @click="$router.push({hash:'#makeup',query:{oid}})">补录</el-button>
</template>
<template #right>
<el-input size="small" placeholder="请输入届次" v-model="search.name" clearable
@@ -49,6 +49,14 @@ export default {
},
oid: v => v.$attrs.selected.id
},
watch: {
oid: {
immediate: true,
handler() {
this.getList()
}
}
},
methods: {
handleEdit(id) {
this.$router.push({hash: "#makeup", query: {id}})
@@ -67,7 +75,7 @@ export default {
},
getList() {
const {oid: organizationId} = this
this.instance.post("/app/apporganizationgeneralelection/list", null, {
organizationId && this.instance.post("/app/apporganizationgeneralelection/list", null, {
params: {...this.search, organizationId}
}).then(res => {
if (res?.data) {
@@ -76,9 +84,6 @@ export default {
})
}
},
created() {
this.getList()
},
}
</script>