9d6533f4283ea1f67d759f5cff5e69bb369242ed.svn-base 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <div id="zxhlzlId">
  3. <el-dialog
  4. :title="currentObjectName+'督查填报'"
  5. :before-close="closeDialog"
  6. :visible.sync="dialogFormVisible"
  7. width='60%'
  8. >
  9. <el-container>
  10. <el-main id="dxdcListMain" style="padding:5px 20px;">
  11. <el-tabs v-model="currentViewId" type="card" @tab-click="handleClickTabs">
  12. <el-tab-pane
  13. :label="option.label"
  14. :name="option.label"
  15. v-for="option in options"
  16. :key="option.value"
  17. >
  18. <component
  19. v-if="option.label == currentViewId"
  20. :is="option.value"
  21. :pType="35"
  22. :currentObjectRgstrId="currentObjectRgstrId"
  23. :currentAdcode="currentAdcode"
  24. :currentObjectName="currentObjectName"
  25. :currentResCode="currentResCode"
  26. :currentObjectId="currentObjectId"
  27. :gdX="gdX"
  28. :gdY="gdY"
  29. :szRuls="szRuls"
  30. :utType="utType"
  31. :baseId="baseId"
  32. :showOrEdit="showOrEdit"
  33. :activeLabel="activedName"
  34. :baseForm="baseForm"
  35. @cancelHandler="cancelHandler"
  36. @addShuiKuSuccess="addShuiKuSuccess"
  37. ></component>
  38. </el-tab-pane>
  39. </el-tabs>
  40. </el-main>
  41. </el-container>
  42. </el-dialog>
  43. </div>
  44. </template>
  45. <script>
  46. import request from "@util/gw_ajax_request.js";
  47. import baseInfo from "./baseInfo.vue";
  48. import zxhlzlSituation from './zxhlzlSituation.vue'
  49. import problemList from "./problemList.vue";
  50. import problemDialog from "../../duChaWenTi/problemDialog.vue";
  51. export default {
  52. components: {
  53. baseInfo,
  54. problemDialog,
  55. problemList,
  56. zxhlzlSituation,
  57. },
  58. props: [
  59. "rowData",
  60. "currentObjectRgstrId",
  61. "currentAdcode",
  62. "currentResCode",
  63. "currentObjectId",
  64. "showOrEdit",
  65. "currentObjectName",
  66. "gdX", "gdY", "baseForm", "utType", "baseId"
  67. ],
  68. data() {
  69. return {
  70. options: [
  71. {
  72. value: "baseInfo",
  73. label: "基础信息纠错"
  74. },
  75. {
  76. value: "zxhlzlSituation",
  77. label: "中小河流治理项目抽查情况"
  78. },
  79. {
  80. value: "problemList",
  81. label: "问题清单"
  82. }
  83. ],
  84. value: "",
  85. dialogShow: false,
  86. currentViewId: "基础信息纠错",
  87. dialogFormVisible: true,
  88. szRuls: [],
  89. activedName: "",
  90. tableName: ''
  91. };
  92. },
  93. created() {
  94. },
  95. computed: {
  96. persId() {
  97. return localStorage.getItem("userid")
  98. ? localStorage.getItem("userid")
  99. : "1098101939614724096";
  100. }
  101. },
  102. mounted() {
  103. // this.getPblmType();
  104. },
  105. watch: {
  106. // tableName(){
  107. // this.getPblmType();
  108. // }
  109. },
  110. methods: {
  111. showDialog() {
  112. this.dialogFormVisible = true;
  113. },
  114. cancelHandler() {
  115. this.$emit("cancelHandler");
  116. },
  117. addShuiKuSuccess() {
  118. this.$emit("addShuiKuSuccess");
  119. },
  120. closeDialog() {
  121. let _self = this;
  122. this.$confirm("确认退出吗?", "提示", {
  123. confirmButtonText: "确定",
  124. cancelButtonText: "取消",
  125. type: "warning"
  126. })
  127. .then(() => {
  128. _self.$emit("cancelHandler");
  129. })
  130. .catch(() => {
  131. });
  132. },
  133. handleClickTabs(tab, event) {
  134. console.log(tab.label);
  135. this.activedName = tab.label;
  136. },
  137. getPblmType() {
  138. const obj = {
  139. tname: this.tableName
  140. }
  141. request.post("/bis/insp/item/ques/info/findItemByType", obj).then(res => {
  142. console.log(res);
  143. this.szRuls = res.data;
  144. })
  145. }
  146. }
  147. };
  148. </script>
  149. <style>
  150. #zxhlzlId .el-dialog {
  151. margin-top: 10vh;
  152. }
  153. </style>