550f31b26aeee5946996cf7fff6c813b6bd6594b.svn-base 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <div id="shuikutianbaoId">
  3. <el-dialog width="50%" :before-close="closeDialog" :visible.sync="dialogFormVisible">
  4. <el-container>
  5. <el-main id="dxdcListMain" style="padding:5px 20px;">
  6. <el-tabs v-model="currentViewId" type="card">
  7. <el-tab-pane
  8. :label="option.label"
  9. :name="option.label"
  10. v-for="option in options"
  11. :key="option.value">
  12. <component
  13. :is="option.value"
  14. :currentObjectRgstrId="currentObjectRgstrId"
  15. :ssxMid="ssxMid"
  16. :currentObjectName="currentObjectName"
  17. :currentObjectCode="currentObjectCode"
  18. :currentObjectWintCode="currentObjectWintCode"
  19. :currentObjectId="currentObjectId"
  20. :activeLabel="activeLabel"
  21. :szRuls="szRuls"
  22. :baseId="baseId"
  23. @cancelHandler="cancelHandler"
  24. @addQuShuiKouSuccess="addQuShuiKouSuccess"
  25. ></component>
  26. </el-tab-pane>
  27. </el-tabs>
  28. </el-main>
  29. </el-container>
  30. </el-dialog>
  31. </div>
  32. </template>
  33. <script>
  34. import request from "@util/gw_ajax_request.js";
  35. import jichuxinxi from "./quShuiKouBaseinfo.vue"
  36. import useWaterInfo from "./useWaterInfo.vue"
  37. import useWaterInfoTwo from "./useWaterInfoTwo.vue"
  38. import approvalInfo from "./approvalInfo.vue"
  39. import problemList from './quShuiKouProblemList.vue'
  40. import taiZhang from './taiZhang.vue'
  41. import certificate from './certificateList.vue'
  42. import signature from './signature.vue'
  43. import {getrgstrIdObject} from "@api/duChaTianBao.js";
  44. export default {
  45. components: {
  46. jichuxinxi: jichuxinxi,
  47. useWaterInfo: useWaterInfo,
  48. useWaterInfoTwo: useWaterInfoTwo,
  49. approvalInfo: approvalInfo,
  50. problemList: problemList,
  51. taiZhang,
  52. certificate,
  53. signature
  54. },
  55. props: ['rowData', 'currentObjectRgstrId', 'currentObjectCode', 'baseId', 'column1', 'ssxMid', 'currentObjectWintCode', 'currentObjectId', 'currentObjectName'],
  56. data() {
  57. return {
  58. options: '',
  59. value: "",
  60. dialogShow: false,
  61. currentViewId: "基础信息",
  62. dialogFormVisible: true,
  63. activeLabel: '',
  64. tableName: '',
  65. szRuls: []
  66. };
  67. },
  68. computed: {
  69. persId() {
  70. return localStorage.getItem("userid")
  71. ? localStorage.getItem("userid")
  72. : "1098101939614724096";
  73. }
  74. },
  75. mounted() {
  76. switch ('2') {
  77. case '1':
  78. this.options = [
  79. {
  80. value: "jichuxinxi",
  81. label: "基础信息"
  82. },
  83. {
  84. value: "useWaterInfoTwo",
  85. label: '取水口整改提升情况抽查表'
  86. },
  87. {
  88. value: "problemList",
  89. label: '问题清单'
  90. },
  91. {
  92. value: "signature",
  93. label: '责任人签字'
  94. },
  95. {
  96. value: "taiZhang",
  97. label: '核查登记信息'
  98. },
  99. {
  100. value: "certificate",
  101. label: '取水许可信息'
  102. },
  103. {
  104. value: "approvalInfo",
  105. label: '问题信息'
  106. },
  107. ]
  108. break;
  109. case '2':
  110. this.options = [
  111. {
  112. value: "jichuxinxi",
  113. label: "基础信息"
  114. },
  115. {
  116. value: "useWaterInfo",
  117. label: '取水口核查登记情况抽查表'
  118. },
  119. {
  120. value: "problemList",
  121. label: '问题清单'
  122. },
  123. {
  124. value: "signature",
  125. label: '责任人签字'
  126. },
  127. {
  128. value: "taiZhang",
  129. label: '核查登记信息'
  130. },
  131. {
  132. value: "certificate",
  133. label: '取水许可信息'
  134. },
  135. {
  136. value: "approvalInfo",
  137. label: '问题信息'
  138. },
  139. ]
  140. }
  141. },
  142. watch: {
  143. tableName() {
  144. this.getPblmType();
  145. }
  146. },
  147. methods: {
  148. closeHandler() {
  149. this.dialogShow = false
  150. this.$emit("addQuShuiKouSuccess");
  151. },
  152. appearDialog(type) {
  153. this.dialogShow = true
  154. // this.problemSmallType = type
  155. },
  156. closePDialog() {
  157. this.dialogShow = false
  158. },
  159. showDialog() {
  160. this.dialogFormVisible = true;
  161. },
  162. cancelHandler() {
  163. this.$emit('cancelHandler');
  164. },
  165. addQuShuiKouSuccess() {
  166. this.$emit('addQuShuiKouSuccess');
  167. },
  168. closeDialog() {
  169. this.$emit('cancelHandler');
  170. },
  171. handleClickTabs(tab, event) {
  172. this.activedName = tab.label;
  173. }
  174. }
  175. };
  176. </script>
  177. <style>
  178. #shuikutianbaoId .el-dialog {
  179. margin-top: 10vh;
  180. }
  181. </style>