e0f0e55d2e8c44df02b1d15ef1eaa2500c7537b8.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <el-dialog class="custom_dialog" :append-to-body = 'true' :modal="true" :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" :problData="problData" :regId="regId" :currentObjectRgstrId="currentObjectRgstrId" @closeDialog="dialogClose"></component>
  6. </div>
  7. </el-dialog>
  8. </template>
  9. <script>
  10. import qushuikou from "./addProblemForm.vue"
  11. export default {
  12. props: {
  13. // 1 小水库 2 人饮 3 水毁
  14. objType: {
  15. default: '2',
  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. fenlei:{
  61. default: ''
  62. },
  63. problData: {
  64. default: ''
  65. }
  66. },
  67. components: {
  68. 'qushuikou': qushuikou
  69. },
  70. data(){
  71. return{
  72. dialogTableVisible: true,
  73. curComponent: ''
  74. }
  75. },
  76. mounted(){
  77. this.$nextTick(() =>{
  78. this.curComponent = this.fenlei;
  79. })
  80. },
  81. methods:{
  82. dialogClose(){
  83. this.$emit('closeDialog')
  84. }
  85. }
  86. }
  87. </script>
  88. <style>
  89. .title{
  90. font-size: 16px;
  91. }
  92. .el-icon-edit{
  93. margin-right: 10px;
  94. }
  95. .custom_dialog .el-dialog{
  96. width: 55%;
  97. }
  98. .custom_dialog .el-dialog__body {
  99. padding: 30px 20px;
  100. color: #606266;
  101. font-size: 14px;
  102. height: 60vh;
  103. overflow: auto;
  104. }
  105. </style>