17f23d1148141d1ddf7a119dda77fa7e4a6370c8.svn-base 2.5 KB

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