田源
2024-11-14 8835c9e1dec836d6d8159e78b9df12ad6402ad98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<template>
  <basic-container show-form>
    <el-button
      class="ml10"
      type="primary"
      icon="el-icon-plus"
      @click="onOpenDialogByAdd('add')"
      >新增</el-button
    >
    <refer-dialog ref="referDialogRef"></refer-dialog>
  </basic-container>
</template>
 
<script>
import referDialog from "./referDemoDialog.vue";
 
export default {
  name: "referIndex",
  components: { referDialog },
  methods: {
    // 新增
    onOpenDialogByAdd(type) {
      this.$refs.referDialogRef.openDialog({ type: type });
    },
  },
};
</script>
 
<style scoped></style>