2e5239a4d9d006bf7de47decf41b0544b126173e.svn-base 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <el-dialog class="customs_dialog" :visible.sync="dialogVisible" :before-close="handleClose" title="水库基础信息批量导入">
  3. <template slot="title">
  4. 水库基础信息批量导入
  5. <span style="margin-left:2px;">(<b style="color:red;">注意:Excel文件导入操作会覆盖本页所有数据,请谨慎操作。</b>)</span>
  6. </template>
  7. <shui-ku-cha-xun :show="show"
  8. :rsNameStr="rsNameStr"
  9. :rsTypeStr="rsTypeStr"
  10. :pageStr="pageStr"
  11. :admDiv="admDiv"
  12. :heightStr="heightStr" :widthStr="widthStr" :dxdcMainHeightStr="dxdcMainHeightStr">
  13. </shui-ku-cha-xun>
  14. <span slot="footer" class="dialog-footer">
  15. </span>
  16. </el-dialog>
  17. </template>
  18. <script>
  19. import request from '../../../utils/gw_ajax_request.js'
  20. import shuiKuChaXun from '../../duChaDuiXiang/chaXun/shuiKuChaXun_sht.vue'
  21. export default {
  22. props: ['rsNameStr','rsTypeStr','pageStr','admDiv'],
  23. components: {
  24. shuiKuChaXun:shuiKuChaXun,
  25. },
  26. data(){
  27. return{
  28. dialogVisible:true,
  29. fileList:[],
  30. uuid:1,
  31. actionUrl:'',
  32. socket:null,
  33. showShuiKuTianBaoPlVer:false,
  34. filePath:'',
  35. tableData:[],
  36. showButton:false,
  37. show:true,
  38. nmStr: 'non',
  39. dxdcMainHeightStr: window.innerHeight - 320,
  40. heightStr: window.innerHeight,
  41. widthStr: window.innerWidth,
  42. }
  43. },
  44. mounted:function(){
  45. },
  46. computed: {
  47. persId() {
  48. return localStorage.getItem("userid")
  49. ? localStorage.getItem("userid")
  50. : "1098101939614724096";
  51. }
  52. },
  53. methods:{
  54. handleClose(done) {
  55. this.$emit("closePlDialog");
  56. },
  57. },
  58. watch:{
  59. },
  60. }
  61. </script>
  62. <style>
  63. .title{
  64. font-size: 16px;
  65. }
  66. .el-icon-edit{
  67. margin-right: 10px;
  68. }
  69. .customs_dialog .el-dialog{
  70. width: 80% !important;
  71. }
  72. .customs_dialog .el-dialog__body {
  73. padding: 30px 20px;
  74. color: #606266;
  75. font-size: 14px;
  76. height: 60vh;
  77. overflow: auto;
  78. }
  79. .upload_div {
  80. text-align: center;
  81. }
  82. .upload_div_left {
  83. border:1px solid red;
  84. width:50%;
  85. height:100px;
  86. float:left;
  87. }
  88. .upload_div_right {
  89. border:1px solid red;
  90. width:50%;
  91. height:100%;
  92. float:right;
  93. }
  94. </style>