2a4d8551d7c698363337571fbc9a63159eef57fd.svn-base 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. :currentYdbCode="currentYdbCode">
  14. </component>
  15. </el-tab-pane>
  16. </el-tabs>
  17. </el-dialog>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. components: {
  23. jichuxinxi:resolve => {require(['./jichuxinxi.vue'], resolve)},//基础信息
  24. },
  25. props: ["currentYdbCode"],
  26. data() {
  27. return {
  28. currentViewId:'基础信息',
  29. dialogFormVisible:true,
  30. options: [
  31. {
  32. value: "jichuxinxi",
  33. label: "基础信息"
  34. }
  35. ]
  36. };
  37. },
  38. computed: {},
  39. watch: {
  40. },
  41. //生命周期 - 创建完成(可以访问当前this实例)
  42. created() {
  43. },
  44. //生命周期 - 挂载完成(可以访问DOM元素)
  45. mounted() {
  46. // this.$nextTick(() =>{
  47. // this.currentViewId = this.activeName;
  48. // })
  49. },
  50. beforeCreate() {}, //生命周期 - 创建之前
  51. beforeMount() {}, //生命周期 - 挂载之前
  52. beforeUpdate() {}, //生命周期 - 更新之前
  53. updated() {}, //生命周期 - 更新之后
  54. beforeDestroy() {}, //生命周期 - 销毁之前
  55. destroyed() {}, //生命周期 - 销毁完成
  56. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  57. methods: {
  58. closeDialog() {
  59. this.$emit("closeModal");
  60. },
  61. showDialog() {
  62. this.dialogFormVisible = true;
  63. },
  64. },
  65. }
  66. </script>
  67. <style scoped>
  68. /*@import url(); 引入公共css类*/
  69. </style>