law-progress-detail-form.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <template>
  2. <sd-webflow
  3. ref="webflow"
  4. @afterDispatch="afterDispatch"
  5. @saveproject="save"
  6. @sdFormReady="initDatap"
  7. @actionBtnClick="actionBtnClick"
  8. >
  9. <template v-slot:form="{ model, FlowData }">
  10. <sd-form-by-builder ref="builderform" :form-data="FlowData.processFormData" />
  11. </template>
  12. </sd-webflow>
  13. </template>
  14. <script>
  15. import DisputeMixins from './dispute-mixins.js'
  16. import components from './_import-components/law-progress-detail-form-import'
  17. export default {
  18. name: 'LawProgressDetailForm',
  19. metaInfo: {
  20. title: '纠纷进展详情',
  21. },
  22. components,
  23. mixins: [DisputeMixins],
  24. data() {
  25. return {}
  26. },
  27. mounted() {
  28. this.type = 'jfProgress'
  29. const _this = this
  30. const ini = setInterval(() => {
  31. if (
  32. _this.$refs.webflow &&
  33. (_this.$refs.webflow.$refs.form || _this.$refs.webflow.$refs.sdForm)
  34. ) {
  35. clearInterval(ini)
  36. if (_this.$refs.webflow.getFieldValue('STEP_NAME')) {
  37. document.querySelector('.toptitle_sd-header_common').innerHTML =
  38. _this.$refs.webflow.getFieldValue('STEP_NAME')
  39. }
  40. }
  41. }, 100)
  42. },
  43. methods: {
  44. initDatap() {
  45. this.initData()
  46. const _this = this
  47. const ini = setInterval(() => {
  48. if (
  49. _this.$refs.webflow &&
  50. (_this.$refs.webflow.$refs.form || _this.$refs.webflow.$refs.sdForm)
  51. ) {
  52. clearInterval(ini)
  53. if (_this.$refs.webflow.getFieldValue('STEP_NAME')) {
  54. document.querySelector('.toptitle_sd-header_common').innerHTML =
  55. _this.$refs.webflow.getFieldValue('STEP_NAME')
  56. }
  57. }
  58. }, 1000)
  59. },
  60. },
  61. }
  62. </script>
  63. <style module lang="scss">
  64. @use '@/common/design' as *;
  65. </style>