9f0fee0fe2e597be703103c62bdd4a41c3a8779a.svn-base 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <div id="dxstianbaoId">
  3. <el-dialog :title="currentObjectName+'督查填报'" @close='closeDialog' :visible.sync="dialogFormVisible">
  4. <el-container>
  5. <!-- <el-container> -->
  6. <el-main id="dxdcListMain" style="padding:5px 20px;">
  7. <!-- <el-button type="primary" style="margin-bottom: 10px;position: relative;margin-left: 90%;" @click="appearDialog()">添加问题</el-button> -->
  8. <problem-dialog v-if="dialogShow" :objType="4" :villType="5" :objId="currentObjectId" :objName="currentObjectName" :problemMiddleType="'用水户情况'" :problemSmallType="problemSmallType" @closeDialog="closePDialog" :currentObjectRgstrId="currentObjectRgstrId"></problem-dialog>
  9. <el-tabs v-model="currentViewId" type="card">
  10. <el-tab-pane
  11. :label="option.label"
  12. :name="option.label"
  13. v-for="option in options"
  14. :key="option.value"
  15. >
  16. <component
  17. :is="option.value"
  18. :currentObjectRgstrId="currentObjectRgstrId"
  19. :currentGrwName="currentGrwName"
  20. :currentObjectName="currentObjectName"
  21. :currentGrwCode="currentGrwCode"
  22. :currentObjectId="currentObjectId"
  23. :currentSttp="currentSttp"
  24. :stationType="stationType"
  25. @cancelHandler="cancelHandler"
  26. @addShuiKuSuccess="addShuiKuSuccess"
  27. ></component>
  28. </el-tab-pane>
  29. </el-tabs>
  30. </el-main>
  31. <!-- </el-container> -->
  32. </el-container>
  33. <!-- <span slot="footer" class="dialog-footer" style="justify-content: flex-end;display: flex;margin-right: 20px;">
  34. <el-button @click="closeHandler">关 闭</el-button>
  35. <el-button type="primary" @click="submitHandler">提 交</el-button>
  36. </span> -->
  37. <!-- 添加/编辑人员弹窗 -->
  38. </el-dialog>
  39. </div>
  40. </template>
  41. <script>
  42. import request from "../../utils/gw_ajax_request.js";
  43. import jichuxinxi from "../duChaTianBao/dxs/dxs_jichuxinxi.vue"
  44. import czwhgl from "../duChaTianBao/dxs/dxs_czwhgl.vue"
  45. import jcsjzl from "../duChaTianBao/dxs/dxs_jcsjzl.vue"
  46. import jcrypj from "../duChaTianBao/dxs/dxs_jcrypj.vue"
  47. import problemDialog from '../duChaWenTi/problemDialog.vue'
  48. export default {
  49. components: {
  50. jichuxinxi:jichuxinxi,
  51. czwhgl:czwhgl,
  52. jcsjzl:jcsjzl,
  53. jcrypj:jcrypj,
  54. problemDialog:problemDialog
  55. },
  56. props: ['currentObjectRgstrId','currentGrwCode','currentObjectId','currentObjectName','stationType','currentSttp','staType','frequency',"currentGrwName"],
  57. data() {
  58. return {
  59. options: [
  60. {
  61. value: "jichuxinxi",
  62. label: "基础信息"
  63. },{
  64. value: "czwhgl",
  65. label: "测站维护管理"
  66. },{
  67. value: "jcsjzl",
  68. label: "监测数据质量和到报率"
  69. },{
  70. value: "jcrypj",
  71. label: "检查人员评价"
  72. },
  73. ],
  74. value: "",
  75. dialogShow:false,
  76. currentViewId: "基础信息",
  77. dialogFormVisible:true,
  78. };
  79. },
  80. computed: {
  81. persId() {
  82. return localStorage.getItem("userid")
  83. ? localStorage.getItem("userid")
  84. : "1098101939614724096";
  85. },
  86. recPersName(){
  87. return localStorage.getItem("account")? localStorage.getItem("account"): ''
  88. }
  89. },
  90. mounted() {},
  91. watch: {},
  92. methods: {
  93. appearDialog(type){
  94. this.dialogShow = true
  95. // this.problemSmallType = type
  96. },
  97. closePDialog(){
  98. this.dialogShow = false
  99. },
  100. showDialog(){
  101. this.dialogFormVisible = true;
  102. },
  103. cancelHandler(){
  104. this.$emit('cancelHandler');
  105. },
  106. addShuiKuSuccess(){
  107. this.$emit('addShuiKuSuccess');
  108. },
  109. closeDialog(){
  110. this.$emit('cancelHandler');
  111. },
  112. closeHandler(){
  113. this.dialogShow = false
  114. this.$emit("addShuiKuSuccess");
  115. },
  116. }
  117. };
  118. </script>
  119. <style>
  120. #dxstianbaoId .el-dialog{
  121. margin-top: 10vh;
  122. }
  123. </style>