dc7194cdfe07579dc2f10cbb1ef89af260253b6b.svn-base 2.5 KB

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