| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- <template>
- <div id="xsdDjTbId">
- <el-dialog
- :title="currentObjectName"
- :before-close="closeDialog"
- :visible.sync="dialogFormVisible"
- width="50%"
- :modal-append-to-body="true"
- :append-to-body="true"
- >
- <el-container>
- <el-main id="dxdcListMain" style="padding:5px 20px;">
- <el-tabs v-model="currentViewId" type="card" @tab-click="handleClickTabs">
- <el-tab-pane
- :label="option.label"
- :name="option.label"
- v-for="(option,index) in options"
- :key="index"
- >
- <component
- v-if="currentViewId == option.label"
- :is="option.value"
- :pType="73"
- :currentObjectName="currentObjectName"
- :rowData="rowData"
- :currentObjectId="currentObjectId"
- :szRuls="szRuls"
- :activeLabel="activedName"
- @cancelHandler="cancelHandler"
- @addShuiKuSuccess="addShuiKuSuccess"
- :ifDisabled="ifDisabled"
- ></component>
- </el-tab-pane>
- </el-tabs>
- </el-main>
- </el-container>
- </el-dialog>
- </div>
- </template>
- <script>
- import baseInfoTcl from "./baseInfoTcl.vue";
- import baseInfoZg from "./baseInfoZg.vue";
- import baseInfoQt from "./baseInfoQt.vue";
- import baseInfoXqtc from "./baseInfoXqtc.vue";
- import tcgzqk from './tcgzqk.vue'
- import xqtcgzqk from './xqtcgzqk.vue'
- import xsdqlzg from './xsdqlzg.vue'
- import zgXsdaqgl from './zgXsdaqgl.vue'
- import signature from '../../../duChaRenYuan/signature.vue'
- import xsdstll from './xsdstll'
- export default {
- components: {
- baseInfoTcl,
- baseInfoZg,
- baseInfoQt,
- baseInfoXqtc,
- tcgzqk,
- xqtcgzqk,
- xsdqlzg,
- zgXsdaqgl,
- signature,
- xsdstll
- },
- props: [
- "rowData",
- 'currentObjectId',
- "currentObjectName",
- 'ifDisabled'
- ],
- data() {
- return {
- options: [],
- optionsTuichu: [
- {
- value: "baseInfoTcl",
- label: "基础信息纠错"
- },
- {
- value: "tcgzqk",
- label: "退出工作情况"
- }
- ],
- optionsZhenggai: [
- {
- value: "baseInfoZg",
- label: "基础信息纠错"
- },
- {
- value: "xsdqlzg",
- label: "小水电清理整改情况"
- },
- {
- value: "zgXsdaqgl",
- label: "小水电安全管理情况"
- }
- ],
- optionsXianQiTuichu: [
- {
- value: "baseInfoXqtc",
- label: "基础信息纠错"
- },
- {
- value: "xqtcgzqk",
- label: "退出工作情况"
- }
- ],
- optionsBaoliu: [
- {
- value: "baseInfoZg",
- label: "基础信息纠错"
- },
- {
- value: "xsdstll",
- label: "小水电生态流量情况"
- },
- {
- value: "zgXsdaqgl",
- label: "小水电安全管理情况"
- }
- ],
- optionsQita: [
- {
- value: "baseInfoQt",
- label: "基础信息纠错"
- },
- {
- value: "zgXsdaqgl",
- label: "小水电安全管理情况"
- }
- ],
- value: "",
- dialogShow: false,
- currentViewId: "基础信息纠错",
- dialogFormVisible: true,
- szRuls: [],
- activedName: ""
- };
- },
- created() {
- this.$nextTick(() => {
- if (this.rowData.exmnType == '1') {
- this.options = this.optionsZhenggai
- } else if (this.rowData.exmnType == '2') {
- this.options = this.optionsTuichu
- } else if (this.rowData.exmnType == '3') {
- this.options = this.optionsQita
- } else if (this.rowData.exmnType == '4') {
- this.options = this.optionsBaoliu
- } else if (this.rowData.exmnType == '5') {
- this.options = this.optionsXianQiTuichu
- }
- })
- },
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- }
- },
- mounted() {
- // this.getPblmType();
- },
- watch: {
- // tableName() {
- // this.getPblmType();
- // }
- },
- methods: {
- closeHandler() {
- this.dialogShow = false;
- this.$emit("addShuiKuSuccess");
- },
- appearDialog(type) {
- this.dialogShow = true;
- },
- closePDialog() {
- this.dialogShow = false;
- },
- showDialog() {
- this.dialogFormVisible = true;
- },
- cancelHandler() {
- this.$emit("cancelHandler");
- },
- addShuiKuSuccess() {
- this.$emit("addShuiKuSuccess");
- },
- closeDialog() {
- let _self = this;
- this.$confirm("确认退出吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- })
- .then(() => {
- _self.$emit("cancelHandler");
- })
- .catch(() => {
- });
- },
- handleClickTabs(tab, event) {
- console.log(tab.label);
- this.activedName = tab.label;
- },
- }
- };
- </script>
- <style>
- #xsdDjTbId .el-dialog {
- margin-top: 10vh;
- }
- </style>
|