87916942a0764f4e6bc84e11ca8ab2d442515d40.svn-base 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. :currentResCode="currentResCode">
  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: ["currentResCode"],
  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. //生命周期 - 创建完成(可以访问当前this实例)
  41. created() {
  42. },
  43. //生命周期 - 挂载完成(可以访问DOM元素)
  44. mounted() {
  45. },
  46. beforeCreate() {}, //生命周期 - 创建之前
  47. beforeMount() {}, //生命周期 - 挂载之前
  48. beforeUpdate() {}, //生命周期 - 更新之前
  49. updated() {}, //生命周期 - 更新之后
  50. beforeDestroy() {}, //生命周期 - 销毁之前
  51. destroyed() {}, //生命周期 - 销毁完成
  52. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  53. methods: {
  54. closeDialog() {
  55. this.$emit("closeModal");
  56. },
  57. showDialog() {
  58. this.dialogFormVisible = true;
  59. },
  60. },
  61. }
  62. </script>
  63. <style scoped>
  64. /*@import url(); 引入公共css类*/
  65. </style>