a6517f28f62ae036f51973d001200aa34e5a5a4c.svn-base 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. :currentObjectRgstrId="currentObjectRgstrId"
  15. :currentObjectName="currentObjectName"
  16. :currentResCode="currentResCode"
  17. :currentObjectId="currentObjectId"
  18. :activeLabel="activeLabel"
  19. :pType="pType"
  20. :labelList="signatureLabelList"
  21. @cancelHandler="cancelHandler"
  22. @addShuiKuSuccess="addShuiKuSuccess"
  23. ></component>
  24. </el-tab-pane>
  25. </el-tabs>
  26. </el-main>
  27. </el-container>
  28. <!-- 添加/编辑人员弹窗 -->
  29. </el-dialog>
  30. </div>
  31. </template>
  32. <script>
  33. import request from "@util/gw_ajax_request.js";
  34. import jichuxinxi from "../shuiku/jichuxinxi.vue"
  35. import jichuxinxiFujian from "../shuiku/jichuxinxiFujian.vue"
  36. import problemCheck from './problemCheck.vue'
  37. import checkResult from './checkResult.vue'
  38. import problemList from './problemList.vue'
  39. import problemDialog from '../../duChaWenTi/problemDialog.vue'
  40. import signature from '../components/signature.vue'
  41. import {getrgstrIdObject} from "@api/duChaTianBao.js";
  42. import {optionsForNation, optionsForFujian} from './forDifferentProvince.js'
  43. export default {
  44. components: {
  45. jichuxinxi:jichuxinxi,
  46. jichuxinxiFujian,
  47. problemDialog:problemDialog,
  48. problemList:problemList,
  49. signature,
  50. problemCheck,
  51. checkResult
  52. },
  53. props: ['rowData','currentObjectRgstrId','currentResCode','currentObjectId','currentObjectName','pType'],
  54. data() {
  55. return {
  56. options: [],
  57. value: "",
  58. dialogShow:false,
  59. currentViewId: "基础信息纠错",
  60. dialogFormVisible:true,
  61. activeLabel: '',
  62. signatureLabelList: ['县','镇']
  63. };
  64. },
  65. computed: {
  66. persId() {
  67. return localStorage.getItem("userid")
  68. ? localStorage.getItem("userid")
  69. : "1098101939614724096";
  70. },
  71. currentRlcode(){
  72. return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
  73. }
  74. },
  75. mounted() {
  76. if(this.currentRlcode.indexOf('35') == '0'){ //福建
  77. this.options = optionsForFujian
  78. }else{
  79. this.options = optionsForNation //通用
  80. }
  81. },
  82. watch: {},
  83. methods: {
  84. cancelHandler(){
  85. this.$emit('cancelHandler');
  86. },
  87. addShuiKuSuccess(){
  88. this.$emit('addShuiKuSuccess');
  89. },
  90. closeDialog(){
  91. this.$confirm('确认退出吗?', '提示', {
  92. confirmButtonText: '确定',
  93. cancelButtonText: '取消',
  94. type: 'warning'
  95. }).then(() => {
  96. this.$emit('cancelHandler');
  97. }).catch(() => {
  98. });
  99. },
  100. tabIndexChange(item){
  101. if(item.label == '问题清单'){
  102. this.activeLabel = item.label
  103. }else{
  104. this.activeLabel = ''
  105. }
  106. }
  107. }
  108. };
  109. </script>
  110. <style>
  111. #shuikutianbaoId .el-dialog{
  112. margin-top: 10vh;
  113. }
  114. </style>