fb45e833769e5aedc1cc3e84fc80b1ac2c306756.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div id="shuikutianbaoId">
  3. <el-dialog
  4. :title="currentObjectName+'复核'"
  5. width="60%"
  6. :before-close="closeDialog"
  7. :visible.sync="dialogFormVisible"
  8. >
  9. <el-container>
  10. <el-main id="dxdcListMain" style="padding:5px 20px;">
  11. <el-tabs v-model="currentViewId" type="card" @tab-click="tabIndexChange">
  12. <el-tab-pane
  13. :label="option.label"
  14. :name="option.label"
  15. v-for="option in options"
  16. :key="option.value"
  17. >
  18. <component
  19. :is="option.value"
  20. :objType="objType"
  21. :currentObjectRgstrId="currentObjectRgstrId"
  22. :currentObjectName="currentObjectName"
  23. :currentBaseId="currentBaseId"
  24. :openType="openType"
  25. :currentObjectId="currentObjectId"
  26. :activeLabel="activeLabel"
  27. @cancelHandler="cancelHandler"
  28. @addQiTaSuccess="addQiTaSuccess"
  29. ></component>
  30. </el-tab-pane>
  31. </el-tabs>
  32. </el-main>
  33. </el-container>
  34. </el-dialog>
  35. </div>
  36. </template>
  37. <script>
  38. import jichuxinxi from "./baseInfo.vue"
  39. import problemList from "./problemList.vue"
  40. export default {
  41. components: {
  42. jichuxinxi,
  43. problemList
  44. },
  45. props: ['rowData', 'currentObjectRgstrId', 'currentBaseId', 'currentObjectId', 'currentObjectName', 'objType','openType'],
  46. data () {
  47. return {
  48. options: [
  49. {
  50. value: "jichuxinxi",
  51. label: "问题复核"
  52. },
  53. {
  54. value: "problemList",
  55. label: "问题清单"
  56. }
  57. ],
  58. value: "",
  59. currentViewId: "问题复核",
  60. dialogFormVisible: true,
  61. activeLabel: ''
  62. }
  63. },
  64. computed: {
  65. persId () {
  66. return localStorage.getItem("userid")
  67. ? localStorage.getItem("userid")
  68. : "1098101939614724096"
  69. }
  70. },
  71. mounted () { },
  72. methods: {
  73. cancelHandler () {
  74. this.$emit('cancelHandler')
  75. },
  76. addQiTaSuccess () {
  77. this.$emit('addQiTaSuccess')
  78. },
  79. closeDialog () {
  80. this.$confirm('确认退出吗?', '提示', {
  81. confirmButtonText: '确定',
  82. cancelButtonText: '取消',
  83. type: 'warning'
  84. }).then(() => {
  85. this.$emit('cancelHandler')
  86. }).catch(() => {
  87. })
  88. },
  89. tabIndexChange (item) {
  90. if (item.label == '问题清单') {
  91. this.activeLabel = item.label
  92. } else {
  93. this.activeLabel = ''
  94. }
  95. }
  96. }
  97. };
  98. </script>
  99. <style>
  100. #shuikutianbaoId .el-dialog {
  101. margin-top: 10vh;
  102. }
  103. </style>