| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <template>
- <div id="shuikutianbaoId">
- <el-dialog :title="currentObjectName+'督查填报'" width="60%" :before-close="closeDialog" :visible.sync="dialogFormVisible">
- <el-container>
- <el-main id="dxdcListMain" style="padding:5px 20px;">
- <el-tabs v-model="currentViewId" type="card" @tab-click="tabIndexChange">
- <el-tab-pane
- :label="option.label"
- :name="option.label"
- v-for="option in options"
- :key="option.value">
- <component
- :is="option.value"
- :currentObjectRgstrId="currentObjectRgstrId"
- :currentObjectName="currentObjectName"
- :currentResCode="currentResCode"
- :currentObjectId="currentObjectId"
- :activeLabel="activeLabel"
- :pType="pType"
- :labelList="signatureLabelList"
- @cancelHandler="cancelHandler"
- @addShuiKuSuccess="addShuiKuSuccess"
- ></component>
- </el-tab-pane>
- </el-tabs>
- </el-main>
- </el-container>
- <!-- 添加/编辑人员弹窗 -->
- </el-dialog>
- </div>
- </template>
- <script>
- import request from "@util/gw_ajax_request.js";
- import jichuxinxi from "../shuiku/jichuxinxi.vue"
- import jichuxinxiFujian from "../shuiku/jichuxinxiFujian.vue"
- import problemCheck from './problemCheck.vue'
- import checkResult from './checkResult.vue'
- import problemList from './problemList.vue'
- import problemDialog from '../../duChaWenTi/problemDialog.vue'
- import signature from '../components/signature.vue'
- import {getrgstrIdObject} from "@api/duChaTianBao.js";
- import {optionsForNation, optionsForFujian} from './forDifferentProvince.js'
- export default {
- components: {
- jichuxinxi:jichuxinxi,
- jichuxinxiFujian,
- problemDialog:problemDialog,
- problemList:problemList,
- signature,
- problemCheck,
- checkResult
- },
- props: ['rowData','currentObjectRgstrId','currentResCode','currentObjectId','currentObjectName','pType'],
- data() {
- return {
- options: [],
- value: "",
- dialogShow:false,
- currentViewId: "基础信息纠错",
- dialogFormVisible:true,
- activeLabel: '',
- signatureLabelList: ['县','镇']
- };
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- },
- currentRlcode(){
- return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
- }
- },
- mounted() {
- if(this.currentRlcode.indexOf('35') == '0'){ //福建
- this.options = optionsForFujian
- }else{
- this.options = optionsForNation //通用
- }
- },
- watch: {},
- methods: {
- cancelHandler(){
- this.$emit('cancelHandler');
- },
- addShuiKuSuccess(){
- this.$emit('addShuiKuSuccess');
- },
- closeDialog(){
- this.$confirm('确认退出吗?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.$emit('cancelHandler');
- }).catch(() => {
-
- });
- },
- tabIndexChange(item){
- if(item.label == '问题清单'){
- this.activeLabel = item.label
- }else{
- this.activeLabel = ''
- }
- }
- }
- };
- </script>
- <style>
- #shuikutianbaoId .el-dialog{
- margin-top: 10vh;
- }
- </style>
|