2da924e0ec351008b1c71e607a7f86d6ae226220.svn-base 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <template>
  2. <div id="xsdDjTbId">
  3. <el-dialog
  4. :title="currentObjectName"
  5. :before-close="closeDialog"
  6. :visible.sync="dialogFormVisible"
  7. width="50%"
  8. :modal-append-to-body="true"
  9. :append-to-body="true"
  10. >
  11. <el-container>
  12. <el-main id="dxdcListMain" style="padding:5px 20px;">
  13. <el-tabs v-model="currentViewId" type="card" @tab-click="handleClickTabs">
  14. <el-tab-pane
  15. :label="option.label"
  16. :name="option.label"
  17. v-for="(option,index) in options"
  18. :key="index"
  19. >
  20. <component
  21. v-if="currentViewId == option.label"
  22. :is="option.value"
  23. :pType="73"
  24. :currentObjectName="currentObjectName"
  25. :rowData="rowData"
  26. :currentObjectId="currentObjectId"
  27. :szRuls="szRuls"
  28. :activeLabel="activedName"
  29. @cancelHandler="cancelHandler"
  30. @addShuiKuSuccess="addShuiKuSuccess"
  31. :ifDisabled="ifDisabled"
  32. ></component>
  33. </el-tab-pane>
  34. </el-tabs>
  35. </el-main>
  36. </el-container>
  37. </el-dialog>
  38. </div>
  39. </template>
  40. <script>
  41. import baseInfoTcl from "./baseInfoTcl.vue";
  42. import baseInfoZg from "./baseInfoZg.vue";
  43. import baseInfoQt from "./baseInfoQt.vue";
  44. import baseInfoXqtc from "./baseInfoXqtc.vue";
  45. import tcgzqk from './tcgzqk.vue'
  46. import xqtcgzqk from './xqtcgzqk.vue'
  47. import xsdqlzg from './xsdqlzg.vue'
  48. import zgXsdaqgl from './zgXsdaqgl.vue'
  49. import signature from '../../../duChaRenYuan/signature.vue'
  50. import xsdstll from './xsdstll'
  51. export default {
  52. components: {
  53. baseInfoTcl,
  54. baseInfoZg,
  55. baseInfoQt,
  56. baseInfoXqtc,
  57. tcgzqk,
  58. xqtcgzqk,
  59. xsdqlzg,
  60. zgXsdaqgl,
  61. signature,
  62. xsdstll
  63. },
  64. props: [
  65. "rowData",
  66. 'currentObjectId',
  67. "currentObjectName",
  68. 'ifDisabled'
  69. ],
  70. data() {
  71. return {
  72. options: [],
  73. optionsTuichu: [
  74. {
  75. value: "baseInfoTcl",
  76. label: "基础信息纠错"
  77. },
  78. {
  79. value: "tcgzqk",
  80. label: "退出工作情况"
  81. }
  82. ],
  83. optionsZhenggai: [
  84. {
  85. value: "baseInfoZg",
  86. label: "基础信息纠错"
  87. },
  88. {
  89. value: "xsdqlzg",
  90. label: "小水电清理整改情况"
  91. },
  92. {
  93. value: "zgXsdaqgl",
  94. label: "小水电安全管理情况"
  95. }
  96. ],
  97. optionsXianQiTuichu: [
  98. {
  99. value: "baseInfoXqtc",
  100. label: "基础信息纠错"
  101. },
  102. {
  103. value: "xqtcgzqk",
  104. label: "退出工作情况"
  105. }
  106. ],
  107. optionsBaoliu: [
  108. {
  109. value: "baseInfoZg",
  110. label: "基础信息纠错"
  111. },
  112. {
  113. value: "xsdstll",
  114. label: "小水电生态流量情况"
  115. },
  116. {
  117. value: "zgXsdaqgl",
  118. label: "小水电安全管理情况"
  119. }
  120. ],
  121. optionsQita: [
  122. {
  123. value: "baseInfoQt",
  124. label: "基础信息纠错"
  125. },
  126. {
  127. value: "zgXsdaqgl",
  128. label: "小水电安全管理情况"
  129. }
  130. ],
  131. value: "",
  132. dialogShow: false,
  133. currentViewId: "基础信息纠错",
  134. dialogFormVisible: true,
  135. szRuls: [],
  136. activedName: ""
  137. };
  138. },
  139. created() {
  140. this.$nextTick(() => {
  141. if (this.rowData.exmnType == '1') {
  142. this.options = this.optionsZhenggai
  143. } else if (this.rowData.exmnType == '2') {
  144. this.options = this.optionsTuichu
  145. } else if (this.rowData.exmnType == '3') {
  146. this.options = this.optionsQita
  147. } else if (this.rowData.exmnType == '4') {
  148. this.options = this.optionsBaoliu
  149. } else if (this.rowData.exmnType == '5') {
  150. this.options = this.optionsXianQiTuichu
  151. }
  152. })
  153. },
  154. computed: {
  155. persId() {
  156. return localStorage.getItem("userid")
  157. ? localStorage.getItem("userid")
  158. : "1098101939614724096";
  159. }
  160. },
  161. mounted() {
  162. // this.getPblmType();
  163. },
  164. watch: {
  165. // tableName() {
  166. // this.getPblmType();
  167. // }
  168. },
  169. methods: {
  170. closeHandler() {
  171. this.dialogShow = false;
  172. this.$emit("addShuiKuSuccess");
  173. },
  174. appearDialog(type) {
  175. this.dialogShow = true;
  176. },
  177. closePDialog() {
  178. this.dialogShow = false;
  179. },
  180. showDialog() {
  181. this.dialogFormVisible = true;
  182. },
  183. cancelHandler() {
  184. this.$emit("cancelHandler");
  185. },
  186. addShuiKuSuccess() {
  187. this.$emit("addShuiKuSuccess");
  188. },
  189. closeDialog() {
  190. let _self = this;
  191. this.$confirm("确认退出吗?", "提示", {
  192. confirmButtonText: "确定",
  193. cancelButtonText: "取消",
  194. type: "warning"
  195. })
  196. .then(() => {
  197. _self.$emit("cancelHandler");
  198. })
  199. .catch(() => {
  200. });
  201. },
  202. handleClickTabs(tab, event) {
  203. console.log(tab.label);
  204. this.activedName = tab.label;
  205. },
  206. }
  207. };
  208. </script>
  209. <style>
  210. #xsdDjTbId .el-dialog {
  211. margin-top: 10vh;
  212. }
  213. </style>