dataImport.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <div>
  3. <el-dialog
  4. v-dialog-drag
  5. class="dialog"
  6. title="批量导入数据"
  7. :visible.sync="dialogVisible"
  8. width="500px"
  9. center
  10. >
  11. <el-divider></el-divider>
  12. <el-timeline>
  13. <el-timeline-item
  14. >下载 Excel 模板
  15. <el-button
  16. style="
  17. width: 200px;
  18. height: 30px;
  19. text-align: center;
  20. margin: 0px;
  21. margin-top: 10px;
  22. padding: 5px;
  23. color: #2ea8e6;
  24. "
  25. type="text"
  26. >点击下载《A设备导入模板》</el-button
  27. >
  28. </el-timeline-item>
  29. <el-timeline-item>编辑 Excel 模板</el-timeline-item>
  30. <el-timeline-item>上传已编辑好的 Excel 模板</el-timeline-item>
  31. </el-timeline>
  32. <div slot="footer" class="dialog-footer">
  33. <el-input v-model="input" placeholder="文件名称"></el-input>
  34. <el-upload :action="action">
  35. <el-button type="primary" style="background: #2ea8e6;">选择文件</el-button>
  36. </el-upload>
  37. </div>
  38. </el-dialog>
  39. </div>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. dialogVisible: false,
  46. input: "",
  47. action: "",
  48. steps: [
  49. {
  50. content: "下载 Excel 模板",
  51. },
  52. {
  53. content: "编辑 Excel 模板",
  54. },
  55. {
  56. content: "上传已编辑好的 Excel 模板",
  57. },
  58. ],
  59. };
  60. },
  61. methods: {},
  62. };
  63. </script>
  64. <style lang="less" scoped>
  65. /deep/.el-dialog {
  66. height: 500px !important;
  67. }
  68. /deep/.el-dialog {
  69. height: 30vh;
  70. }
  71. /deep/.el-dialog__title {
  72. margin-right: 330px;
  73. }
  74. /deep/.el-dialog__headerbtn {
  75. font-size: 25px;
  76. }
  77. /deep/.el-dialog__body {
  78. padding: 0;
  79. }
  80. /deep/.el-dialog__footer {
  81. margin-top: -40px;
  82. }
  83. .el-timeline {
  84. margin: 40px 0 0 80px;
  85. list-style: none;
  86. font-size: 18px;
  87. .el-timeline-item {
  88. position: relative;
  89. padding-bottom: 80px;
  90. }
  91. /deep/.el-timeline-item__content {
  92. display: grid;
  93. }
  94. }
  95. /deep/.el-divider--horizontal {
  96. display: block;
  97. height: 1px;
  98. width: 95%;
  99. margin: 0;
  100. margin-left: 2.5%;
  101. }
  102. .dialog-footer {
  103. display: flex;
  104. margin-left: 10px;
  105. /deep/.el-input {
  106. height: 40px;
  107. width: 300px;
  108. margin-right: 10px;
  109. }
  110. /deep/.el-button {
  111. margin: 0;
  112. height: 40px;
  113. width: 100px;
  114. }
  115. }
  116. .el-button {
  117. width: 100px;
  118. height: 30px;
  119. text-align: center;
  120. margin: 30px;
  121. padding: 5px;
  122. }
  123. </style>