ab0426cde2395ea1eddfba97e980afcda1dd3c1b.svn-base 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <el-dialog class="custom_dialog" append-to-body :close-on-click-modal="false" :title="objName + '新增整改问题'"
  3. :visible.sync="dialogTableVisible" @close="dialogClose">
  4. <!-- <p class="title"><i class="el-icon-edit"></i>{{classify}}{{type}}</p> -->
  5. <div style="text-align: center;">
  6. <component :is="curComponent" :objId="objId" :objType="objType" :villType="villType" :villCode="villCode"
  7. :cwsCode="cwsCode" :grwCode="grwCode" :objName="objName" :problData="problData" :regId="regId"
  8. :currentObjectRgstrId="currentObjectRgstrId" @closeDialog="dialogClose"
  9. :currentProblemId="currentProblemId"
  10. :currentResCode="currentResCode"
  11. :currentRsvrNm="currentRsvrNm"
  12. :currentAdCode="currentAdCode"
  13. :problemId="problemId"></component>
  14. </div>
  15. </el-dialog>
  16. </template>
  17. <script>
  18. import xskfc from "../xsk2021/addProblemForm_xskfc.vue"
  19. import xiaoshuiku from "../xsk2021/addProblemForm.vue"
  20. import shuizha from "../shuizha/addProblemForm.vue"
  21. import addRecheck from "../xsk2021/addRecheck.vue"
  22. export default {
  23. props: {
  24. // 1 小水库 2 人饮 3 水毁
  25. objType: {
  26. default: '2',
  27. // required: true
  28. },
  29. //对象类型 0 小水库 1 行政村 2 水源地 3 饮水工程 4 水毁工程
  30. villType: {
  31. default: '1',
  32. // required: true
  33. },
  34. villCode: {
  35. default: '1',
  36. // required: true
  37. },
  38. //对象id
  39. objId: {
  40. default: '',
  41. // required: true
  42. },
  43. //对象名称
  44. objName: {
  45. default: '行政村',
  46. // required: true
  47. },
  48. //问题中类型
  49. problemMiddleType: {
  50. default: '用水户情况'
  51. },
  52. //问题小类型
  53. problemSmallType: {
  54. default: '水质'
  55. },
  56. cwsCode: {
  57. default: ''
  58. },
  59. grwCode: {
  60. default: ''
  61. },
  62. stationType: {
  63. default: ''
  64. },
  65. regId: {
  66. default: ''
  67. },
  68. currentObjectRgstrId: {
  69. default: ''
  70. },
  71. fenlei: {
  72. default: ''
  73. },
  74. problData: {
  75. default: ''
  76. },
  77. currentProblemId: {
  78. default: ''
  79. },
  80. currentResCode: {
  81. default: ''
  82. },
  83. currentAdCode: {
  84. default: ''
  85. },
  86. currentRsvrNm: {
  87. default: ''
  88. },
  89. problemId: {
  90. default: ''
  91. },
  92. },
  93. components: {
  94. 'xiaoshuiku': xiaoshuiku,
  95. shuizha:shuizha,
  96. xskfc:xskfc,
  97. addRecheck:addRecheck
  98. },
  99. data() {
  100. return {
  101. dialogTableVisible: true,
  102. curComponent: ''
  103. }
  104. },
  105. mounted() {
  106. this.$nextTick(() => {
  107. this.curComponent = this.fenlei;
  108. })
  109. },
  110. methods: {
  111. dialogClose() {
  112. this.$emit('closeDialog')
  113. }
  114. }
  115. }
  116. </script>
  117. <style>
  118. .title {
  119. font-size: 16px;
  120. }
  121. .el-icon-edit {
  122. margin-right: 10px;
  123. }
  124. .custom_dialog .el-dialog {
  125. width: 45%;
  126. }
  127. .custom_dialog .el-dialog__body {
  128. padding: 30px 20px;
  129. color: #606266;
  130. font-size: 14px;
  131. height: 60vh;
  132. overflow: auto;
  133. }
  134. </style>