| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- <template>
- <div id="specialtianbaoId">
- <el-dialog
- :title="currentObjectName+'督查填报'"
- :before-close="closeDialog"
- :visible.sync="dialogFormVisible"
- style="margin-top=8vh;"
- width='70%'
- height='90%'
- >
- <el-container>
- <el-main
- id="
- dxdcListMain"
- style="padding:1px 5px;"
- >
- <problem-dialog
- v-if="dialogShow"
- :objType="0"
- :villType="0"
- :objId="currentObjectId"
- :objName="currentObjectName"
- :problemMiddleType="'小水库'"
- :problemSmallType="problemSmallType"
- @closeDialog="closePDialog"
- :currentObjectRgstrId="currentObjectRgstrId"
- ></problem-dialog>
- <el-tabs
- v-model="currentViewId"
- type="card"
- @tab-click="handleClickTabs"
- >
- <el-tab-pane
- :label="option.label"
- :name="option.label"
- v-for="option in options"
- :key="option.value"
- >
- <component
- :is="option.value"
- :currentObjectRgstrId="currentObjectRgstrId"
- :currentAdcode="currentAdcode"
- :currentObjectName="currentObjectName"
- :currentResCode="currentResCode"
- :currentObjectId="currentObjectId"
- :gdX="gdX"
- :gdY="gdY"
- :szRuls="szRuls"
- :swhsId="swhsId"
- :adName="adName"
- :location="location"
- :showOrEdit="showOrEdit"
- :activedName="activedName"
- :baseForm="baseForm"
- @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 ndzxdc_BaseInfo from "../2020zxdcszyjs/ndzxdc_BaseInfo.vue";
- import NdZxDc from "../2020zxdcszyjs/NdZxDc_Wtqd.vue";
- import twozxdc_shuiziyuanguanlizhongdianrenwu from '../2020zxdcszyjs/twozxdc_shuiziyuanguanlizhongdianrenwu'
- import twozxdc_jieyueyongshuiguanlizhongdianrenwu from '../2020zxdcszyjs/twozxdc_jieyueyongshuiguanlizhongdianrenwu'
- export default {
- components: {
- ndzxdc_BaseInfo: ndzxdc_BaseInfo,
- NdZxDc: NdZxDc,
- twozxdc_shuiziyuanguanlizhongdianrenwu:twozxdc_shuiziyuanguanlizhongdianrenwu,
- twozxdc_jieyueyongshuiguanlizhongdianrenwu:twozxdc_jieyueyongshuiguanlizhongdianrenwu
- },
- props: [
- "rowData",
- "currentObjectRgstrId",
- "currentAdcode",
- "currentResCode",
- "currentObjectId",
- "showOrEdit",
- "currentObjectName",
- "gdX", "gdY", "baseForm", "swhsId", "adName", "location"
- ],
- data () {
- return {
- options: [
- {
- value: "ndzxdc_BaseInfo",
- label: "基础信息纠错"
- },
- {
- value: "twozxdc_shuiziyuanguanlizhongdianrenwu",
- label: "2020年度水资源管理工作年中检查表"
- },
- {
- value: "twozxdc_jieyueyongshuiguanlizhongdianrenwu",
- label: "2020年度节约用水管理情况检查表"
- },
- {
- value: "NdZxDc",
- label: "问题清单"
- }
- ],
- value: "",
- dialogShow: false,
- currentViewId: "基础信息纠错",
- dialogFormVisible: true,
- szRuls: [],
- activedName: "",
- tableName: ''
- };
- },
- created () {
- },
- 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;
- // this.problemSmallType = type
- },
- 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;
- if (this.activedName === '2020年度节约用水管理情况检查表') {
- //this.tableName = 'BIS_INSP_WSWM_RGSTR_SPE';BIS_INSP_WSWM_RGSTR_SPE_TY
- this.tableName = 'BIS_INSP_WSWM_RGSTR_SPE_TY';
- }
- if (this.activedName === '2020年度水资源管理工作年中检查表') {
- //this.tableName = 'BIS_INSP_SPE_RGSTR_WRS_INFO';
- this.tableName = 'WATER_RESOURCE_MANAGE';
- }
- },
- getPblmType () {
- const obj = {
- tname: this.tableName
- }
- request.post("/bis/insp/item/ques/info/findItemByType", obj).then(res => {
- console.log("RES:" + res);
- this.szRuls = res.data;
- })
- }
- }
- };
- </script>
- <style>
- #specialtianbaoId .el-dialog {
- margin-top: 2vh;
- }
- </style>
|