| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <template>
- <div id="shuikutianbaoId">
- <el-dialog width="50%" :before-close="closeDialog" :visible.sync="dialogFormVisible">
- <el-container>
- <el-main id="dxdcListMain" style="padding:5px 20px;">
- <el-tabs v-model="currentViewId" type="card">
- <el-tab-pane
- :label="option.label"
- :name="option.label"
- v-for="option in options"
- :key="option.value">
- <component
- :is="option.value"
- :currentObjectRgstrId="currentObjectRgstrId"
- :ssxMid="ssxMid"
- :currentObjectName="currentObjectName"
- :currentObjectCode="currentObjectCode"
- :currentObjectWintCode="currentObjectWintCode"
- :currentObjectId="currentObjectId"
- :activeLabel="activeLabel"
- :szRuls="szRuls"
- :baseId="baseId"
- @cancelHandler="cancelHandler"
- @addQuShuiKouSuccess="addQuShuiKouSuccess"
- ></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 "./quShuiKouBaseinfo.vue"
- import useWaterInfo from "./useWaterInfo.vue"
- import useWaterInfoTwo from "./useWaterInfoTwo.vue"
- import approvalInfo from "./approvalInfo.vue"
- import problemList from './quShuiKouProblemList.vue'
- import taiZhang from './taiZhang.vue'
- import certificate from './certificateList.vue'
- import signature from './signature.vue'
- import {getrgstrIdObject} from "@api/duChaTianBao.js";
- export default {
- components: {
- jichuxinxi: jichuxinxi,
- useWaterInfo: useWaterInfo,
- useWaterInfoTwo: useWaterInfoTwo,
- approvalInfo: approvalInfo,
- problemList: problemList,
- taiZhang,
- certificate,
- signature
- },
- props: ['rowData', 'currentObjectRgstrId', 'currentObjectCode', 'baseId', 'column1', 'ssxMid', 'currentObjectWintCode', 'currentObjectId', 'currentObjectName'],
- data() {
- return {
- options: '',
- value: "",
- dialogShow: false,
- currentViewId: "基础信息",
- dialogFormVisible: true,
- activeLabel: '',
- tableName: '',
- szRuls: []
- };
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- }
- },
- mounted() {
- switch ('2') {
- case '1':
- this.options = [
- {
- value: "jichuxinxi",
- label: "基础信息"
- },
- {
- value: "useWaterInfoTwo",
- label: '取水口整改提升情况抽查表'
- },
- {
- value: "problemList",
- label: '问题清单'
- },
- {
- value: "signature",
- label: '责任人签字'
- },
- {
- value: "taiZhang",
- label: '核查登记信息'
- },
- {
- value: "certificate",
- label: '取水许可信息'
- },
- {
- value: "approvalInfo",
- label: '问题信息'
- },
- ]
- break;
- case '2':
- this.options = [
- {
- value: "jichuxinxi",
- label: "基础信息"
- },
- {
- value: "useWaterInfo",
- label: '取水口核查登记情况抽查表'
- },
- {
- value: "problemList",
- label: '问题清单'
- },
- {
- value: "signature",
- label: '责任人签字'
- },
- {
- value: "taiZhang",
- label: '核查登记信息'
- },
- {
- value: "certificate",
- label: '取水许可信息'
- },
- {
- value: "approvalInfo",
- label: '问题信息'
- },
- ]
- }
- },
- watch: {
- tableName() {
- this.getPblmType();
- }
- },
- methods: {
- closeHandler() {
- this.dialogShow = false
- this.$emit("addQuShuiKouSuccess");
- },
- appearDialog(type) {
- this.dialogShow = true
- // this.problemSmallType = type
- },
- closePDialog() {
- this.dialogShow = false
- },
- showDialog() {
- this.dialogFormVisible = true;
- },
- cancelHandler() {
- this.$emit('cancelHandler');
- },
- addQuShuiKouSuccess() {
- this.$emit('addQuShuiKouSuccess');
- },
- closeDialog() {
- this.$emit('cancelHandler');
- },
- handleClickTabs(tab, event) {
- this.activedName = tab.label;
- }
- }
- };
- </script>
- <style>
- #shuikutianbaoId .el-dialog {
- margin-top: 10vh;
- }
- </style>
|