土地流转 增删改查

This commit is contained in:
shijingjing
2022-04-07 18:03:54 +08:00
parent d5acaec0ba
commit fb93f70776
7 changed files with 410 additions and 34 deletions

View File

@@ -0,0 +1,54 @@
<template>
<section class="AppGroupShareholders">
<keep-alive :include="['List']">
<component ref="component" :is="component" :instance="instance" :params="params" :dict="dict" @change="onChange"/>
</keep-alive>
</section>
</template>
<script>
import List from "./components/List.vue";
import Add from "./components/Add.vue";
export default {
name: "AppGroupShareholders",
label: "集体经济股权",
props: {
instance: Function,
dict: Object,
},
components: {Add, List},
data() {
return {
component: "List",
params: {},
include: [],
}
},
methods: {
onChange(data) {
if (data.type === "Add") {
this.component = "Add";
this.params = data.params;
}
if (data.type === "List") {
this.component = "List";
this.params = data.params;
this.$nextTick(() => {
if (data.isRefresh) {
this.$refs.component.getTableData();
}
});
}
},
},
}
</script>
<style lang="scss" scoped>
.AppGroupShareholders {
height: 100%;
}
</style>