lihang
2023-07-13 a3c868db4d017961be2d394eadb7d428045d5adc
Source/UBCS-WEB/dist/src/views/util/form-detail.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,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>