综合办公系统
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

formInfo.vue 992B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!--
  2. * @Author: ysh
  3. * @Date: 2025-06-16 16:26:24
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2025-08-04 14:47:18
  6. -->
  7. <template>
  8. <view>
  9. <borrow :taskForm="taskForm" :taskName="''" v-if="types == 'borrow'"></borrow>
  10. <declare :taskForm="taskForm" :taskName="''" v-if="types == 'declare'"></declare>
  11. </view>
  12. </template>
  13. <script>
  14. import borrow from '@/pages/form/borrow/borrow.vue'
  15. import declare from '@/pages/form/declare/declare.vue'
  16. export default {
  17. components: { borrow, declare },
  18. created() {
  19. if (this.$route.query.formType == 'borrow') {
  20. this.taskForm.formId = this.$route.query.formId
  21. this.types = 'borrow'
  22. }else if (this.$route.query.formType == 'declare') {
  23. this.taskForm.formId = this.$route.query.formId
  24. this.types = 'declare'
  25. }
  26. },
  27. data() {
  28. return {
  29. taskForm: {
  30. formId: ''
  31. },
  32. types: ''
  33. }
  34. },
  35. }
  36. </script>
  37. <style lang="scss" scoped></style>