seimin 1 月之前
父节点
当前提交
ef22834d37

+ 2 - 1
src/app/views/new-statistics/distribution-inspection-statistics/date-business-statistics/date-business-statistics.component.ts

@@ -101,7 +101,8 @@ export class DateBusinessStatisticsComponent implements OnInit, AfterViewInit {
101 101
   getList(num?: number, field?: string, sort?: string) {
102 102
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
103 103
       let dictionaryList = data || [];
104
-      dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
104
+      let flag = dictionaryList.some((item) => item.value === 'dateOther');
105
+      !flag && dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
105 106
       this.dictionaryList = dictionaryList;
106 107
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px');
107 108
       if (num !== undefined) {

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/department-business-statistics/department-business-statistics.component.html

@@ -46,7 +46,7 @@
46 46
     </thead>
47 47
     <tbody>
48 48
       <tr *ngFor="let data of listOfData">
49
-        <td class="width150">{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
49
+        <td class="width150">{{ data.name }}</td>
50 50
         <td>{{ data.totalCount }}</td>
51 51
         <td>{{ data.totalGrade }}</td>
52 52
         <ng-container *ngFor="let dictionary of dictionaryList">
@@ -58,7 +58,7 @@
58 58
     <ng-template #footerTpl>
59 59
       <table class="footTable">
60 60
         <tr *ngFor="let data of listOfDataEnd">
61
-          <td class="width150">{{ data.code }}</td>
61
+          <td class="width150">{{ data.name }}</td>
62 62
           <td>{{ data.totalCount }}</td>
63 63
           <td>{{ data.totalGrade }}</td>
64 64
           <ng-container *ngFor="let dictionary of dictionaryList">

+ 2 - 1
src/app/views/new-statistics/distribution-inspection-statistics/department-business-statistics/department-business-statistics.component.ts

@@ -111,7 +111,8 @@ export class DepartmentBusinessStatisticsComponent implements OnInit, AfterViewI
111 111
   getList(num?: number, field?: string, sort?: string) {
112 112
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
113 113
       let dictionaryList = data || [];
114
-      dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
114
+      let flag = dictionaryList.some((item) => item.value === 'dateOther');
115
+      !flag && dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
115 116
       this.dictionaryList = dictionaryList;
116 117
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px').map((v, i) => { return i == 0 ? '150px' : '100px' });;
117 118
       if (num !== undefined) {

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/department-quality-control-statistics/department-quality-control-statistics.component.html

@@ -46,7 +46,7 @@
46 46
   </thead>
47 47
   <tbody>
48 48
     <tr *ngFor="let data of listOfData">
49
-      <td>{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
49
+      <td>{{ data.name }}</td>
50 50
       <td>{{ data.totalCount }}</td>
51 51
       <td>{{ data.totalGrade }}</td>
52 52
       <td>{{ data.response_time_num }}</td>
@@ -60,7 +60,7 @@
60 60
   <ng-template #footerTpl>
61 61
     <table class="footTable">
62 62
       <tr *ngFor="let data of listOfDataEnd">
63
-        <td style="width: 12%">{{ data.code }}</td>
63
+        <td style="width: 12%">{{ data.name }}</td>
64 64
         <td style="width: 11%">{{ data.totalCount }}</td>
65 65
         <td style="width: 11%">{{ data.totalGrade }}</td>
66 66
         <td style="width: 11%">{{ data.response_time_num }}</td>

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/distribution-department-evaluate-statistics/distribution-department-evaluate-statistics.component.html

@@ -46,7 +46,7 @@
46 46
   </thead>
47 47
   <tbody>
48 48
     <tr *ngFor="let data of listOfData">
49
-      <td>{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
49
+      <td>{{ data.name }}</td>
50 50
       <td>{{ data.totalCount }}</td>
51 51
       <td>{{ data.evaCount }}</td>
52 52
       <td>{{ data.eva1 }}</td>
@@ -60,7 +60,7 @@
60 60
   <ng-template #footerTpl>
61 61
     <table class="footTable">
62 62
       <tr *ngFor="let data of listOfDataEnd">
63
-        <td style="width: 12%">{{ data.code }}</td>
63
+        <td style="width: 12%">{{ data.name }}</td>
64 64
         <td style="width: 11%">{{ data.totalCount }}</td>
65 65
         <td style="width: 11%">{{ data.evaCount }}</td>
66 66
         <td style="width: 11%">{{ data.eva1 }}</td>

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/distribution-department-source-statistics/distribution-department-source-statistics.component.html

@@ -42,7 +42,7 @@
42 42
   </thead>
43 43
   <tbody>
44 44
     <tr *ngFor="let data of listOfData">
45
-      <td>{{ data.name }}<ng-container *ngIf="data.code">({{ data.code }})</ng-container></td>
45
+      <td>{{ data.name }}</td>
46 46
       <td>{{ data.service }}</td>
47 47
       <td>{{ data.nurse }}</td>
48 48
       <td>{{ data.system }}</td>
@@ -52,7 +52,7 @@
52 52
   <ng-template #footerTpl>
53 53
     <table class="footTable">
54 54
       <tr *ngFor="let data of listOfDataEnd">
55
-        <td style="width: 20%">{{ data.code }}</td>
55
+        <td style="width: 20%">{{ data.name }}</td>
56 56
         <td style="width: 20%">{{ data.service }}</td>
57 57
         <td style="width: 20%">{{ data.nurse }}</td>
58 58
         <td style="width: 20%">{{ data.system }}</td>

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/user-business-statistics/user-business-statistics.component.html

@@ -46,7 +46,7 @@
46 46
     </thead>
47 47
     <tbody>
48 48
       <tr *ngFor="let data of listOfData">
49
-        <td class="width150">{{ data.name }}<ng-container *ngIf="data.account">({{ data.account }})</ng-container></td>
49
+        <td class="width150">{{ data.name }}</td>
50 50
         <td>{{ data.totalCount }}</td>
51 51
         <td>{{ data.totalGrade }}</td>
52 52
         <ng-container *ngFor="let dictionary of dictionaryList">
@@ -58,7 +58,7 @@
58 58
     <ng-template #footerTpl>
59 59
       <table class="footTable">
60 60
         <tr *ngFor="let data of listOfDataEnd">
61
-          <td class="width150">{{ data.account }}</td>
61
+          <td class="width150">{{ data.name }}</td>
62 62
           <td>{{ data.totalCount }}</td>
63 63
           <td>{{ data.totalGrade }}</td>
64 64
           <ng-container *ngFor="let dictionary of dictionaryList">

+ 3 - 2
src/app/views/new-statistics/distribution-inspection-statistics/user-business-statistics/user-business-statistics.component.ts

@@ -111,7 +111,8 @@ export class UserBusinessStatisticsComponent implements OnInit, AfterViewInit {
111 111
   getList(num?: number, field?: string, sort?: string) {
112 112
     this.mainService.getDictionary('list', 'statistics_date_type').subscribe((data) => {
113 113
       let dictionaryList = data || [];
114
-      dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
114
+      let flag = dictionaryList.some((item) => item.value === 'dateOther');
115
+      !flag && dictionaryList.push({id: 0, name: '其他', value: 'dateOther'});
115 116
       this.dictionaryList = dictionaryList;
116 117
       this.widthConfig = new Array(this.dictionaryList.length * 2 + 3).fill('100px').map((v, i) => { return i == 0 ? '150px' : '100px' });
117 118
       if (num !== undefined) {
@@ -191,7 +192,7 @@ export class UserBusinessStatisticsComponent implements OnInit, AfterViewInit {
191 192
       postData.sort = `${this.sortCurrentKey} ${this.sortCurrentValue === "ascend" ? `asc` : `desc`}`
192 193
     }
193 194
     this.mainService
194
-      .postExportCustom("itsm/export", "userTransOrder", postData)
195
+      .postExportCustom("itsm/exportMergeTitle", "userTransOrder", postData)
195 196
       .subscribe((data) => {
196 197
         this.message.remove(this.excelExportLoading);
197 198
         this.excelExportLoading = false;

+ 2 - 2
src/app/views/new-statistics/distribution-inspection-statistics/user-quality-control-statistics/user-quality-control-statistics.component.html

@@ -44,7 +44,7 @@
44 44
   </thead>
45 45
   <tbody>
46 46
     <tr *ngFor="let data of listOfData">
47
-      <td>{{ data.name }}<ng-container *ngIf="data.account">({{ data.account }})</ng-container></td>
47
+      <td>{{ data.name }}</td>
48 48
       <td>{{ data.totalCount }}</td>
49 49
       <td>{{ data.totalGrade }}</td>
50 50
       <td>{{ data.response_time_num }}</td>
@@ -58,7 +58,7 @@
58 58
   <ng-template #footerTpl>
59 59
     <table class="footTable">
60 60
       <tr *ngFor="let data of listOfDataEnd">
61
-        <td style="width: 12%">{{ data.account }}</td>
61
+        <td style="width: 12%">{{ data.name }}</td>
62 62
         <td style="width: 11%">{{ data.totalCount }}</td>
63 63
         <td style="width: 11%">{{ data.totalGrade }}</td>
64 64
         <td style="width: 11%">{{ data.response_time_num }}</td>