index.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <el-container class="flex-column">
  3. <div class="table-search">
  4. <search @success="handleSuccess"></search>
  5. </div>
  6. <el-main class="nopadding">
  7. <div class="table-container">
  8. <tablePage ref="tablePage" @success="tableHandle" @successFull="tableHandleFull" @total="handleTotal"></tablePage>
  9. </div>
  10. </el-main>
  11. </el-container>
  12. </template>
  13. <script>
  14. import search from './components/search';
  15. import tablePage from './components/table';
  16. export default {
  17. components: {
  18. search,tablePage
  19. },
  20. data(){
  21. return {
  22. totalLoading:false,
  23. searchKey:{},
  24. dataSelect:[],
  25. dataSelectFull:[],
  26. totalData:null,
  27. searchData:null
  28. }
  29. },
  30. methods: {
  31. tips(){
  32. this.$alert("请联系管理员获取相关流程后进行操作","保证金相关提醒",{
  33. "show-close":false
  34. })
  35. },
  36. handleTotal(data){
  37. this.totalLoading = false;
  38. this.totalData = data;
  39. },
  40. tableHandle(data){
  41. this.dataSelect = data;
  42. },
  43. tableHandleFull(data){
  44. this.dataSelectFull = data;
  45. },
  46. handleSuccess(data){
  47. this.$refs.tablePage.upData(data)
  48. },
  49. handleClick(name){
  50. this.activeName = name;
  51. this.searchKey.type = name;
  52. this.$refs.tablePage.upData(this.searchKey)
  53. }
  54. }
  55. }
  56. </script>
  57. <style>
  58. .news-title{font-size: 16px;color: #000;font-weight: bold;margin-bottom: 10px;display: flex;align-items: center;}
  59. .news-title::before{content: "";width: 4px;height: 16px;display: block;background-color: var(--el-color-primary);;margin-right: 8px;}
  60. .news-title span{margin-left: 10px;font-weight: normal;color: #666;font-size: 12px;}
  61. .card-item-deposit{border: 1px solid #ebedf0;padding: 20px 20px 20px;border-radius: 12px;align-self:flex-start;display: flex;flex-direction: column;max-width: 330px;box-sizing: border-box;}
  62. .card-item-deposit .deposit-title{color: #6c737a;font-size: 14px;line-height: 22px;}
  63. .card-item-deposit .card-num{align-items: flex-end;display: flex;flex-direction: row;margin-top: 12px;color: #1d2129;font-size: 32px;font-weight: 700;line-height: 40px;}
  64. .card-item-deposit .card-num span{font-weight: normal;font-size: 12px;line-height: 32px;margin-left: 10px;}
  65. .card-item-deposit .card-btn{display: flex;align-items: center;margin-top: 10px;}
  66. .mb10{margin-bottom: 10px;}
  67. </style>