01f9e6c316b60cc3fb3a0e4547c3b5af4c0094d6.svn-base 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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" :rowData="rowData"></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. rowData: {
  67. default: ''
  68. }
  69. },
  70. components: {
  71. 'qushuikou': qushuikou
  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>