3051e69bdcaa9653c22fbd4ce356bca5c80d482d.svn-base 2.7 KB

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