5737fa37c9effc9ea30fc5d2b5fa335c00fcab7c.svn-base 2.7 KB

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