7de21703cf3e27fa174bb56d99785547a072a49c.svn-base 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!-- -->
  2. <template>
  3. <div id="popupContainer" class=''>
  4. <el-dialog @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. :currentObjectEngScale = "currentObjectEngScale"
  14. :currentObjectRgstrId="currentObjectRgstrId"
  15. :currentGroupId="currentGroupId"
  16. :currentAdcode="currentAdcode"
  17. :currentObjectName="currentObjectName"
  18. :currentResCode="currentSzySydCode"
  19. :currentObjectId="currentObjectId"
  20. :gdX="gdX"
  21. :gdY="gdY"
  22. :showOrEdit="showOrEdit"
  23. :baseForm="baseForm"
  24. :currentSzySydCode="currentSzySydCode">
  25. </component>
  26. </el-tab-pane>
  27. </el-tabs>
  28. </el-dialog>
  29. </div>
  30. </template>
  31. <script>
  32. import SydTb_AqBzDb from "../../../../duChaRenYuan/SydTb_AqBzDb.vue";
  33. import SydTb_BaseInfo from "../../../../duChaRenYuan/SydTb_BaseInfo.vue";
  34. import problemDialog from "../../../../duChaWenTi/problemDialog.vue";
  35. import SydTb_Wtqd from "../../../../duChaRenYuan/SydTb_Wtqd.vue";
  36. import SydTb_BhCsJg from '../../../../duChaRenYuan/SydTb_BhCsJg.vue'
  37. export default {
  38. components: {
  39. jichuxinxi:resolve => {require(['./jichuxinxi.vue'], resolve)},//基础信息
  40. SydTb_AqBzDb: SydTb_AqBzDb,
  41. SydTb_BaseInfo: SydTb_BaseInfo,
  42. problemDialog: problemDialog,
  43. SydTb_Wtqd: SydTb_Wtqd,
  44. SydTb_BhCsJg:SydTb_BhCsJg
  45. },
  46. props: ["currentDuchaTpe","currentSzySydCode",
  47. "rowData",
  48. "currentObjectRgstrId",
  49. "currentGroupId",
  50. "currentAdcode",
  51. "currentResCode",
  52. "currentObjectId",
  53. "currentObjectName",
  54. "currentObjectEngScale",
  55. "showOrEdit",
  56. "gdX","gdY","baseForm","activeName"],
  57. data() {
  58. return {
  59. currentViewId:'基础信息',
  60. dialogFormVisible:true,
  61. options: [],
  62. options_ducha:[
  63. {
  64. value: "jichuxinxi",
  65. label: "基础信息"
  66. },
  67. {
  68. value: "SydTb_BaseInfo",
  69. label: "登记信息"
  70. },
  71. // {
  72. // value: "SydTb_AqBzDb",
  73. // label: "安全保障达标落实情况"
  74. // },
  75. {
  76. value: "SydTb_BhCsJg",
  77. label: "全国重要饮用水水源地管理情况"
  78. },
  79. {
  80. value: "SydTb_Wtqd",
  81. label: "问题清单"
  82. }
  83. ],
  84. options_base:[
  85. {
  86. value: "jichuxinxi",
  87. label: "基础信息"
  88. }
  89. ]
  90. };
  91. },
  92. computed: {},
  93. watch: {
  94. activeName(){
  95. this.currentViewId = this.activeName;
  96. }
  97. },
  98. //生命周期 - 创建完成(可以访问当前this实例)
  99. created() {
  100. },
  101. //生命周期 - 挂载完成(可以访问DOM元素)
  102. mounted() {
  103. if(this.currentDuchaTpe){
  104. this.options = this.options_ducha;
  105. }else{
  106. this.options = this.options_base;
  107. }
  108. this.$nextTick(()=>{
  109. this.currentViewId = this.activeName;
  110. })
  111. },
  112. beforeCreate() {}, //生命周期 - 创建之前
  113. beforeMount() {}, //生命周期 - 挂载之前
  114. beforeUpdate() {}, //生命周期 - 更新之前
  115. updated() {}, //生命周期 - 更新之后
  116. beforeDestroy() {}, //生命周期 - 销毁之前
  117. destroyed() {}, //生命周期 - 销毁完成
  118. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  119. methods: {
  120. closeDialog() {
  121. this.$emit("closeModal");
  122. },
  123. showDialog() {
  124. this.dialogFormVisible = true;
  125. },
  126. },
  127. }
  128. </script>
  129. <style scoped>
  130. /*@import url(); 引入公共css类*/
  131. </style>