ec3b1f635e4fd5c438eac7c0f84d2b9321bb1662.svn-base 3.1 KB

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