Blame view

frontend/manage/src/views/flow/ApprovalForm.vue 848 Bytes
8ea9c133   陈威   初始化提交
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
41
42
43
44
<template>
  <div name="approval-form" class="fullheight">
    <business-form
      :instId="instId"
      :inst-status="instStatus"
      :is-view="isView"
      :is-mobile="isMobile"
    />
  </div>
</template>

<script>
import BusinessForm from '@/views/flow/BusinessForm.vue'
export default {
  name: 'approvalForm',
  components: {
    BusinessForm
  },
  data() {
    return {
      isMobile: false
    }
  },
  beforeRouteEnter(to, from, next) {
    next(vm => {
      vm.isMobile = from.query.mobile === true || from.query.mobile === 'true'
    })
  },
  computed: {
    instId() {
      return this.$route.query.instId
    },
    instStatus() {
      return this.$route.query.instStatus
    },
    isView() {
      return this.$route.query.hasOwnProperty('isView')
    }
  },
  mounted() {}
}
</script>

<style lang="scss" scoped></style>