69bdcacc7e16e3cb97b986ef5225a7611a97bebd.svn-base 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <div id="shuikutianbaoId">
  3. <el-dialog
  4. :title="currentObjectName"
  5. @close="closeDialog"
  6. :visible.sync="dialogFormVisible"
  7. >
  8. <div :style="{'max-height':testHeight+'px',}" ref="dialogHeight">
  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. ></problem-dialog>
  21. <el-tabs v-model="currentViewId" type="card">
  22. <el-tab-pane
  23. :label="option.label"
  24. :name="option.label"
  25. v-for="option in options"
  26. :key="option.value"
  27. >
  28. <component
  29. :is="option.value"
  30. :currentObjectRgstrId="currentObjectRgstrId"
  31. :currentObjectName="currentObjectName"
  32. :currentResCode="currentResCode"
  33. :currentObjectId="currentObjectId"
  34. :djbId = "djbId"
  35. :dialogHeightA="dialogHeightA"
  36. :propsStcd="propsStcd"
  37. @cancelHandler="cancelHandler"
  38. @addShuiKuSuccess="addShuiKuSuccess"
  39. v-if="currentViewId == option.label"
  40. ></component>
  41. </el-tab-pane>
  42. </el-tabs>
  43. </el-main>
  44. <!-- </el-container> -->
  45. </el-container>
  46. </div>
  47. <!-- 添加/编辑人员弹窗 -->
  48. </el-dialog>
  49. </div>
  50. </template>
  51. <script>
  52. import jichuxinxi from '../duChaRenYuan/dxsJcxx'
  53. import weihuguanli from '../duChaRenYuan/cxglwh'
  54. import jianceshuju from '../duChaRenYuan/jcsj'
  55. import jiancharenyuan from '../duChaRenYuan/jcry'
  56. import wentiqingdan from '../duChaRenYuan/wtqd'
  57. export default {
  58. components: {
  59. jichuxinxi:jichuxinxi,
  60. weihuguanli: weihuguanli,
  61. jianceshuju: jianceshuju,
  62. jiancharenyuan: jiancharenyuan,
  63. // wentiqingdan: wentiqingdan
  64. },
  65. props: [
  66. "currentObjectRgstrId",
  67. "currentResCode",
  68. "currentObjectId",
  69. "currentObjectName",
  70. "propsStcd",
  71. "djbId"
  72. ],
  73. data() {
  74. return {
  75. testHeight: window.innerHeight * 0.7,
  76. dialogHeightA: "",
  77. options: [
  78. {
  79. value: "jichuxinxi",
  80. label: "基础信息"
  81. },
  82. {
  83. value: "weihuguanli",
  84. label: "测站维护管理"
  85. },
  86. {
  87. value: "jianceshuju",
  88. label: "监测数据质量和到报率"
  89. },
  90. {
  91. value: "jiancharenyuan",
  92. label: "检查人员评价"
  93. }
  94. ],
  95. value: "",
  96. dialogShow: false,
  97. currentViewId: "基础信息",
  98. dialogFormVisible: true
  99. };
  100. },
  101. computed: {
  102. persId() {
  103. return localStorage.getItem("userid")
  104. ? localStorage.getItem("userid")
  105. : "1098101939614724096";
  106. }
  107. },
  108. mounted() {
  109. this.$nextTick(() => {
  110. this.dialogHeightA = this.$refs.dialogHeight.offsetHeight - 80;
  111. });
  112. },
  113. watch: {},
  114. methods: {
  115. appearDialog(type) {
  116. this.dialogShow = true;
  117. // this.problemSmallType = type
  118. },
  119. closePDialog() {
  120. this.dialogShow = false;
  121. },
  122. showDialog() {
  123. this.dialogFormVisible = true;
  124. },
  125. cancelHandler() {
  126. this.$emit("cancelHandler");
  127. },
  128. addShuiKuSuccess() {
  129. this.$emit("addShuiKuSuccess");
  130. },
  131. closeDialog() {
  132. this.$emit("cancelHandler");
  133. }
  134. }
  135. };
  136. </script>
  137. <style>
  138. #shuikutianbaoId .el-dialog {
  139. margin-top: 10vh;
  140. }
  141. #shuikutianbaoId .el-dialog .el-dialog__body {
  142. padding: 5px 20px;
  143. }
  144. </style>