田源
2024-03-12 d2ec80698da26b345576d11c6b0221c988eb3e3a
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
30
31
32
33
34
35
36
37
38
39
40
<template>
  <basic-container>
    <h3>{{$route.query.id?'编辑':'新增'}}</h3>
    <avue-form :option="option"
               v-model="form">
      <template slot="menuForm">
        <el-button icon="el-icon-back"
                   @click="handleBack()">返 回</el-button>
      </template>
    </avue-form>
  </basic-container>
</template>
 
<script>
export default {
  data() {
    return {
      form: {},
      option: {
        labelWidth: 110,
        column: [
          {
            label: "姓名",
            prop: "name"
          }
        ]
      }
    };
  },
  methods: {
    handleBack() {
      this.$router.$avueRouter.closeTag();
      this.$router.back();
    }
  }
};
</script>
 
<style>
</style>