bf2d3a3884996f2ed810c4be388fca19c53137d5.svn-base 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!-- -->
  2. <template>
  3. <div id="popupContainer" class=''>
  4. <el-dialog :title="currentObjectName" @close="closeDialog" width="50%" :visible.sync="dialogFormVisible">
  5. <el-tabs v-model="currentViewId" type="card">
  6. <el-tab-pane
  7. :label="option.label"
  8. :name="option.label"
  9. v-for="option in options"
  10. :key="option.value">
  11. <component
  12. :is="option.value"
  13. :currentObjectRgstrId="currentObjectRgstrId"
  14. :currentObjectName="currentObjectName"
  15. :currentResCode="currentResCode"
  16. :currentObjectId="currentObjectId"
  17. :isJiangXi="isJiangXi">
  18. </component>
  19. </el-tab-pane>
  20. </el-tabs>
  21. </el-dialog>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. components: {
  27. jichuxinxi:resolve => {require(['./jichuxinxi.vue'], resolve)},//基础信息
  28. zerenren:resolve => {require(['./zerenrenFive.vue'], resolve)},//责任人
  29. zhongdianhuanjie:resolve => {require(['./zhongdianhuanjie.vue'], resolve)},//重点环节
  30. gongchengshiti:resolve => {require(['./gongchengshiti.vue'], resolve)},//工程实体
  31. yunxingguanli:resolve => {require(['./yunxingguanli.vue'], resolve)},//运行管理情况
  32. problemList:resolve => {require(['./problemList.vue'], resolve)},//问题清单
  33. },
  34. props: ["currentDuchaTpe","currentObjectRgstrId","currentResCode","currentObjectId","currentObjectName","isJiangXi"],
  35. data() {
  36. return {
  37. currentViewId:'基础信息',
  38. dialogFormVisible:true,
  39. options:[],
  40. options_ducha: [
  41. {
  42. value: "jichuxinxi",
  43. label: "基础信息"
  44. },{
  45. value: "zerenren",
  46. label: "责任人落实情况"
  47. },{
  48. value: "zhongdianhuanjie",
  49. label: "重点环节落实情况"
  50. },{
  51. value: "gongchengshiti",
  52. label: "水库工程实体"
  53. },{
  54. value: "yunxingguanli",
  55. label: "运行管理情况"
  56. },{
  57. value: "problemList",
  58. label: '问题清单'
  59. }
  60. ],
  61. options_base: [
  62. {
  63. value: "jichuxinxi",
  64. label: "基础信息"
  65. }
  66. ],
  67. };
  68. },
  69. computed: {},
  70. watch: {},
  71. //生命周期 - 创建完成(可以访问当前this实例)
  72. created() {
  73. },
  74. //生命周期 - 挂载完成(可以访问DOM元素)
  75. mounted() {
  76. this.options = this.options_ducha;
  77. },
  78. beforeCreate() {}, //生命周期 - 创建之前
  79. beforeMount() {}, //生命周期 - 挂载之前
  80. beforeUpdate() {}, //生命周期 - 更新之前
  81. updated() {}, //生命周期 - 更新之后
  82. beforeDestroy() {}, //生命周期 - 销毁之前
  83. destroyed() {}, //生命周期 - 销毁完成
  84. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  85. methods: {
  86. closeDialog() {
  87. this.$emit("cancelHandler");
  88. },
  89. showDialog() {
  90. this.dialogFormVisible = true;
  91. },
  92. },
  93. }
  94. </script>
  95. <style scoped>
  96. /*@import url(); 引入公共css类*/
  97. .el-dialog__header{
  98. text-align: center !important;
  99. border-bottom: 1px dashed #C5C6C8 !important;
  100. }
  101. .el-dialog{
  102. border-radius: 4px !important;
  103. }
  104. </style>