index.vue 2.7 KB

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