493f05e3c4246fb72360c4f839dc7bdb8c2376d2.svn-base 4.8 KB

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