Blame view

src/components/fee/roomCreateFeeAddDemo.vue 728 Bytes
6ec243d6   wuxw   v1.9 点击提交后,成功提示没有...
1
  <template>
24d3590f   wuxw   房屋收费页面开发完成
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
    <div>
      <el-button @click="openModal">{{ $t('roomCreateFeeAddDemo.openModal') }}</el-button>
      <room-create-fee-add ref="roomCreateFeeAdd" @success="handleSuccess"></room-create-fee-add>
    </div>
  </template>
  
  <script>
  import RoomCreateFeeAdd from './roomCreateFeeAdd'
  
  export default {
    name: 'RoomCreateFeeAddDemo',
    components: {
      RoomCreateFeeAdd
    },
    methods: {
      openModal() {
        this.$refs.roomCreateFeeAdd.open({
          roomId: '123',
          floorNum: '1',
          unitNum: '2',
          roomNum: '101',
          ownerName: 'Test Owner',
          roomType: '2020601'
        })
      },
      handleSuccess() {
6ec243d6   wuxw   v1.9 点击提交后,成功提示没有...
28
        this.$message.success(this.$t('common.operationSuccess'))
24d3590f   wuxw   房屋收费页面开发完成
29
30
31
32
      }
    }
  }
  </script>