index.html 880 B

123456789101112131415161718192021222324252627282930313233343536
  1. {extend name="public/base_el"/}
  2. {block name="css"}
  3. <style>
  4. .title {margin-top:100px;}
  5. .title p{margin:10px auto;padding:0 20px;text-align: center;font-size:24px;font-weight: 700;}
  6. </style>
  7. {/block}
  8. {block name="body"}
  9. <div style="margin:0 auto; width:1200px;">
  10. <div style="margin: 100px 20px;text-align: center;">
  11. <el-upload
  12. v-model:file-list="fileList"
  13. class="upload-demo"
  14. action="{:url('upload')}"
  15. multiple
  16. >
  17. <el-button type="primary">点击上传文件</el-button>
  18. </el-upload>
  19. </div>
  20. </div>
  21. {/block}
  22. {block name="script"}
  23. <script>
  24. function v_setup() {
  25. let base = {};
  26. base.toStart = () => {
  27. location.href = "{:url('officer/answer')}"
  28. }
  29. base.fileList = Vue.ref([]);
  30. return base;
  31. }
  32. </script>
  33. {/block}