7731dfea8097e4aa056fe2a98ba69c9d5ce483e0.svn-base 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!-- -->
  2. <template>
  3. <div id="popupContainer" class=''>
  4. <el-dialog :title="Title" @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. :shInfoCon="shInfoCon">
  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. problemList:resolve => {require(['./problemList.vue'], resolve)},//问题列表
  25. },
  26. props:['shInfoCon','Title'],
  27. data() {
  28. return {
  29. currentViewId:'基础信息',
  30. dialogFormVisible:true,
  31. options: [
  32. {
  33. value: "jichuxinxi",
  34. label: "基础信息"
  35. },
  36. // {
  37. // value: "problemList",
  38. // label: "问题列表"
  39. // }
  40. ]
  41. };
  42. },
  43. computed: {},
  44. watch: {},
  45. //生命周期 - 创建完成(可以访问当前this实例)
  46. created() {
  47. },
  48. //生命周期 - 挂载完成(可以访问DOM元素)
  49. mounted() {
  50. },
  51. beforeCreate() {}, //生命周期 - 创建之前
  52. beforeMount() {}, //生命周期 - 挂载之前
  53. beforeUpdate() {}, //生命周期 - 更新之前
  54. updated() {}, //生命周期 - 更新之后
  55. beforeDestroy() {}, //生命周期 - 销毁之前
  56. destroyed() {}, //生命周期 - 销毁完成
  57. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  58. methods: {
  59. closeDialog() {
  60. this.$emit("cancelHandler");
  61. },
  62. showDialog() {
  63. this.dialogFormVisible = true;
  64. },
  65. },
  66. }
  67. </script>
  68. <style scoped>
  69. /*@import url(); 引入公共css类*/
  70. </style>