test.vue 883 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view>
  3. </view>
  4. </template>
  5. <script>
  6. import {
  7. mapfields,
  8. stringifyQuery,
  9. stringifyField,
  10. stringifyGroupField,
  11. getTimeOfSomeDayAgo,
  12. division,
  13. format,
  14. formatDate,
  15. parseDateTime,
  16. getFieldTotal,
  17. debounce
  18. } from '@/js_sdk/uni-stat/util.js'
  19. import {
  20. fieldsMap,
  21. } from '../fieldsMap.js'
  22. export default {
  23. props: {
  24. query: {
  25. type: [Object],
  26. default: function(){
  27. return {}
  28. }
  29. },
  30. },
  31. data() {
  32. return {
  33. tableName: 'uni-stat-pay-result',
  34. }
  35. },
  36. created() {
  37. debounce(()=>{
  38. this.getChartData(this.query)
  39. })();
  40. },
  41. methods: {
  42. getChartData(query) {
  43. },
  44. },
  45. watch: {
  46. query: {
  47. deep: true,
  48. handler(val) {
  49. this.options.pageCurrent = 1 // 重置分页
  50. debounce(()=>{
  51. this.getChartData(this.query)
  52. })();
  53. }
  54. }
  55. },
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. </style>