tableList.js 888 B

12345678910111213141516171819202122232425262728293031323334353637
  1. export default {
  2. data (){
  3. return {
  4. //分页参数,最终合并提交
  5. pages:{
  6. page: 1,
  7. size: 10,
  8. total: 0,
  9. },
  10. // 遮罩层
  11. loading: false,
  12. queryParams:{},
  13. dateRange:[],
  14. }
  15. },
  16. methods:{
  17. /** 搜索按钮操作 */
  18. handleQuery() {
  19. this.queryParams.page = 1;
  20. this.getList();
  21. },
  22. /** 重置按钮操作 */
  23. resetQuery() {
  24. this.dateRange = [];
  25. this.resetForm("queryForm");
  26. this.queryParams.orgId = undefined;
  27. this.$refs.tree.setCurrentKey(null);
  28. this.handleQuery();
  29. },
  30. getKUploadFileList() {
  31. //循环获取this.$refs.upload.fileList中的name和url,放到 this.form.fileList中去
  32. this.form.fileList = this.$refs.upload.fileList.map(file => {
  33. return JSON.stringify({ name: file.name, url: file.url });
  34. });
  35. },
  36. }
  37. }