组织换届重构完成
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user