农经大屏
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 месец
преди 1 месец
преди 1 месец
преди 1 месец
преди 1 месец
преди 1 месец
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import Pannel from '@/components/pannel/index.vue';
  2. import ScrollTable from '@/components/scroll-table/index.vue';
  3. import { analysisOfExcessiveDebt } from '../../../../api/index.js';
  4. import { mapGetters } from 'vuex';
  5. export default {
  6. components: {
  7. ScrollTable,
  8. Pannel
  9. },
  10. computed: {
  11. ...mapGetters(['year', 'deptId'])
  12. },
  13. watch: {
  14. year: {
  15. handler () {
  16. this.getData();
  17. },
  18. immediate: true, // 立即执行
  19. },
  20. deptId: {
  21. handler () {
  22. this.getData();
  23. },
  24. immediate: true, // 立即执行
  25. }
  26. },
  27. data () {
  28. return {
  29. isLoad: false,
  30. headers: ['经济组织名称', '债务金额', '债务率'],
  31. data: [['经济组织名称', '债务金额', '21%']]
  32. };
  33. },
  34. created () {
  35. },
  36. mounted () {
  37. },
  38. methods: {
  39. getData () {
  40. if (this.year, this.deptId) {
  41. this.isLoad = false;
  42. analysisOfExcessiveDebt(this.deptId, this.year, this.type).then(res => {
  43. let data = res.rows.map(item => {
  44. return [item.name, item.zwje, item.zwl]
  45. })
  46. this.data = data;
  47. this.isLoad = true;
  48. })
  49. }
  50. },
  51. }
  52. };