d6903fd8ec16fedd1c5648f7396e3bcce8d92033.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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-zha-cha-xun :show="show"
  8. :gateNameStr="gateNameStr"
  9. :gateTypeStr="gateTypeStr"
  10. :pageStr="pageStr"
  11. :adCode="adCode"
  12. :heightStr="heightStr" :widthStr="widthStr" :dxdcMainHeightStr="dxdcMainHeightStr">
  13. </shui-zha-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 shuiZhaChaXun from './shuiZhaChaXun_sht.vue'
  21. export default {
  22. props: ['gateNameStr','gateTypeStr','pageStr','adCode'],
  23. components: {
  24. shuiZhaChaXun:shuiZhaChaXun,
  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. dxdcMainHeightStr: window.innerHeight - 320,
  39. heightStr: window.innerHeight,
  40. widthStr: window.innerWidth,
  41. }
  42. },
  43. mounted:function(){
  44. },
  45. computed: {
  46. persId() {
  47. return localStorage.getItem("userid")
  48. ? localStorage.getItem("userid")
  49. : "1098101939614724096";
  50. }
  51. },
  52. methods:{
  53. handleClose(done) {
  54. this.$emit("closePlDialog");
  55. },
  56. },
  57. watch:{
  58. },
  59. }
  60. </script>
  61. <style>
  62. .title{
  63. font-size: 16px;
  64. }
  65. .el-icon-edit{
  66. margin-right: 10px;
  67. }
  68. .customs_dialog .el-dialog{
  69. width: 80% !important;
  70. }
  71. .customs_dialog .el-dialog__body {
  72. padding: 30px 20px;
  73. color: #606266;
  74. font-size: 14px;
  75. height: 60vh;
  76. overflow: auto;
  77. }
  78. .upload_div {
  79. text-align: center;
  80. }
  81. .upload_div_left {
  82. border:1px solid red;
  83. width:50%;
  84. height:100px;
  85. float:left;
  86. }
  87. .upload_div_right {
  88. border:1px solid red;
  89. width:50%;
  90. height:100%;
  91. float:right;
  92. }
  93. </style>