Files
dvcp_v2_webapp/project/xiushan/apps/AppAdministrativeLicense/AppAdministrativeLicense.vue

64 lines
1.4 KiB
Vue
Raw Normal View History

2022-04-01 09:30:35 +08:00
<template>
2022-04-01 13:37:56 +08:00
<section class="AppAdministrativeLicense">
<keep-alive :include="['List']">
<component ref="component" :is="component" :instance="instance" :params="params" :dict="dict" @change="onChange"/>
</keep-alive>
</section>
2022-04-01 09:30:35 +08:00
</template>
<script>
2022-04-01 13:37:56 +08:00
import List from "./components/List.vue";
import Add from "./components/Add.vue";
2022-04-01 14:04:05 +08:00
import Detail from "./components/Detail.vue";
2022-04-01 13:37:56 +08:00
2022-04-01 09:30:35 +08:00
export default {
name: "AppAdministrativeLicense",
label: "行政许可信息",
props: {
instance: Function,
dict: Object,
},
2022-04-01 14:04:05 +08:00
components: {Add, List,Detail},
2022-04-01 09:30:35 +08:00
data() {
return {
2022-04-01 13:37:56 +08:00
component: "List",
params: {},
include: [],
}
2022-04-01 09:30:35 +08:00
},
methods: {
2022-04-01 13:37:56 +08:00
onChange(data) {
if (data.type === "Add") {
this.component = "Add";
this.params = data.params;
}
2022-04-01 15:48:09 +08:00
if (data.type === "Detail") {
this.component = "Detail";
this.params = data.params;
}
2022-04-01 13:37:56 +08:00
if (data.type === "List") {
this.component = "List";
this.params = data.params;
this.$nextTick(() => {
if (data.isRefresh) {
this.$refs.component.getTableData();
}
});
}
2022-04-01 09:30:35 +08:00
},
},
2022-04-01 13:37:56 +08:00
created() {
this.dict.load("portalUserStatus", "enterpriseStatus", "userEnterpriseStatus","enterpriseType")
}
}
2022-04-01 09:30:35 +08:00
</script>
<style lang="scss" scoped>
.AppAdministrativeLicense {
2022-04-01 13:37:56 +08:00
height: 100%;
2022-04-01 09:30:35 +08:00
}
2022-04-01 13:37:56 +08:00
</style>