c61f4b5ab3b5259b302c95db08b3b2afb5a39a67.svn-base 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <el-dialog class="customs_dialog" :modal="false" :title="problemMiddleType + '新增问题'" :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" :objName="objName" :problemMiddleType="problemMiddleType" :problemSmallType="problemSmallType" :currentObjectRgstrId="currentObjectRgstrId" @closeDialog="dialogClose"></component>
  6. </div>
  7. </el-dialog>
  8. </template>
  9. <script>
  10. import sanGeZeRen from "./addProblem/sanGeZeRen.vue"
  11. import sanXiangZhiDu from "./addProblem/sanXiangZhiDu.vue"
  12. import jianCeZhongXin from "./addProblem/jianCeZhongXin.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 水毁工程 5管理责任体系落实情况
  21. villType: {
  22. default: '5',
  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. currentObjectRgstrId: {
  51. default: ''
  52. }
  53. },
  54. components: {
  55. 'sanGeZeRen': sanGeZeRen,
  56. 'sanXiangZhiDu':sanXiangZhiDu,
  57. 'jianCeZhongXin': jianCeZhongXin
  58. },
  59. data(){
  60. return{
  61. dialogTableVisible: true,
  62. curComponent: 'sanGeZeRen'
  63. }
  64. },
  65. mounted:function(){
  66. if(this.problemSmallType =="三个责任问题"){
  67. this.curComponent ="sanGeZeRen";
  68. }else if(this.problemSmallType =="三个制度问题"){
  69. this.curComponent ="sanXiangZhiDu";
  70. }else if(this.problemSmallType =="县级水质检测中心问题"){
  71. this.curComponent ="jianCeZhongXin";
  72. }
  73. },
  74. methods:{
  75. dialogClose(){
  76. this.$emit('closeDialog')
  77. }
  78. }
  79. }
  80. </script>
  81. <style>
  82. .title{
  83. font-size: 16px;
  84. }
  85. .el-icon-edit{
  86. margin-right: 10px;
  87. }
  88. .customs_dialog .el-dialog{
  89. width: 40% !important;
  90. }
  91. .customs_dialog .el-dialog__body {
  92. padding: 30px 20px;
  93. color: #606266;
  94. font-size: 14px;
  95. height: 60vh;
  96. overflow: auto;
  97. }
  98. </style>