5cec489d2dde5183ed05bad9d3a509030cede7be.svn-base 4.1 KB

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