@nixweb/nixloc-ui 0.0.304 → 0.0.306

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nixweb/nixloc-ui",
3
- "version": "0.0.304",
3
+ "version": "0.0.306",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -64,7 +64,7 @@ export default {
64
64
  </script>
65
65
  <style scoped>
66
66
  table tbody tr td {
67
- max-width: 350px;
67
+ width: 1100px;
68
68
  }
69
69
 
70
70
  .table thead tr {
@@ -1,16 +1,16 @@
1
1
  <template>
2
2
  <div class="preview">
3
3
  <div class="toolbar">
4
- <div class="icon-toolbar" v-print="'#printMe'">
4
+ <div class="icon-toolbar" v-print="'#printMeSub'">
5
5
  <i class="fas fa-print"></i>
6
6
  </div>
7
7
  <div class="icon-toolbar icon-excel">
8
- <ExportExcel :header="header" :data="data" />
8
+ <ExportExcel :nameFile="name" :header="header" :data="data" />
9
9
  </div>
10
10
  </div>
11
11
  <ScrollBar :minHeight="400" :maxHeight="820">
12
12
  <br />
13
- <div id="printMe" :style="'min-height:' + minHeight + 'px'" class="a4 footer">
13
+ <div id="printMeSub" :style="'min-height:' + minHeight + 'px'" class="a4 footer">
14
14
  <HeaderReport :title="titleHeader" />
15
15
  <table class="table table-responsive-md">
16
16
  <thead>
@@ -27,19 +27,19 @@
27
27
  <tr v-for="(row, index) in data" :key="index" :style="row.rowCss">
28
28
  <td v-for="(obj, ind) in header" :key="ind">
29
29
  <div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)" :class="convertClass(row[obj.fieldComparison], obj.classCssBody)
30
- " v-if="obj.type === 'text'">
30
+ " v-if="obj.type === 'text'">
31
31
  {{ row[obj.field] }}
32
32
  </div>
33
33
  <div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)" :class="convertClass(row[obj.fieldComparison], obj.classCssBody)
34
- " v-if="obj.type === 'date'">
34
+ " v-if="obj.type === 'date'">
35
35
  {{ row[obj.field] | moment("DD/MM/YYYY") }}
36
36
  </div>
37
37
  <div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)" :class="convertClass(row[obj.fieldComparison], obj.classCssBody)
38
- " v-if="obj.type === 'dateTime'">
38
+ " v-if="obj.type === 'dateTime'">
39
39
  {{ row[obj.field] | moment("DD/MM/YYYY HH:mm") }}
40
40
  </div>
41
41
  <div :style="obj.styleBody" @click="sendEvent(obj.eventName, row)" :class="convertClass(row[obj.fieldComparison], obj.classCssBody)
42
- " v-if="obj.type === 'currency'">
42
+ " v-if="obj.type === 'currency'">
43
43
  {{ row[obj.field] | currency }}
44
44
  </div>
45
45
  </td>
@@ -75,7 +75,7 @@ export default {
75
75
  directives: {
76
76
  print,
77
77
  },
78
- props: ["titleHeader", "header", "data", "totalization", "totalizationCustom", "minHeight"],
78
+ props: ["name", "titleHeader", "header", "data", "totalization", "totalizationCustom", "minHeight"],
79
79
  components: { ScrollBar, HeaderReport, TotalizationReport, ExportExcel },
80
80
  methods: {
81
81
  ...mapMutations("generic", ["addEvent"]),
@@ -95,14 +95,14 @@ export default {
95
95
  },
96
96
  sendEvent(eventName, data) {
97
97
  if (eventName) this.addEvent({ name: eventName, data: data });
98
- }
98
+ },
99
99
  },
100
100
  };
101
101
  </script>
102
102
 
103
103
  <style scoped>
104
104
  table tbody tr td {
105
- max-width: 350px;
105
+ width: 1100px;
106
106
  }
107
107
 
108
108
  .table thead tr {
@@ -14,6 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <Modal title="Filtros" :width="700" :height="750" v-show="showModal('filter')">
17
+ <slot></slot>
17
18
  <FilterBuilder :filters="filters" v-model="filterFinal" />
18
19
  </Modal>
19
20
  </div>
@@ -457,7 +457,7 @@ export default {
457
457
  return response.data;
458
458
  }
459
459
  }, (err) => {
460
-
460
+ console.log(err);
461
461
  if (err.response)
462
462
  if (err.response.status === 403) {
463
463
  context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
@@ -490,6 +490,7 @@ export default {
490
490
  return response.data;
491
491
  }
492
492
  }, (err) => {
493
+ console.log(err);
493
494
  if (err.response)
494
495
  if (err.response.status === 403) {
495
496
  context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
@@ -522,6 +523,7 @@ export default {
522
523
  return response.data;
523
524
  }
524
525
  }, (err) => {
526
+ console.log(err);
525
527
  context.commit('addNotificationErrorApi');
526
528
  return false;
527
529
  })
@@ -533,6 +535,7 @@ export default {
533
535
  .then((response) => {
534
536
  return response.data;
535
537
  }, (err) => {
538
+ console.log(err);
536
539
  context.commit('addNotificationErrorApi');
537
540
  return false;
538
541
  })
@@ -544,6 +547,7 @@ export default {
544
547
  .then((response) => {
545
548
  return response.data;
546
549
  }, (err) => {
550
+ console.log(err);
547
551
  context.commit('addNotificationErrorApi');
548
552
  return false;
549
553
  })
@@ -574,6 +578,7 @@ export default {
574
578
  }
575
579
 
576
580
  }, (err) => {
581
+ console.log(err);
577
582
  if (err.response)
578
583
  if (err.response.status === 403) {
579
584
  context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
@@ -610,6 +615,9 @@ export default {
610
615
  }
611
616
 
612
617
  }, (err) => {
618
+
619
+ console.log(err);
620
+
613
621
  if (err.response)
614
622
  if (err.response.status === 403) {
615
623
  context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
@@ -642,6 +650,7 @@ export default {
642
650
  }
643
651
 
644
652
  }, (err) => {
653
+ console.log(err);
645
654
  if (err.response)
646
655
  if (err.response.status === 403) {
647
656
  context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
@@ -662,7 +671,6 @@ export default {
662
671
  })
663
672
  .then((response) => {
664
673
 
665
-
666
674
  let blob = new Blob([response.data], { type: `application/${params.obj.fileType}` });
667
675
  let url = window.URL.createObjectURL(blob);
668
676
 
@@ -679,6 +687,7 @@ export default {
679
687
  context.commit('removeNotificarions');
680
688
 
681
689
  }, (err) => {
690
+ console.log(err);
682
691
  context.commit('addNotificationErrorApi');
683
692
  return false;
684
693
  })
@@ -704,6 +713,7 @@ export default {
704
713
  document.body.removeChild(downloadLink);
705
714
 
706
715
  }, (err) => {
716
+ console.log(err);
707
717
  return false;
708
718
  })
709
719
  },
@@ -732,6 +742,7 @@ export default {
732
742
  return response.data;
733
743
  }
734
744
  }, (err) => {
745
+ console.log(err);
735
746
  if (err.response)
736
747
  if (err.response.status === 403) {
737
748
  context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
@@ -764,6 +775,7 @@ export default {
764
775
  return response.data;
765
776
  }
766
777
  }, (err) => {
778
+ console.log(err);
767
779
  if (err.response)
768
780
  if (err.response.status === 403) {
769
781
  context.commit('addNotifications', [{ message: "Usuário sem permissão para executar esta ação!" }])
@@ -791,7 +803,7 @@ export default {
791
803
  return response.data;
792
804
  }
793
805
  }, (err) => {
794
-
806
+ console.log(err);
795
807
  return false;
796
808
  })
797
809
  },
@@ -808,9 +820,9 @@ export default {
808
820
  url = window.URL.createObjectURL(blob);
809
821
  window.open(url);
810
822
  }, (err) => {
823
+ console.log(err);
811
824
  return false;
812
825
  })
813
826
  },
814
-
815
827
  }
816
828
  }