bbccc7657a3320a08f741621eb64d7de92fc4a18.svn-base 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <div id="popupContainer" class=''>
  3. <el-dialog @close="closeDialog" width="50%" :visible.sync="dialogFormVisible">
  4. <el-tabs v-model="currentViewId" type="card">
  5. <el-tab-pane
  6. :label="option.label"
  7. :name="option.label"
  8. v-for="option in options"
  9. :key="option.value">
  10. <component
  11. :is="option.value"
  12. :currentObjectRgstrId="currentObjectRgstrId"
  13. :currentObjectName="currentObjectName"
  14. :currentResCode="currentResCode"
  15. :currentObjectId="currentObjectId"
  16. :rowData="rowData"
  17. :ifReadyOnly="ifReadyOnly">
  18. </component>
  19. </el-tab-pane>
  20. </el-tabs>
  21. </el-dialog>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. components: {
  27. guanlizerentixi: resolve => {
  28. require(['./guanlizerentixi.vue'], resolve)
  29. },
  30. gongchengshitijiancha: resolve => {
  31. require(['./gongchengshitijiancha.vue'], resolve)
  32. },
  33. richangguanliweihu: resolve => {
  34. require(['./richangguanliweihu.vue'], resolve)
  35. },
  36. jichuxinxi: resolve => {
  37. require(['./jichuxinxi.vue'], resolve)
  38. },
  39. dfBaseSituation: resolve => {
  40. require(['./dfBaseSituation.vue'], resolve)
  41. },
  42. anquanguanli: resolve => {
  43. require(['./anquanguanli.vue'], resolve)
  44. },
  45. problemList: resolve => {
  46. require(['./difangProblemList.vue'], resolve)
  47. },
  48. },
  49. props: ["currentObjectRgstrId", "currentObjectName", "currentResCode", "currentObjectId", "rowData"],
  50. data() {
  51. return {
  52. currentViewId: '基础信息',
  53. dialogFormVisible: true,
  54. options: [
  55. {
  56. value: "jichuxinxi",
  57. label: "基础信息"
  58. },
  59. {
  60. value: "dfBaseSituation",
  61. label: "基本情况表"
  62. },
  63. // {
  64. // value: "guanlizerentixi",
  65. // label: '管理责任体系'
  66. // }, {
  67. // value: "anquanguanli",
  68. // label: '安全管理'
  69. // }, {
  70. // value: "richangguanliweihu",
  71. // label: '日常管理与维护'
  72. // }, {
  73. // value: "gongchengshitijiancha",
  74. // label: '工程实体检查'
  75. // },
  76. {
  77. value: "problemList",
  78. label: '问题清单'
  79. }
  80. ],
  81. ifReadyOnly: true
  82. };
  83. },
  84. computed: {},
  85. watch: {},
  86. //生命周期 - 创建完成(可以访问当前this实例)
  87. created() {
  88. },
  89. //生命周期 - 挂载完成(可以访问DOM元素)
  90. mounted() {
  91. },
  92. beforeCreate() {
  93. }, //生命周期 - 创建之前
  94. beforeMount() {
  95. }, //生命周期 - 挂载之前
  96. beforeUpdate() {
  97. }, //生命周期 - 更新之前
  98. updated() {
  99. }, //生命周期 - 更新之后
  100. beforeDestroy() {
  101. }, //生命周期 - 销毁之前
  102. destroyed() {
  103. }, //生命周期 - 销毁完成
  104. activated() {
  105. }, //如果页面有keep-alive缓存功能,这个函数会触发
  106. methods: {
  107. closeDialog() {
  108. this.$emit("cancelHandler", "ntslDcx");
  109. },
  110. showDialog() {
  111. this.dialogFormVisible = true;
  112. },
  113. },
  114. }
  115. </script>
  116. <style scoped>
  117. /*@import url(); 引入公共css类*/
  118. .ml5v {
  119. width: 16vw;
  120. display: inline-block;
  121. }
  122. </style>