组织换届

This commit is contained in:
shijingjing
2022-10-13 17:10:36 +08:00
parent 3bec4fc26d
commit 1940a24a05
6 changed files with 266 additions and 1 deletions

View File

@@ -0,0 +1,60 @@
<template>
<section class="AppOrganizationChange">
<keep-alive :include="['List']">
<component ref="component" :is="component" :instance="instance" :selected.sync="selected" :params="params" :dict="dict" @change="onChange"/>
</keep-alive>
</section>
</template>
<script>
import addChange from "./components/addChange.vue";
import List from "./components/List.vue";
export default {
name: "AppOrganizationChange",
label: "组织换届",
props: {
instance: Function,
dict: Object,
},
components: {List, addChange},
data() {
return {
component: "List",
params: {},
include: [],
selected: {},
}
},
methods: {
onChange(data) {
if (data.type === "List") {
this.component = "List";
this.params = data.params;
}
if (data.type === "addChange") {
this.component = "addChange";
this.params = data.params;
this.$nextTick(() => {
if (data.isRefresh) {
this.$refs.component.getList();
}
});
}
},
},
created() {
let {organizationId: id, organizationName: name} = this.user.info
this.selected = {id, name}
// this.dict.load("portalUserStatus", "enterpriseStatus", "userEnterpriseStatus","enterpriseType")
}
}
</script>
<style lang="scss" scoped>
.AppOrganizationChange {
height: 100%;
}
</style>