3cf7ff4ca61c8a1a0e68fd2b3f32d981808f7cdf.svn-base 4.8 KB

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