e8c3a2cdec32a88ec03feb4c0571785c8febc296.svn-base 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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"></component>
  9. </div>
  10. </el-dialog>
  11. </template>
  12. <script>
  13. import xiaofangyiqing from "./addProblemForm.vue"
  14. export default {
  15. props: {
  16. // 1 小水库 2 人饮 3 水毁
  17. objType: {
  18. default: '2',
  19. // required: true
  20. },
  21. //对象类型 0 小水库 1 行政村 2 水源地 3 饮水工程 4 水毁工程
  22. villType: {
  23. default: '1',
  24. // required: true
  25. },
  26. villCode: {
  27. default: '1',
  28. // required: true
  29. },
  30. //对象id
  31. objId: {
  32. default: '',
  33. // required: true
  34. },
  35. //对象名称
  36. objName: {
  37. default: '行政村',
  38. // required: true
  39. },
  40. //问题中类型
  41. problemMiddleType: {
  42. default: '用水户情况'
  43. },
  44. //问题小类型
  45. problemSmallType: {
  46. default: '水质'
  47. },
  48. cwsCode: {
  49. default: ''
  50. },
  51. grwCode: {
  52. default: ''
  53. },
  54. stationType: {
  55. default: ''
  56. },
  57. regId: {
  58. default: ''
  59. },
  60. currentObjectRgstrId: {
  61. default: ''
  62. },
  63. fenlei: {
  64. default: ''
  65. },
  66. problData: {
  67. default: ''
  68. }
  69. },
  70. components: {
  71. 'xiaofangyiqing': xiaofangyiqing
  72. },
  73. data() {
  74. return {
  75. dialogTableVisible: true,
  76. curComponent: ''
  77. }
  78. },
  79. mounted() {
  80. this.$nextTick(() => {
  81. this.curComponent = this.fenlei;
  82. })
  83. },
  84. methods: {
  85. dialogClose() {
  86. this.$emit('closeDialog')
  87. }
  88. }
  89. }
  90. </script>
  91. <style>
  92. .title {
  93. font-size: 16px;
  94. }
  95. .el-icon-edit {
  96. margin-right: 10px;
  97. }
  98. .custom_dialog .el-dialog {
  99. width: 55%;
  100. }
  101. .custom_dialog .el-dialog__body {
  102. padding: 30px 20px;
  103. color: #606266;
  104. font-size: 14px;
  105. height: 60vh;
  106. overflow: auto;
  107. }
  108. </style>